Claude認定 対策ノート

講座 › 分野2 ツール設計とMCP統合

2.3 ツールの配分とツール選択の設定

配点 3.6%Tool distribution and tool_choice

ツールは、多く持たせるほど良いわけではない。役割に必要なものだけを渡し、呼び出し方はtool_choiceで制御する。

未読

ツールが多すぎると、選択が不安定になる

図解:ツールが多すぎると、選択が不安定になる

ひとつのエージェントに、4〜5個ではなく18個のツールを持たせると、選ぶ判断が複雑になり、選択の信頼性が下がります。

出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
The principle that giving an agent access to too many tools (e.g., 18 instead of 4-5) degrades tool selection reliability by increasing decision complexity
https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)

専門外のツールは、誤用を招く

図解:専門外のツールは、誤用を招く

統合の担当が、検索のツールを持っていると、本来の仕事の途中で検索を始めてしまいます。サブエージェントには、その役割に必要なツールだけを渡します。

出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Why agents with tools outside their specialization tend to misuse them (e.g., a synthesis agent attempting web searches)
https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Scoped tool access: giving agents only the tools needed for their role, with limited cross-role tools for specific high-frequency needs
https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
出典:Subagents in the SDK
subagents can be limited to specific tools, reducing the risk of unintended actions.
https://code.claude.com/docs/en/agent-sdk/subagents.md(取得 2026-11-20)

汎用のツールは、制約のあるものに替える

図解:汎用のツールは、制約のあるものに替える

どんなURLでも取得する汎用のツールは、文書のURLだけを検証して読み込むツールに替えます。誤用の余地が減ります。

出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Replacing generic tools with constrained alternatives (e.g., replacing fetch_url with load_document that validates document URLs)
https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)

頻繁に要る確認は、限定した越境ツールで

図解:頻繁に要る確認は、限定した越境ツールで

統合の担当に事実確認が頻繁に必要なら、軽い確認用のツールだけを渡します。複雑な調べものは、調整役を通して専門の担当に回します。

出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Providing scoped cross-role tools for high-frequency needs (e.g., a verify_fact tool for the synthesis agent) while routing complex cases through the coordinator
https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)

tool_choice:自動・どれか必ず・指定した1つ

図解:tool_choice:自動・どれか必ず・指定した1つ

auto は、ツールを呼ぶか、文章で答えるかをモデルに任せます。any は、どれかのツールを必ず呼ばせます。名前を指定すれば、そのツールを必ず呼ばせられます。

出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Setting tool_choice: "any" to guarantee the model calls a tool rather than returning conversational text
https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
出典:Define tools
You can do this by specifying the tool in the tool_choice field of the request.
https://platform.claude.com/docs/en/agents-and-tools/tool-use/define-t…(取得 2026-11-20)

先に呼ばせたいツールは、指定で強制する

図解:先に呼ばせたいツールは、指定で強制する

メタデータの抽出を、他の処理より先に必ず実行したいときは、そのツールを指定して強制し、後続は次のターンで進めます。構造化出力を保証したいなら、any と厳密なスキーマの組み合わせが使えます。

出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Using tool_choice forced selection to ensure a specific tool is called first (e.g., forcing extract_metadata before enrichment tools), then processing subsequent steps in follow-up turns
https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
出典:Define tools
combine tool_choice: {"type": "any"} with strict tool use to guarantee both that one of your tools is called and that the tool inputs strictly follow your schema.
https://platform.claude.com/docs/en/agents-and-tools/tool-use/define-t…(取得 2026-11-20)
試験のポイント