What is an agent tool?

An agent tool is a function an AI agent can call, with a defined name, description, input schema, permissions and output, such as a database query, an API call, a file read or a calculation.

Tool calling is the model's ability to produce structured output to use a tool; the agent tool is the function that the call targets. Protocols such as Model Context Protocol expose tools to different agents in a standard way.

Topic
Agents and protocols
Also known as
Tool, AI tool

How an agent tool works

  1. A tool is registered with a name, a description the model can understand and a schema defining its parameters.
  2. As the agent runs, relevant tool definitions go to the model, which writes which tool to call with which parameters in structured form.
  3. The agent's runtime validates parameters, checks permissions and runs the tool.
  4. The tool's result or error message returns to the model and the loop continues.

In more detail

Tool behaviour labels and schema enforcement

Every tool should carry explicit behavioural metadata, such as read-only, destructive and idempotent hints, alongside strict JSON Schema parameter validation and constrained decoding. Distinguishing safe, repeatable reads from idempotent or non-idempotent writes dictates whether the runtime may auto-retry on network failure or must require human confirmation.

Tool poisoning and indirect injection through tool output

Tool definitions and tool outputs are major prompt-injection vectors: malicious instructions hidden inside third-party tool descriptions (tool poisoning) or returned payloads can hijack the agent's next step. Enterprise systems pin and verify tool manifests cryptographically and treat all tool outputs as untrusted data.

Tool bloat, dynamic tool discovery and composite tools

Exposing dozens or hundreds of tools in every prompt bloats context, increases latency and degrades selection accuracy. Production agents use dynamic tool discovery, retrieving only relevant tool schemas per task or composite task-level tools that encapsulate multi-step backend APIs behind safer, higher-level interfaces.

Structured error contracts and preventing information leaks

Well-designed tools return structured, informative errors, such as validation hints or permission denials, rather than raw stack traces. Clear error contracts let the agent recover from malformed inputs safely while preventing internal system details from leaking into the model context.

Commonly confused terms

TermHow it differs
MCP serverAn agent tool is a stateless or task-scoped function invoked by an agent; an MCP server is a standardised protocol service that can expose multiple tools alongside read-only resources and prompt templates over a unified transport.
RAG pipelineAn agent tool executes concrete operations against systems (DB queries, APIs, calculators); a RAG retriever is often wrapped as a tool or can run deterministically outside the agent's choice as a fixed pre-inference pipeline step.

Why an agent tool matters for on-premises AI

An agent's tools define what it can do inside an organisation, so security is built at tool level. Each tool gets only the narrowest permission its job needs: a read tool cannot write, a write tool reaches only certain tables. Tools involving money, data deletion or outside communication require human approval. Vague tool descriptions lead the model to pick the wrong tool. Every tool call is logged with its parameters and result.

ON-PREMISES EXAMPLE

A bank's customer service agent gets a read-only balance tool and an address update tool requiring a representative's approval; no money transfer tool is defined for the agent at all.

Common questions

How does an agent tool differ from tool calling?

The agent tool is the function being called. Tool calling is the model's ability to write the name and parameters in structured form to use it.

How are agent tools kept safe?

Give each tool the narrowest permission, validate parameters before running, require human approval for risky tools and log every call.

Sources

In the glossary: Glossary, A to C

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.