Tool calling, defined
Tool calling is the interface between a language model and the rest of your software. You tell the model which tools exist. Each tool has a name, a description written for the model to read, and an input schema, usually JSON Schema, that defines the arguments. During a conversation the model can respond not with text but with a structured request: call this tool with these arguments. Your application runs it and returns the result as a new message. The model reads the result and continues.
Different vendors use different names for the same idea. Function calling, tool use and actions all describe roughly the same mechanism. The details of the request and response format vary by model provider, which is one reason the Model Context Protocol exists: it gives tool servers and AI clients a shared format so a tool built once works across many clients.
The key point is that the model proposes and the application disposes. The model cannot reach the network, spend money or write to a database on its own. It can only ask. Everything that actually happens is executed by code you control, which is where validation, permissions and limits belong.
Why tool calling matters for GTM agents
Language models do not know who works at a company today, what their email is or whether a phone number is a mobile. That information changes constantly and has to come from a live source. Tool calling is how an agent gets it. Without tools, a model asked for a contact will either refuse or invent one, and an invented email address is worse than none.
Tools also give the model a way to act on what it finds: add a contact to a list, log a note in the CRM, queue a message for approval. Each of those is a separate tool, and the agent composes them. The quality of a GTM agent is largely the quality of its tools: how accurate their data is, how clearly they are described and how safely they behave when something goes wrong.
For teams, tool calling is also an integration strategy. Instead of building a bespoke connector for every AI product, you expose your capabilities as tools once and let any compatible client use them. That is how a data provider can serve agents running in many different environments at the same time.
How a tool call works, step by step
A single tool call follows a short, predictable cycle. Understanding it helps when you debug an agent that picks the wrong tool or passes bad arguments:
- Advertise. The application sends the model the list of tools with names, descriptions and input schemas.
- Decide. The model reads the user's goal and the tool list, and decides whether a tool would help.
- Request. The model emits a structured call: the tool name and a JSON object of arguments.
- Validate. The application checks the arguments against the schema and against its own rules, such as permissions and spend limits.
- Execute. The application runs the tool, for example by calling an HTTP API.
- Return. The result, or an error, goes back to the model as a tool result message.
- Continue. The model reads the result and either answers, calls another tool or asks the user for help.
What makes a tool easy for a model to use
Specific descriptions. The model picks tools by reading descriptions, so they should say what the tool does, what it needs, what it returns and when to use something else. A description that says it finds a verified work email from a name and company domain, and costs 1 credit only if found, gives the model enough to choose correctly and reason about cost.
Narrow, typed inputs. Fewer, well-named arguments with types and allowed values reduce mistakes. Enumerations such as seniority levels help more than free text. A plain-English query argument is useful too, as long as the tool returns how it interpreted the text so the model can check.
Structured outputs. Return fields the model can reason about directly, like a status of verified, a confidence score and a timestamp for when the record was researched, rather than a paragraph. Let callers request only the fields they need, which keeps the model's context small.
Actionable errors. An error should say what went wrong, how to fix it and whether a retry will help. That turns a dead end into a recoverable step.
Common mistakes with tool calling
The most frequent mistake is giving the model too many overlapping tools with similar descriptions. When three tools could each plausibly answer a request, the model picks inconsistently. Consolidate where you can, and make the differences explicit in each description.
A second mistake is trusting the model to enforce limits. Instructions like do not spend more than 100 credits are suggestions to a model, not controls. Enforce limits in the tool or the API: per-request ceilings, caps per key and allow-lists of which tools a given agent may call.
A third is returning huge payloads. A search that returns a thousand full profiles floods the context, slows the agent and costs more than it should. Use pagination, sensible default limits and field selection so the model gets what it needs and no more.
Finally, teams often ignore retries. Networks fail and models sometimes repeat a call. If a tool charges money, a repeated call can double charge unless the API supports idempotency keys. Make every billable tool safe to retry.
How to evaluate tool-calling quality
Build a small test set of realistic requests and the tool calls you expect for each. Run the agent against it and measure how often it picks the right tool, how often its arguments are valid and how often it needs a retry. Re-run the set whenever you change descriptions, schemas or models.
Log every call with its arguments, result size, latency and cost. Patterns show up quickly: a tool that is called far more than expected, arguments that are consistently too broad, or errors that the model keeps retrying even though they are not retryable. Most fixes are small edits to descriptions or defaults.
Watch cost per completed task. Tool calling makes it easy for an agent to explore, and exploration costs money when tools are billable. A free quote or count tool lets the agent plan before it spends.
How Dizo exposes its APIs as tools
Dizo's MCP server at https://mcp.dizo.ai/mcp exposes every API as a tool. Names are explicit, such as dizo_search, dizo_people_search, dizo_best_contact, dizo_find_email, dizo_find_phone and dizo_enrich_person, and each description includes the credit cost, so the model sees the price before it calls. Free planning tools sit alongside them: dizo_count for sizing a segment, dizo_quote for the exact cost of any call and dizo_whoami for scopes and remaining budget.
Billable tools accept dry_run and max_credits arguments, so a model can quote a call or cap it in the same request. Natural-language search returns the structured filters it used in interpreted, which lets the agent check its own query. Errors follow a stable format with error.code, a plain-English fix, a retryable flag and retry_after when relevant.
The same capabilities are available as a REST API at https://api.dizo.ai/v1 with an OpenAPI 3.1 spec, for frameworks that build tools from OpenAPI definitions. POST requests accept an Idempotency-Key header, and retries within 24 hours are never charged twice.
A worked example
A user asks an agent for the email of a named finance leader at a company. The model calls dizo_find_email with first name, last name and company domain. The tool returns an address with status verified, a confidence score, a researched_at timestamp and credits_used: 1. The model replies with the address and notes when it was researched. If no valid email exists, the tool returns a free 404 not_found and the model says so instead of guessing.
If the user then asks for verified emails for 500 people, the model should not loop 500 single calls. A better plan is to call dizo_quote or send the batch request with dry_run first, show the quote, then submit one batch job. If 400 emails are found, the job costs 400 credits, or $10 at the $0.025 entry rate.
Related concepts
Tool calling is the core mechanism of every AI agent. The Model Context Protocol standardizes how tools are described and called across clients, and an OpenAPI spec is another common source for tool definitions. Agentic workflows describe how many tool calls are arranged into a reliable process. Idempotency keys and rate limits cover how tools stay safe under retries and load.
Frequently asked questions
Is tool calling the same as function calling?
Yes, for practical purposes. Different model providers use different names, but the mechanism is the same: the model emits a structured request to call a named function with arguments, and the application executes it and returns the result.
Does the model run the tool itself?
No. The model only proposes a call. Your application, or an MCP client and server, validates the arguments and runs the call. That is where permissions, spend limits and logging should live.
How does MCP relate to tool calling?
MCP is a protocol for publishing tools so that any compatible AI client can discover and call them. The model still uses tool calling; MCP standardizes how the tools are described, how calls are sent and how results come back.
How can a model know what a Dizo tool costs?
Each Dizo MCP tool includes its credit cost in the description. For an exact figure, the model can call dizo_quote or send the request with dry_run, which returns the cost and spends nothing.
What should a tool return when something fails?
A stable error code, a short explanation of how to fix it and whether a retry will help. Dizo errors include error.code, a plain-English fix, and retryable with retry_after when a retry makes sense.
Can I limit which Dizo tools an agent can call?
Yes. Each API key can have an endpoint allow-list, along with per-request, daily and monthly credit caps. MCP connections default to data:read and a 500-credit per-call limit unless you change them in the console.
Last reviewed 2026-11-24.