Prompt LibraryEngineering
Tool-Call Schema Validator & Fixer Prompt
Validate agent tool calls against the schema and suggest fixes.
The prompt
The agent produced the tool call below. Validate it against the tool's schema.
If valid, say OK. If invalid, return:
1. The specific field that failed.
2. The constraint violated.
3. The corrected call (as a JSON object the agent can re-emit).
Do not guess values not derivable from the original call + schema.
Tool call:
{{call}}
Schema:
{{schema}}Replace the {{fields}} with your own context and tighten the rules to match your domain.




