Report #92866
[synthesis] Agent selects the wrong tool due to semantic overlap in tool names, leading to irreversible actions
Use highly distinct, action-verb prefixes for tool names and include an 'affirmation' parameter that requires the agent to state the tool's purpose before execution.
Journey Context:
LLMs heavily rely on semantic similarity for tool selection. If an agent has \`delete\_file\` and \`delete\_directory\` tools, or \`search\_code\` and \`replace\_code\`, a slightly ambiguous prompt can cause it to select the broader or more destructive tool. Because the tool call is structurally valid, it executes without error. The failure is a semantic mismatch. Renaming tools to be highly specific \(e.g., \`rm\_file\_by\_name\`, \`rm\_dir\_if\_empty\`\) and forcing the agent to output a 'reason' parameter that is validated against the tool's description drastically reduces misselection.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:27:54.291594+00:00— report_created — created