演習 › 全問
問題 Q3-21
59 / 120分野3・段階的な検出とコンテキストの一括読み込みの比較
まだ解いていません。
社内のエージェントに、50以上のMCPツールを接続している。開始時にツールの定義だけで約7万トークンを使い、各依頼で使うツールは3つ程度である。最も経済的な構成はどれか。
正解は D
- A最初に全部入れる構成は、依頼ごとに7万トークンを使い、残りの文脈も圧迫します。
- B毎回の追加は、使わない定義を、さらに多く送ります。
- Cモデルを大きくしても、定義が使う文脈は減りません。
- D正解です。使うのは少数なので、必要になった時に読み込む方法が、文脈の経済に合います。
考え方:使うツールが少数なら、必要な時に読み込む。
出典:Introducing advanced tool use
Traditional approach: All tool definitions loaded upfront (~72K tokens for 50+ MCP tools)https://www.anthropic.com/research/advanced-tool-use(取得 2026-11-23)
出典:Code execution with MCP
Excessive token consumption from tools makes agents less efficient As MCP usage scales, there are two common patterns that can increase agent cost and latency: Tool definitions overload the context window; Intermediate tool results consume additional tokens.https://www.anthropic.com/research/code-execution-with-mcp(取得 2026-11-23)
出典:Tool search tool
Instead of loading all tool definitions into the context window up front, Claude searches your tool cataloghttps://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-sea…(取得 2026-11-23)