Skill 2.3.4

Implement tool result validation and quality checks

Key Concepts

Structural validation checks that a result matches its expected schema and types. Semantic validation checks business rules: amounts within range, dates plausible, IDs matching the request, result sets not empty when data is expected. Provenance checks confirm the result came from the expected source and is current.

Safety checks scan tool responses for indirect prompt injection and harmful content, using guardrails at the tool response intervention point or Prompt Shields. Results that fail validation are rejected, retried or flagged, and large results are trimmed to the fields the agent needs before they enter the context.