JustujuAI, layer by layer.Open in the interactive map

Tool use & protocols (MCP)

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.

Tool listnames + schemas1Tool callstructuredrequest2Executeby theapplication3Resultback intocontext4Continuemodel answers5
One tool call
  1. Tool list: names + schemas
  2. Tool call: structured request
  3. Execute: by the application
  4. Result: back into context
  5. 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)
Real case
Incident: Malicious postmark-mcp package (2025-09)
Controls
  • Install tool servers only from their real publisher; pin versions and review changes
  • Show users full tool descriptions and changes to them
  • Give each tool the least access it needs and log what it does
Owner
AppSec, with Platform/Cloud
Reference
LLM04:2026 Supply Chain
AML.T0110 AI Agent Tool Poisoning
AML.T0010.005 AI Agent Tool

All layers in the security view

Examples as of 2026-10-30

Sources

  1. Toolformer: Language Models Can Teach Themselves to Use Tools (2023)
  2. Model Context Protocol specification (2026-07-28)
  3. MCP Security Notification: Tool Poisoning Attacks (Invariant Labs) (2025-04-01)
  4. OWASP Top 10 for LLM Applications: LLM06:2025 Excessive Agency (2025)
  5. Berkeley Function Calling Leaderboard (BFCL) (ongoing)

How it connects

More in Layer 7 · Orchestration & Tooling