Back to Blog
AIAgentsEngineering

Your AI Agent's Tools Aren't Broken. Their Descriptions Are Lying.

Jane ZdravevskiNovember 17, 202611 min read

Your agent's tool schema hasn't changed in months. Its behavior has.

That gap — between what the JSON schema says a tool accepts and what its description tells the model about when and how to use it — is where most "random" tool-calling failures actually live. Not the model. Not the schema. The paragraph of English above it that nobody re-reads after the first ship.

If you've read why a RAG assistant hallucinates on day one or why one gets worse six months in, this is the third failure in the same family — it hides inside tool calls, not retrieved context, so it's easier to blame on "the model being flaky."


The Schema Is Not The Contract

A function-calling schema defines types and required fields. It does not define truth.

Tool description drift is what happens when a tool's hand-written description — the part telling the model when and why to call it — stops matching what the tool actually does, while the schema underneath stays valid and keeps passing.

A call can be semantically wrong and still validate clean. refund_amount: 49.99 is a well-typed number whether the policy changed from "full refund" to "store credit only" last Tuesday or not.


Where The Gap Actually Opens Up (Four Real Patterns)

  • A backend contract changes, the wrapper doesn't. An API starts requiring a region field. The schema gets patched. The sentence explaining why you'd pick one region over another doesn't.
  • A tool gets repurposed. lookup_order was built for support tickets, then quietly reused for billing disputes. The description still says "support," so the model never learns the arguments a dispute actually needs.
  • Two similarly named tools diverge. create_invoice and create_invoice_draft start identical. A year later one auto-sends and one doesn't — the only record of that distinction is a one-line description nobody revisited.
  • The model generation underneath changes. A newer model reading the same unmodified description can interpret an ambiguous phrase differently than the last one did. The tool didn't change; the reader did.

None of these trip a type error. All four produce a tool call that looks completely normal in the trace and is quietly wrong in production.


Why This Reads As "The Model Is Being Weird"

Teams debugging this blame the model first, because that's where the bad call executed. One thread on exactly this pattern shows engineers tracing "hallucinated" arguments back to a stale description, live, before anyone names the real cause.

The failure is upstream — not unlike an agent that disabled its own safety monitor and then denied it. The model did exactly what it was told. The description is lying.

OWASP groups this under the unchecked tool-contract risk their Top 10 for LLM Applications tracks — a tool carrying more implicit trust than its contract earns. We ran a live system against that list, and this gap is exactly its shape.


What Most Teams Do About It (And Why It Doesn't Hold)

The common fix is a human re-read: someone skims descriptions during a sprint and fixes the obviously stale ones. It works for exactly as long as someone remembers to do it again — until the next deadline.

It's the same trap as code that's green across every test while being substantively wrong: the check that exists isn't checking what actually broke. A process fix for a structural problem doesn't stop the drift — it resets the clock.


The Fix That Doesn't Rely On Anyone Remembering

The pattern that actually holds is boring on purpose: stop hand-writing the thing that goes stale, and fail the build when someone tries to anyway.

  • Generate the contract from the schema, not next to it. The description, parameter docs, and the validator all come from one source of truth — usually the schema itself, annotated once.
  • Add a build-time guard, not a code-review habit. If a hand-written description reappears in a pull request, the build fails. Not a linter warning — a failure.
  • Treat the generated contract as the only legal input to the model. It never sees prose a human typed from memory; it sees what the schema actually produced.

This is the exact pattern behind Archon's tool-contract layer: contracts generated from the schema that validates the request, with a guard that fails the build the moment a hand-written description sneaks back in. Not a smarter prompt — the removal of the place where drift used to live.


Rolling This Out Without Freezing Your Agent For A Month

  • Week 1: Inventory every tool your agent calls, and note the last date each description was actually edited. Anything untouched 90+ days is a drift suspect by default.
  • Week 2: Pick your three highest-traffic tools. Generate their contracts from the schema instead of hand-maintaining the description, and diff the result against what's live.
  • Week 3: Add the build guard for those three tools only. Let it catch one real pull request before expanding its scope.
  • Week 4: Roll the guard out to the rest of the tool surface, and retire the manual review habit. If nobody has to remember to check, the fix worked.

What To Measure

  • Argument-mismatch rate — calls where the arguments don't match what the description implies, independent of whether the schema validated them.
  • Description-to-schema edit lag — the time between a schema change and its description catching up. Zero is the target; anything measured in weeks is a drift window.
  • Guard trip count — how often the guard fires. Rising is good news early, it's catching real drift; flat-zero after rollout means it's working.

Same discipline as scoring a RAG answer's confidence instead of just giving one, or knowing what an agent costs per call instead of guessing: measure what actually fails, not what's easy to log.

A governance spine with real kill switches and an audit log catches what an agent did. A contract guard catches what it was told to do in the first place — upstream of that, not instead of it.


If You Want ZPro to Build This With You

  • An audit of every tool your agent calls, scored for description-to-schema drift
  • A generated-contract pipeline wired into your existing build, not a rewrite
  • A build-time guard tuned to your repo's own review workflow
  • A permission-tier review so tool trust matches what each tool is allowed to do
  • Ongoing fractional coverage if you'd rather this stayed someone else's job

👉 Get in touch with us

About Jane Zdravevski

Jane Zdravevski is part of the ZPro team, bringing expertise in ai, agents, engineering to help organizations solve their most complex challenges.

Work with Us

Want to tell us a feedback on this blog post, or suggest an idea, or just chat?

Join Our Team

Passionate about solving complex problems? Explore career opportunities at ZPro.