A Claude system calls external tools (e.g., search or database). What is the best foundation-level guideline for tool outputs?

Answer

Validate, sanitize, and constrain tool outputs before including them in model context

Explanation

Even trusted tools can return unexpected or sensitive content; validation and constraints reduce risk and improve reliability.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list