[KongchangAI]
Unverified50% confidenceDecision RuleExact time

When throwing exceptions in MCP tools, ToolError should be used instead of ordinary ValueError, because ToolError lets the model see the explicit reason and return value, whereas ordinary exceptions may cause the Agent to see only 'tool execution failed' or even trigger meaningless automatic retries.

1
Sources
50%
Confidence
Long-term
Relevance
10/12/2026
First Seen

Sources

Related Entities

Related Claims

Cite This Claim

Stable URI
https://kongchang.com/claim/1007868
API
curl https://kongchang.com/api/v1/knowledge/claims/1007868
MCP
get_claim(id=1007868)