Report #72068
[synthesis] Semantic proximity in tool schemas causes agents to map parameters to the wrong arguments
Use highly distinct, domain-specific parameter names and enforce strict enum constraints; avoid optional parameters that accept free-text strings.
Journey Context:
LLMs suffer from 'semantic proximity bias.' If a tool has 'target\_directory' and 'output\_directory', the agent might pass the output path to the target, silently deleting the wrong folder. Standard API design encourages semantic consistency, but for LLMs, this is catastrophic. Synthesizing API design with LLM token-attention patterns reveals that tool schemas for agents must be artificially distinct \(e.g., 'source\_repo\_path' vs 'build\_artifact\_dir'\) and heavily constrained by enums to prevent the model from bleeding context between adjacent parameters.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T03:32:54.668809+00:00— report_created — created