問題文
A team must expose an internal ticketing system to an agent. The system has forty endpoints. Which granularity of tool design gives the agent the best chance of calling correctly?
選択肢
- Expose one tool per database table behind the ticketing system, because that mapping is stable over time and it lets the agent compose any operation it needs from primitive reads and writes without the team having to anticipate the tasks.
- Expose all forty endpoints as forty tools so the agent has full coverage.
- Expose one tool that takes a raw HTTP method and path, along with the query parameters and headers, so any endpoint can be reached through it.
- Expose a small number of task-shaped tools that match what the agent is actually asked to do, each with its own description and arguments.