Letting a model call functions and services through structured requests, standardised by protocols such as MCP.
Layer 7 · Orchestration & Tooling · Run time · reviewed 2026-10-30
SimpleA plain explanation, one diagram and an analogy, with where the analogy breaks.
Guess first: Think first: what can't you do by talking alone? Show the answerDo things, like checking the weather or exact maths. Tools let the model ask a program to do them.
On its own an AI can only talk. Giving it tools is like giving it a phone and a calculator: now it can check the weather or do exact maths.
It asks in a special format, and a program does the actual work.
Developers describe each tool with a name, a description and a schema for its arguments.
When a tool would help, the model outputs a structured tool call instead of prose; the application runs the tool and returns the result to the model.
Protocols such as the Model Context Protocol (MCP) standardise how tools and data sources are offered to AI applications, so one integration works across many clients.
One tool call
Tool list: names + schemas
Tool call: structured request
Execute: by the application
Result: back into context
Continue: model answers
Like: Handing someone a phone and a calculator. Where it breaks: A person decides whether to believe what they hear on the phone. Models tend to treat tool results as trustworthy, so malicious text inside a result can steer them (prompt injection).
ResearchWhere the simple picture breaks, open problems and primary sources.
A tool call looks like a function call, but the model picks tools by reading their descriptions in plain language, and those descriptions are an attack surface.
Tool poisoning. Hidden instructions in a tool's description reach the model but not the user, and a server can change a description after it was approved, a "rug pull" (Invariant Labs, 2025).
The protocol can't enforce safety. The MCP specification says tool descriptions should be treated as untrusted and that the protocol itself cannot enforce its security principles; consent and access control are left to each host (MCP spec).
Over-broad permissions. A tool with more access than the task needs turns any successful injection into real damage (OWASP LLM06:2025).
Choosing among many tools. Picking the right tool and arguments, especially over many turns, is still measured on leaderboards rather than solved (BFCL).
Security on this concept: 1 threat Pending expert review
A tool server that turns on its users Pending expert review
Exposed
Tool servers and packages that agents install and trust
Tool descriptions, which the model reads as instructions
Everything the tools can touch: email, files, code
Attacks
Hiding instructions in a tool's description (tool poisoning)
Publishing a look-alike package that quietly copies data out
Changing a trusted tool after people install it (rug pull)
Memory How an AI application remembers beyond one call: short-term memory in the context window, long-term memory in stores it saves to and searches.
Context engineering Choosing what goes into the model's context window, in what order, and what to leave out, because the model sees nothing else.
Guardrails & evals Checks around model calls (input and output filters, permission gates, prompt-injection defences) plus automated tests that measure whether the system still behaves.
Prompt injection Instructions hidden in text an AI reads (a web page, an email, a file, a tool result) that make it do what an attacker wants instead of what its user asked.
Tool poisoning Attacks through the tools an AI agent installs: hidden instructions in a tool's description, look-alike packages, or a trusted tool that changes after you install it.