Dashboard
0%
1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
51 small wins to finish your pathNext question →

Q45HardConcept

How is designing tools for agents (the agent-computer interface) different from designing APIs for developers?

30-second answerSay your answer out loud first, then reveal.

API for developers vs tool for agents

API for developersTool for agents
Fine-grained endpoints (GET /users/{id}, GET /orders?user=)Task-level tools (get_customer_overview(email))
Docs read onceDescription read every run, so it must be precise and concise
Returns everything; client filtersReturn only what's useful; offer detail: "concise" | "full"
IDs (UUIDs) everywhereHuman-meaningful fields plus IDs; the model reasons better over names
Error codesInstructive errors ("did you mean ...?")
Pagination via cursorsSensible defaults and limits; tell the model how to get more
Strict input formatsAccept reasonable variants (dates), validate, explain

Principles

  1. Design around workflows the agent performs, e.g. schedule_meeting that checks availability and books, instead of list_calendars, get_free_busy and create_event.
  2. Namespacing to separate similar tools (asana_search, jira_search).
  3. Token efficiency: truncation, filtering and summaries built in.
  4. Make the right thing easy: use enums; disallow dangerous parameter combinations.
  5. Iterate with evals: watch traces for where agents misuse tools, and improve descriptions. Agents can even help rewrite their own tool descriptions based on failure transcripts.
Interview soundbite: "Spend as much effort on the agent-computer interface as you would on a human UI."

Every expert started right here.