Report #95302
[synthesis] Agent passes syntactically correct but semantically wrong JSON to a tool, leading to silent data corruption or no-ops
Implement semantic validation of tool arguments using a secondary LLM call or schema constraints \(e.g., regex for paths, max length for content\) \*before\* tool execution.
Journey Context:
Tool schemas \(JSON Schema\) validate types \(string, number\) but rarely validate semantics \(is this string a path or a URL?\). An agent might map file\_content to a variable holding '/path/to/file'. The tool accepts the string and writes '/path/to/file' into the file. No error is thrown, but the file is corrupted. The root cause is the gap between structural typing \(JSON Schema\) and nominal/semantic typing.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T18:32:31.159594+00:00— report_created — created