Unverified60% 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.
2
Sources
60%
Confidence
Long-term
Relevance
10/12/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedThe isError flag in an MCP tool result indicates that the tool execution failed.80% similarUnverifiedWhen a particular MCP tool is not being triggered correctly, temporarily disabling other MCP tools to reduce interference and re-running often helps the model identify the correct tool75% similarUnverifiedThe MCP tool call success rate is affected by instruction clarity: with short, vague instructions (such as 'list semua pm') the Agent cannot call the tools correctly, while with a complete phrasing (such as 'use IdCloudHost's MCP to check current usage') it succeeds.74% similarUnverifiedWrite a tool once in an MCP Server, and the Agent can connect via stdio or streamable HTTP, and when errors occur, ToolError should be used first.73% similarUnverifiedWhen function calling fails, one only needs to check the prompt, the model output, and the API response; whereas when an MCP agent fails, one must trace across three layers: the LLM planner, the MCP client, and the remote MCP server.72% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1007868API
curl https://kongchang.com/api/v1/knowledge/claims/1007868MCP
get_claim(id=1007868)