NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SchemaCaps: When a Compatible Tool Update Silently Widens an AI Agent's Authority

Yulliwas Ameur, Samia Bouzefrane, Soumya BanerjeearXiv 2026

TL;DR

When you approve a tool for your AI agent, you’re essentially giving it a "power of attorney" over a specific set of actions. But what happens when that tool updates? This paper reveals that "compatible" updates often silently grant agents new, unauthorized powers—like the ability to run shell commands or send data to new URLs—without ever asking the user for permission. The authors propose SchemaCaps, a system that uses formal logic to detect these "authority widenings" and only interrupts the user when a tool update actually increases the agent's reach.

What Problem Does This Paper Address?

We are increasingly living in a world of "Agentic AI," where LLMs don't just talk; they act using tools via protocols like the Model Context Protocol (MCP). When you first use a tool, you see a description and a schema (a blueprint of what data the tool accepts) and click "Approve."

The problem is that software evolves. A developer might release a "backward-compatible" update to a tool. In the software world, "compatible" usually just means "it won't break your existing code." However, in the security world, a compatible update can be a nightmare. For example, a command-execution tool might add an optional shell parameter. Your old calls still work perfectly, but now the agent has the newfound authority to bypass restrictions using a shell.

Currently, most AI platforms either ignore these changes entirely (letting the agent's power grow silently) or "pin" the schema, nagging the user to re-approve the tool for every tiny change, even if it’s just a typo fix in a description. This leads to approval fatigue, where users eventually just click "Yes" to everything.

Methods

The authors introduce a formal rule for non-amplification. The goal is to determine if a new version of a tool ($S'$) grants more authority than the version the user originally approved ($S$).

  1. Subschema Inclusion: They use a mathematical check to see if the set of values allowed by the new schema is a subset of the old one. If the new version only allows fewer or the same actions, it's a "narrowing" and can be safely updated silently.
  2. The SchemaCaps Proxy: They built a prototype that sits between the agent and the tool server. It intercepts tool updates and applies Algorithm 1, which checks for "authority-bearing" changes—like new fields, opened objects (where any field is now allowed), or widened data ranges.
  3. Defense in Depth: Because checking JSON Schema inclusion is notoriously difficult (and sometimes undecidable), they combined an existing checker (jsonsubschema) with a custom "guard" that uses randomized testing (via the Hypothesis library) to search for counterexamples that might prove an update is actually an amplification.
  4. Formal Verification: To ensure their logic was sound, they wrote a proof in Coq (a formal proof management system) to show that these safety properties hold even across a long chain of multiple updates.

Datasets

The researchers evaluated SchemaCaps using several different "proving grounds":

  • Exact-reference benchmark: A synthetic suite of 600 JSON Schema pairs designed to test the limits of the inclusion checker.
  • MCP Server Pilot: They analyzed 604 releases of 39 public MCP servers, creating a corpus of 565 successive update pairs to see how tools actually change in the wild.
  • Real-world Replay: They hand-verified six specific cases of authority widening in popular tools like Desktop Commander, GitLab, and Sentry.

Key Insights and Ideas

  • Compatibility $\neq$ Authority: This is the central "aha" moment. As shown in Table 2, many changes that are perfectly fine for a programmer (like adding a field to a closed object) are actually "amplifications" of what an agent can do.
Table 2: Schema changes on the two axes. Counts: changed tools among the 580 compatible changes of the pilot whose reasons include the kind (lexical / label-free), except † (all tool pairs).
  • Label-Free Security: You don't need to know what a field means to secure it. By default, SchemaCaps treats any field it doesn't recognize as "authority-bearing." This "trust no one" approach ensures that even if a malicious developer names a dangerous parameter innocuous_flag, the system will still flag it as a widening of authority.
  • Silent Narrowing is a Win: By allowing "narrowing" updates (where a tool becomes more restrictive) to happen silently, SchemaCaps reduces the number of times a user is interrupted without sacrificing security.

Key Results

The authors' survey of existing tools (Table 5) found a bleak landscape: of the 8 MCP clients and scanners tested, none were documented to re-approve a tool when its authority widened. Most just let the new power flow through silently.

Table 5: Deployed MCP software when an approved tool’s input schema widens (30 Sept. 2026). tested: run against our drift server; source: code read; docs: documentation. Class: (a) uses the new definition silently; (b) flags any change; (c) re-approves on incompatible change; (d) reasons about widening.

In their pilot study of real-world MCP servers (Table 4):

  • They found 580 compatible changes, but 412 of those (71%) actually widened the agent's authority in some way.
  • SchemaCaps required 645 re-approvals over the course of the study. While this sounds like a lot, it is a massive improvement over "pinning" (which would have asked 1,197 times) and only slightly more than "compatibility" checks (which would have asked 617 times but missed all the security risks).
Table 4: Pilot results. Changed: tools whose input schema changed within a pair; Compatible: every old call stays valid. Amplifying: adds or widens a lexically flagged argument (core), meets Definition 1 with lexical roles (strict), or any coordinate (label-free). Re-approvals on tools present in both releases (every rule also asks for the 907 added tools). SC: SchemaCaps.

Limitations and Future Work

  • The "Iceberg" Problem: SchemaCaps only sees what's in the JSON Schema. If a developer changes the server-side code to make a tool do something different without changing the schema, SchemaCaps won't catch it.
  • Prompt Injection: The system doesn't currently address "indirect prompt injection," where an attacker might hide instructions in a tool's description to trick the agent.
  • User Experience: While 645 questions is better than 1,197, it's still a lot of pop-ups over 21 months. The authors suggest that future work should include user studies to see if this level of "nagging" still leads to rubber-stamping.
  • Output Schemas: The current work focuses entirely on what the agent sends to the tool, not what the tool returns to the agent.

In short: Agent platforms need to stop asking "Will this update break my code?" and start asking "Does this update give my agent a gun it didn't have before?"

Summary updated

BibTeX
@misc{ameur2026schemacaps,
  author = {Yulliwas Ameur and Samia Bouzefrane and Soumya Banerjee},
  title = {{SchemaCaps: When a Compatible Tool Update Silently Widens an AI Agent's Authority}},
  year = {2026},
  eprint = {2611.30750},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.30750},
}
Figure