演習 › 全問
問題 Q2-07
39 / 120分野2・MCPツールの構造化エラー
まだ解いていません。
MCPのツールで、引数の日付が「2026/13/45」のように不正だった。このとき、ツール側が返すものとして、モデルが自分で直して再試行できる可能性が最も高いのはどれか。
正解は B
- A形式の誤りを示す通信のエラーは、モデルが直しにくい種類だと、仕様が述べています。
- B正解です。ツール実行のエラーに、直すための具体的な情報があれば、モデルは引数を直して再試行できます。
- C空の成功では、何が悪かったのかが分かりません。
- D切断すると、情報がなく、回復もできません。
考え方:入力の誤りは、ツール実行のエラーとして、直し方が分かる説明つきで返す。
出典:MCP 仕様:Tools
Tool Execution Errors contain actionable feedback that language models can use to self-correct and retry with adjusted parametershttps://modelcontextprotocol.io/specification/2026-07-28/server/tools.…(取得 2026-11-20)
出典:MCP 仕様:Tools
Protocol Errors indicate issues with the request structure itself that models are less likely to be able to fixhttps://modelcontextprotocol.io/specification/2026-07-28/server/tools.…(取得 2026-11-20)
出典:MCP 仕様:Tools
Input validation errors (e.g., date in wrong format, value out of range)https://modelcontextprotocol.io/specification/2026-07-28/server/tools.…(取得 2026-11-20)