演習 › 全問
問題 Q8-03
98 / 106分野8・ツールの実装
まだ解いていません。
社内の住所録のAPIには、一覧の取得、1件の取得、検索など20の操作がある。エージェント向けのツールの作り方として、公式の考え方に最も合うものはどれか。
正解は B
- Aコンテキストを無駄に使い、最新の情報も得られません。
- B正解です。影響の大きい作業に向けた少数の考え抜いたツールから始め、関連する操作は1つのツールにまとめます。
- C大量の結果を返し、トークンを無駄にします。
- Dツールが多いほど選び間違いが増え、定義でコンテキストも使います。
考え方:APIを写すのではなく、作業に合わせた少数のツール。
出典:Writing effective tools for agents
We recommend building a few thoughtful tools targeting specific high-impact workflowshttps://www.anthropic.com/research/writing-tools-for-agents(取得 2026-11-17)
出典:Writing effective tools for agents
Tools can consolidate functionality, handling potentially multiple discrete operations (or API calls) under the hood.https://www.anthropic.com/research/writing-tools-for-agents(取得 2026-11-17)