Skip to content
AI-Native PM

The tool interface is the storefront: design actions agents choose

Chapter 2 of 8 in When Your Users Are Agents · 19 min

After a customer's platform team asks for it, you ship an integration that exposes your product's core actions as tools any model client (an app that connects a model to tools, such as a chat assistant) can call. Your engineers copy the descriptions from the internal API reference, and QA confirms that every call works. A month later you read the session logs. Hundreds of clients fetched your catalog (the list of tools your product exposes), and most of them never called anything. The ones that did call a tool picked manage_records, your catch-all tool, passed a free-text date where the endpoint expected an ISO 8601 date (the standard year-month-day format), got back a bare 400 error with no explanation, and stopped. In one session, an assistant had a request of exactly the kind your product handles best: it listed your tools, called none of them, and finished the job with a competitor whose tool description stated the capability in one sentence. Every call worked in QA, but your team never tested whether an agent given your catalog would call your tools at all.

In each of the three waves of agent traffic, the same thing eventually happens: an agent is given a job and a catalog of tools, and its model calls one of those tools. This chapter is about making sure that call goes to your tool. The names, descriptions, schemas (the definitions of each tool's parameters), and error messages your team treated as internal API housekeeping are now what makes the case for your product.

An agent picks a tool using only the text in the catalog

A person's impression of your product comes from many places: a homepage, a demo, a colleague's recommendation. When an agent selects a tool for a job, everything its model gets about your product comes from the catalog. Here is what happens. A model client with a dozen connected tools receives a request. The client sends the model that request together with every tool's name, description, and parameter schema, and the model produces a call to one tool or no call at all. At that moment the model has nothing else about your product: no brand, no design, no pricing page, only the text in the tool definitions.

When an agent compares tools for a job, your tool catalog is your entire storefront: each tool's name, description, and schema have to make the case for your product, the job your homepage does for a person.

The best-described tool gets the call, and the vaguest is never called, because a description that could cover anything gives the model nothing to match the request against. Function-calling benchmarks (tests that score how well models pick and call tools) score models on this behavior, including whether a model declines to call a tool that fits no request. The major providers publish guidance on writing tool definitions that reads like a copywriting manual for machines: state the capability, be specific about limits, and show an example. Selecting a tool comes down to matching the request against text, and your tool definition is the only part of that text you control.

One catalog reaches every client that supports MCP

If you expose your product as an MCP server (a program that offers your tools to any client that supports the Model Context Protocol, or MCP), every client that supports the protocol can read your catalog, from chat assistants to coding tools to desktop apps, without a separate integration for each vendor. In each of those clients, your tool descriptions do the job your marketing copy does for a person. Adoption figures change too fast to print here, so the dated Interop Ledger, our reference page for agent-protocol facts that change often, keeps them current. The lasting point is that one well-written catalog now reaches clients across the whole ecosystem, and a vague one loses calls in all of them at once.

Write each tool definition: what it does, its limits, and when not to use it

Each part of a tool definition helps make the case for your tool.

In the diagram, titled TOOL STOREFRONT, three tool definitions sit on a shelf, each made of a name, a description, and a schema. search_docs is usable, with two parameters, q and limit. do_stuff has no usable description and one unknown parameter, so the agent passes it over (PASSED OVER). get_invoice, described as "Fetch one invoice by id. Returns PDF or JSON." with the parameters id and format, is the one that GETS THE CALL.

  • Name the action as a verb and an object. Names like create_invoice, search_orders, and cancel_subscription state the job the way a request describes it; with a catch-all name like manage_records, the model has only the description to match the request against.
  • Start the description with what the tool does. Open with one sentence an agent could act on: "Creates a draft invoice for an existing customer and returns its id and a payable link."
  • State the limits and how long it takes. Cover what it handles, what it does not, hard limits ("returns up to 100 results"), and a hint about how long it takes ("responds in seconds", "starts a job that runs for minutes"); the agent uses that hint when it plans the task.
  • Say when not to use it. One line that points elsewhere sends a request that almost fits to the right tool: "For refunds on paid invoices, use refund_invoice instead."

Give each tool one job. A tool that does many things can only be described vaguely, and the model skips vague tool definitions in favor of clear ones.

Design the schema so the simplest call is also a safe one

Once the model has picked your tool, the schema determines whether the call succeeds. For every parameter, ask where its value will come from: the request supplies some values, defaults can supply others, and the model has to fill in whatever remains on its own.

  • Require only what the job cannot proceed without. Every extra required field is a field the model must fill even when the request never mentioned it.
  • Prefer enums (fixed lists of allowed values) to free text. With a status parameter that accepts only open, paid, or void, the model picks a value from the list instead of making one up, and the schema itself lists the valid values.
  • Set defaults so that a call with only the required fields is safe. Use conservative limits and sensible sort orders, and give destructive actions a dry-run flag that is on by default (the flag makes the tool report what it would do without doing it). These defaults protect a call that leaves the optional fields out.
  • Give every parameter a format example in its description. "ISO 8601 date, for example 2026-07-02" prevents the free-text date from the opening scene.

Any parameter the model has to guess is one it will eventually guess wrong. Required fields the request does not supply, free text where a fixed list would do, and missing defaults all lead the model to invent arguments.

Return errors an agent can act on

The last part of your storefront is what your product returns when a call fails. This matters more with agents than it did with developers: a developer read your docs while building the integration, but no developer is there when an agent makes the call. An agent retries, and the only information it has for correcting the call is the text your error returns.

  • A bare 400 error, or a body that says only "invalid request", gives the agent nothing to correct, so the retry repeats the mistake or the task ends, and if the agent is a shopper in the middle of a comparison, you lose the sale too.
  • A structured error states what was wrong and what to try next: "invalid start_date: expected ISO 8601, for example 2026-07-02; received 'early next month'." When a precondition is unmet, the error names the missing step: "customer not found: call search_customers first to get a customer_id."

A structured error gives the agent a second chance at the task: when the error states what was wrong and what to try next, the agent can fix the call on its next try, while a bare status code ends the task there.

You hand authority to a guest with every tool you list

Everything above makes agents more likely to call your tools, and every tool an agent can call is also authority you have handed to a guest (an agent that someone else built and sent to your product). A well-described create_invoice can get calls from any client that connects, including agents that misread the request and agents that have been compromised. The action surface: every tool is delegated authority covers that side: limiting what each tool may touch and how much damage a bad call can do. Review the two sides together, because the same tool definition is both your sales pitch to the agent and a permission you are granting.

Try it now

This drill takes about 25 minutes and tells you whether an agent's model calls your tools for the jobs they exist to do.

Pick three actions. Choose the three most valuable actions in your product, or in a product you know well: the ones a customer's assistant would complete on their behalf.

Write the tool definitions. Give each action a verb_object name and a description that starts with what it does, states its limits and how long it takes, and ends with when not to use it.

Add the schema and two errors. Define required and optional parameters with enums and defaults where they fit, then write two error messages per tool, one for a bad argument and one for an unmet precondition, each stating what was wrong and what to try next.

Add a vague decoy. Write a fourth definition that is deliberately vague: a generic name, a one-line description that could cover anything, and a single free-text parameter.

Run the selection test. Give a model client all four definitions and five realistic user requests, and ask which tool it would call for each request, with what arguments. Scale it down: you do not need a live server; paste the definitions and requests into any chat assistant as plain text and run the same test.

Score and rewrite. Count how often the model calls the right tool with valid arguments. Treat every miss as a flaw in a definition, not in the model: wherever the decoy was called or an argument was invented, rewrite the definition that lost and rerun the test until the right tool gets the call with valid arguments for all five requests.

Chapter Summary

  • When an agent's model picks a tool for a job, it has only the tools' names, descriptions, and schemas; nothing else about your product reaches it at that moment.
  • The best-described tool gets the call, and the vaguest is never called.
  • Name each tool as a verb and an object, and give each tool one job.
  • Start the description with what the tool does, then state its limits, how long it takes, and when not to use it.
  • Merge near-duplicate tools, because when tools overlap the model may call a different one from run to run, and you cannot reproduce your product's behavior.
  • Require only the parameters the job cannot proceed without, prefer enums to free text, and set safe defaults; any value the model has to guess, it will eventually guess wrong.
  • Return errors that state what was wrong and what to try next, since a bare status code ends the task and, for a shopper, the sale.
  • One catalog exposed over MCP reaches every client that supports the protocol, and in each of them your tool descriptions do the job your marketing copy does for a person.
  • Every tool you make easy to call is also authority you hand to every client that connects, so review each tool definition and the permission it grants together.
  • A strong catalog helps only with the agents that reach it, and Discoverability: help agents find you and choose you covers how agents find your product in the first place.

Sources

  • Anthropic (2025). Writing effective tools for agents. Anthropic engineering blog.
  • Anthropic. Tool use documentation and tool definition best practices (last verified July 2026).
  • OpenAI. Function calling guide and schema design guidance (last verified July 2026).
  • Model Context Protocol specification, tools section (last verified August 2026).
  • UC Berkeley Gorilla project (2024). Berkeley Function-Calling Leaderboard.