Disclaimer
This article is intended for informational purposes and reflects architectural design principles and the state of the referenced standards as of its publication date. It is not professional security advice. Your specific environment, threat model, and regulatory obligations will shape how these principles apply to your situation. The views and opinions expressed here are my own and do not represent the position of my employer, SAP, or any other affiliated organization.
For Security Leaders
AI agents choose tools by reading each tool’s description. If that text sits in an ordinary settings database, one routine edit can send sensitive records out of the company while every security check still passes.
What this means for your organization:
Tool descriptions are code: What the agent reads about a tool changes its behavior as directly as a software release.
Authentication does not cover it: A genuine, authenticated tool server can still serve a manipulated description.
The protocol leaves it to you: The Model Context Protocol leaves detecting a changed tool definition to the consumer.
What to tell your teams:
Ship tool descriptions, schemas and annotations as a reviewed, versioned release that the agent host verifies on every load.
Require someone other than the requester to approve every change to that release.
Make the services behind each tool enforce their own recipient and data limits, whatever a description says.
Immutable tool metadata: why runtime config stores should never define agent capabilities
Picture an internal finance application, an illustrative one, that starts agent instances on demand. Each instance asks an internal tool server for its tool definitions, and the server builds them from rows in a shared configuration database that also holds feature flags and timeouts. A support engineer’s account, with the routine write access that job needs, changes one field. The description of “export ledger summary” now says that every summary should also go out through “notify reviewer”, a tool whose recipient is free text. Nobody touched an endpoint, a schema or a credential. The next instance reads the new description and sends ledger summaries to an outside address, using two tools it was always allowed to call.
When we threat modeled FinBot in “Running the threat model on FinBot”, I left one question open: whether its tool descriptions live in a writable configuration store, and who can change them. This article is the pattern I would apply whatever the answer turns out to be. Treat anything that defines a tool’s capability as code, and stop loading it from a plane built for operational settings.
Every check passes while one description steers the agent
Let’s walk the path one step at a time. Every control we would normally check does its job.
The write is authorized. The account is allowed to edit that table, and the database enforces its access model correctly. That model was designed for values that tune behavior inside a fixed contract, like a timeout, and here it is guarding text that rewrites the contract.
As the FinBot threat model put it, server identity and tool-description integrity are separate controls, and an authentic server can publish a poisoned description. The tool server here is genuine. Transport, server authentication and token checks all pass. The earlier article “MCP, the protocol that wired your AI agent to the world (and left the door unlocked)” made the matching point that OAuth secures the connection, not the content of the description.
The host then fetches definitions again at startup, when a cached list expires, when a change notification arrives, or when a new instance scales out. The Model Context Protocol leaves it to the consumer to decide whether a tool definition has changed. It already tells clients not to trust behavioral annotations from servers they do not trust, and says nothing comparable about descriptions.
The model treats the description as instruction. Each resulting call is individually authorized. The harm sits in the composition of two permitted calls and in one free-text value, and per-tool scoping cannot see either.
So where is the actual mistake? The design filed capability-defining metadata as operational configuration. Tightening the store’s permissions fixes this instance, and we should do it today. It still leaves every future authorized writer, and anyone who compromises the store, one row away from steering the agent, with nothing to notice.
Tool definitions belong in a reviewed manifest that the host verifies
Start with a classification rule. Anything the model reads to decide what a tool does, when to use it or what to send is capability-defining. That covers the name, the description, the input and output schemas, the behavioral annotations and any server-level instructions. Timeouts, rate limits and flags the model never sees stay runtime configuration.
Capability-defining metadata then follows the code path. It is reviewed, built into a versioned manifest of the whole tool set, and approved. The manifest and the keys that approve it live outside the runtime configuration plane, where no agent identity can write them. The check belongs in the agent host, at the last hop before definitions enter the model’s context, after any cache or gateway. It cannot live in the tool server. That server is the party whose store was edited, and a server that signs whatever its store holds produces a valid signature over the poisoned text.
OWASP’s agentic guidance already says to pin tools by content hash and re-check them at runtime, written with third-party tools in mind. The gap is your own internal server, fed by a store your own staff can write. The invariants I would hold:
Every definition and instruction string that reaches the model matches the approved manifest, compared over the whole set and not tool by tool. A changed tool is withheld, a changed instruction string or an unexpected tool withholds the whole server, and each mismatch records an event.
Verification runs on every load, including startup, expiry, notification, scale-out and any cached copy.
Each call is validated against the manifest revision pinned when its task began. Each execution event records that revision, extending the rule from “Agent handoff security: messages, state and execution” that every action carries the configuration in force.
A change is an approval event. It comes through the reviewed build path, is approved by someone other than the requester, carries a higher version than the current manifest and is loaded by an explicit reload.
No authority comes from metadata. The services behind the tools enforce their own recipient and record limits whatever a description says.
You can test each of these deterministically. Change only a description, then only a schema value, then only an annotation, and each must be withheld with a mismatch record. Poison a cached copy while the origin stays clean, and the host must reject it. Re-serve an older approved manifest, and the host must reject it. Swap the manifest during a running task, and in-flight calls must validate against the original.
A pinned definition can still be wrong, so the services keep the final say
Pinning proves which definition was approved. It does not prove the definition is correct or narrow, and the approver and the build path become the new target. Approve an overbroad description on purpose, tell the agent to send records outside, and watch “notify reviewer” refuse the outside recipient on its own allowlist. The no-authority-from-metadata invariant is what contains a bad approval. More signing does not.
Pinning definitions also does not pin code. A tool’s implementation can change while its definition stays exactly the same, and that belongs to software supply chain controls and to the enforcement at the service. Tool output is out of scope here too, and it stays an injection surface we have to handle on its own.
Tool lists can legitimately differ by the caller’s authorization, and then you need a manifest per profile. Many profiles mean more review work, and that pressure can push teams back toward unpinned loading. I don’t have a clean answer for highly dynamic, per-user tool sets yet. The operational cost is real as well. A typo fix becomes a release, a mismatch takes a tool offline, and any emergency bypass has to be an approval event itself, or it becomes the new mutable path.
Proposals to add definition pinning to the protocol have been discussed and not adopted, so for now this sits with you. What should you check next week? List every field your agents read about their tools, find where each one is stored, and ask who can write it without a code review.
Peace. Stay curious! End of transmission.
To continue reading this article, please subscribe, it is free for all my subscribers.
P.S. How AI was used in the creation of this piece:
The topic, scope, and architectural guardrails are mine.
AI helped research and verify sources against primary documentation, which I checked before anything went into the article.
AI helped draft the research monograph and the design brief, and draft the article under strict first-principles rules.
AI ran automated prose, guardrail and grounding checks during review.
I am responsible for validating the architectural reasoning and final wording before publication.


