Skip to content

Paper: Tool calls succeed but workflows fail: eight categories of anomalies at the agent–tool boundaryWhen Tool Calls Succeed but Workflows Fail: Anomalies at the Agent-Tool Boundary

arXiv: Agent & MCP Security· arXiv:2609.15397· Artem Trofimov, Boris Novikov·Indexed by this site · 2026-10-01· Originally publishedAttacks

Quick read

Analysis and theory

Based on the paper PDF (AI-generated); refer to the original

The authors catalog external-effect anomalies in agent tool calls and argue that MCP standard annotations cannot fully express the required transactional capabilities.

Questions
Each tool call succeeds individually, yet the workflow's external outcome can still be duplicated, missing, or residual after an abort. The authors focus on whether the runtime can obtain sufficient evidence from the tool interface to verify that these outcomes are consistent with the workflow's final decision.
Methods
The authors model effects in the world separately from runtime observations, organize eight categories of anomalies and the capabilities needed to exclude them, then summarize transaction contracts and the guarantee boundaries of black-box calls, and examine which capabilities the MCP standard annotations can express.
Experiments and results
Among tool samples from reachable remote MCP servers, 61.7% serialize all four standard annotations. The authors argue that complete fields still do not mean complete transactional semantics; in Table 4, no required boundary capability can be fully expressed.
Limitations and future work
The authors leave formal coverage, minimality, independence, and proof of guarantee boundaries for later work. The survey only reads tool declarations from reachable remote servers; it does not invoke tools or measure implementation behavior; packaged and stdio-only servers are outside the survey scope.
Experimental setupofficial MCP registry (snapshot 2026-07-27) · annotation field presence、tool-level signatures et al.
Benchmarks
official MCP registry (snapshot 2026-07-27)
Metrics
annotation field presencetool-level signaturesdominant signature coverageboundary capability expressibility
AI summaryThe paper proposes an effect history model that separates events occurring in the external world from the runtime's observation of those events, and summarizes eight recurring categories of external effect anomalies. Under retries, speculative execution, concurrency, and partial failure, required effects may be missing or duplicated, aborted effects may remain, and committed effects may depend on temporary state that is subsequently withdrawn. From this, the authors derive the boundary capabilities needed to exclude each category of anomaly, and point out four places where black-box tool calls alone cannot provide general guarantees. The authors then measure the use of the standard annotation vocabulary by 98,291 tools exposed by registered MCP servers, finding that these fields are widely emitted but provide only coarse-grained call-level hints, and that none of the required capabilities can be fully expressed, so they propose introducing reusable transaction contracts at the tool boundary.

The paper proposes an effect history model that separates events occurring in the external world from the runtime's observation of those events, and summarizes eight recurring categories of external effect anomalies. Under retries, speculative execution, concurrency, and partial failure, required effects may be missing or duplicated, aborted effects may remain, and committed effects may depend on temporary state that is subsequently withdrawn. From this, the authors derive the boundary capabilities needed to exclude each category of anomaly, and point out four places where black-box tool calls alone cannot provide general guarantees. The authors then measure the use of the standard annotation vocabulary by 98,291 tools exposed by registered MCP servers, finding that these fields are widely emitted but provide only coarse-grained call-level hints, and that none of the required capabilities can be fully expressed, so they propose introducing reusable transaction contracts at the tool boundary.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The core problem is that successful tool calls do not equal consistency between the workflow's external effects and the final decision.

    The core question is whether the effects left in the external world after an agent workflow ends are consistent with its commit or abort decision. The authors focus on transactional consistency and verifiability, not on jailbreaks or prompt injection as research subjects.

    • Application scenarios: long-running processes send messages, make payments, or place orders through independently supplied tools. Retries, speculative execution, concurrency, and partial failures can cause duplication, omission, residue, or dependence on tentative effects.
    • Verification obstacles: after a timeout or lost confirmation, whether the effect occurred in the world is already determined, but the runtime may not know. The authors argue that when the interface provides no evidence, the runtime, supervising agents, and external auditors cannot establish the corresponding guarantees.
    • Existing methods: the authors state that replay, compensation, staging, and coordination mechanisms are not new; the problem is that the underlying semantics these mechanisms depend on are often declared by the runtime's own adapters outside the interface.
    • Core observation: idempotency, reversibility, externalization timing, determinism, and commutativity cannot be compressed into a single "reversible/irreversible" level. Commutativity also involves operation pairs, shared resources, and state conditions.
    • What is proposed: an effect-history model, eight categories of external-effect anomalies, the boundary capabilities needed to exclude them, and an MCP annotation survey. The authors argue for adding a reusable transactional contract layer rather than only adding recovery mechanisms.
  2. What related research exists?

    The authors connect transaction recovery with agent runtime research, focusing on what boundaries third-party tools should declare.

    Related work centers on transactional semantics, agent runtimes, and adjacent consistency models; the authors' positioning is to identify the interface preconditions needed for guarantees to hold.

    Classical transactions and consistency

    • Berenson et al. (1995), Adya (1999) — characterize isolation and weak consistency via anomalies; the authors follow this organizational style but separate execution events from runtime observations.
    • Guerraoui and Kapalka (2008) — study opacity in transactional memory correctness; the authors borrow their approach of excluding unsafe histories to analyze external effects that cannot be rolled back.
    • Sagas, compensating transactions, and escrow — Garcia-Molina and Salem (1987), Korth et al. (1990), and O'Neil (1986) discuss compensation and semantic concurrency control; the authors state these mechanisms rely on known underlying operation properties.

    Agent runtimes

    • ACRFence, RAC (2026) — the former targets semantic rollback attacks, marked in Table 3 as proposing a scheme with attacks verified but not implemented; the latter targets compensation, and the authors classify its coverage as partial A4.
    • Atomix, Cordon (2026) — both stage effects; Atomix also tracks speculative dependencies. The authors state their A1/A3 coverage relies on tool semantic assumptions rather than a general outcome-resolution protocol.
    • CoAgent, Shepherd (2026) — the former handles conflicts through reordering and registered inverse operations; the latter provides a reversible execution trace with per-effect levels. Table 3 positions Shepherd as meta-agent infrastructure rather than a runtime guarantee.

    Adjacent models and workflow guarantees

    • S-Bus, Revisable by Design, SagaLLM — respectively address read-side coordination on shared state, intent revision under irreversible conflicts, and Saga-style multi-agent planning verification; the authors also cite workflow isolation-level research.
    • Agentic Transaction (2026) — proposes agent-oriented ACID semantics instantiated in a data-agent runtime. The authors instead ask what third-party tools must declare to establish such guarantees.
    • Khan (2026)'s concurrency anomaly catalog — provides mechanically verified detectors and safety guarantees; its causal-cascade is close to A6. The authors distinguish their own focus as call-outcome uncertainty and boundary capabilities.

    Baselines and data: the paper runs no method-comparison baselines; Table 3 is a classification of what existing systems claim to cover, not a reproduction experiment. Empirical data come from the official MCP registry.

    The authors state that existing systems cover part of the catalog under local runtime assumptions, while the shared interface lacks reusable contract declarations.

  3. How does the paper address this problem?

    The authors first define effect history and eight categories of anomalies, then derive evidence, lifecycle control, and coordination contracts.

    The authors use an effect history to describe the relationship between workflows and the external world, then derive the information and control capabilities the tool boundary must provide from the history patterns that must be forbidden.

    Separation of world events and runtime observations

    • Two-layer slicing: L0 is the tool operation that the caller treats as atomic; L1 is the workflow that composes them. Each attempt, compensation, and effect is attributed to the workflow and branch that initiated it.
    • Event vocabulary: Table 1 records attempts, effect production, compensation, causal dependencies, commutativity, commit, and abort; observations are classified as confirmed, failed, or unknown.
    • Meaning of uncertainty: unknown is a runtime knowledge state, not a third outcome of a world event. Compensation also produces its own external effects; survives means the effect has been produced and never neutralized.

    Eight categories of anomalies and their distinctions

    • Outcome uncertainty A1–A3: A1 is one logical operation producing an effect twice; A2 is a required effect missing at commit; A3 is issuing compensation while the outcome is unknown. A3 holds at the time the action occurs, even if the final state happens to be correct.
    • Workflow structure A4–A6: A4 is residue remaining after abort; A5 is externalizing an effect that may not be retained before resolution; A6 is a committed effect depending on an effect that may not be retained later.
    • External interaction A7–A8: A7 is independent executions releasing unordered, non-commutative effects on shared resources; A8 is external participants' reactions persisting after the original effect is compensated.
    • Pattern boundaries: A5 and A7 are defined relative to guarantee configurations that forbid depending on outcomes not established through the interface; they need not be final-state errors. A6's dependent effects are managed by the system; A8's consequences come from external participants.

    Guarantee configurations and contract families

    • Guarantee configurations: unknown-safe excludes A1–A3; compensation-safe excludes A4, but assumes compensation is correct and successful; speculation-safe excludes A5–A6; externally-mediated excludes A7–A8 when intervention is allowed at the boundary.
    • Evidence contracts: outcome queries, persistent confirmations, or idempotent resends returning the original result are needed to converge a logical operation to an authoritative outcome. Deduplication alone is insufficient for A2 and A3.
    • Lifecycle contracts: declare compensation preconditions and success semantics, stable identities for effects and resources, and staging, expiry, and release semantics. Dependency tracking protects the smallest set of effects that must be finalized together, i.e., the commit sphere.
    • Coordination contracts: commutativity is declared at the resource and operation-pair level; when non-commutative, mediated ordering is needed, and inverse operations support post-conflict repair. Visibility contracts specify who can observe an effect before it is finalized.

    Four guarantee boundaries for black-box calls

    • Ambiguous outcomes: the authors state that without an authoritative-outcome primitive, a protocol cannot both end a workflow and generally guarantee unknown-safe and compensation-safe; waiting can avoid the choice but abandons completing resolution.
    • Irreversible conflicts: the authors state that non-mediated, non-commutative, and irreversible effects have no general conflict-repair path; preventing unordered release or operation-specific coordination are the paths they discuss.
    • Open-world reactions: withdrawing the original effect does not withdraw external participants' reactions. The boundary capability the authors propose is visibility control before observation occurs.
    • Cross-tool atomic release: the authors state that irreversible effects across multiple tools cannot generally be released atomically by upper-layer calls alone; tool-side prepare/commit participation is needed. Section 4.2 explicitly leaves formal proof as future work.
  4. What experiments did the paper conduct?

    The empirical part surveys MCP tool annotations, does not call tools, and does not run agent safety benchmarks.

    The empirical evidence comes from a census of MCP registry annotations; the anomaly catalog, runtime coverage, and guarantee boundaries are model and contract analysis, not fault-injection experiments.

    Experimental setup

    • Object and snapshot: Section 5 reads the 2026-07-27 snapshot of the official MCP registry: 59,625 records, which after keeping the latest version leave 18,688 distinct servers.
    • Remote scope: 9,454 servers have no remote endpoint and were excluded; the authors anonymously queried tools/list for all 9,234 remote targets, including targets that declare authentication headers.
    • Response sample: 4,838 targets returned at least one tool, 4,318 connections failed, 74 timed out, and four had no tools; a total of 98,291 tools were obtained, with a median of 11 tools per server.
    • Field encoding: readOnlyHint, destructiveHint, idempotentHint, and openWorldHint were recorded, distinguishing true, false, and omission; the combination of the four fields constitutes a tool signature.
    • Metrics and judgment: the proportions of serialized fields, signature frequencies, and within-server signature coverage were counted; Table 4 judges capability expressibility based on the standard vocabulary, with no LLM review or human consistency measurement.
    • Models and execution: the paper did not run any models, tool calls, or baseline methods. The survey is a single snapshot, with no repeated collection reported; responding targets did not refuse discovery with HTTP 401 or 403, and connection failures were not classified.

    Main results

    The table below is based on the text of Section 5; the denominator is all tools obtained in the survey unless otherwise noted.

    Statistical object/conditionMetricValue
    At least one standard annotation fieldSerialization proportion74.0%
    All four standard annotation fieldsSerialization proportion61.7%
    Four fields as read-only, non-destructive, idempotent, open-worldTool signature proportion39.9%
    All four fields omittedTool signature proportion26.0%
    The three most common signaturesCombined proportion75.8%
    destructiveHint setField proportion65.8%
    destructiveHint applicable to non-read-only toolsProportion carrying an applicable classification12.9%
    Declaring actual destructive operationsTool proportion3.1%
    • Field presence and semantics: the authors believe field values may come from SDK defaults or server templates and cannot be attributed to author intent on that basis.
    • Capability expression: Table 4 marks A1 as Limited: only an idempotency hint; A2–A8 are all No. The authors believe none of the required capabilities can be fully expressed.
    • Declaration and implementation: the authors explicitly survey interface declarations. Tools may internally have stronger semantics such as deduplication or idempotency keys, and these behaviors were not measured.

    Signature distribution and within-server differentiation

    • Signature types: each of the four fields has three states, giving 81 possible signatures, of which 66 appeared in the survey (Section 5).
    • Within-server variation: among multi-tool servers that emit at least one annotation field, 76.7% use multiple signatures; for servers that emit fields, the median coverage of their dominant signature is 79.4% (Section 5).
    • Authors' interpretation: the authors say tool differentiation is widespread but coarse-grained. When readOnlyHint is true, destructiveHint is not applicable; this field pairing accounts for 52.8% of all tools.

    Catalog mapping of existing runtimes

    • Analysis object: Table 3 compares the stated coverage of ACRFence, RAC, Atomix, Cordon, CoAgent, and Shepherd; the authors emphasize that this is not a proven guarantee and does not constitute a cumulative hierarchy.
    • Conditions and exceptions: the A1/A3 coverage of Atomix and Cordon depends on assumptions such as idempotent tools; Atomix's multi-effect release has an A2 gap, and CoAgent's conflict handling depends on reordering and registering inverse operations.
    • Coverage boundaries: the authors say none of these systems controls the external reactions of A8, and no system covers the entire catalog. Shepherd is listed as infrastructure, and its irreversible effects are recorded rather than given runtime guarantees.

    Other ablations and analyses

    • Ablation experiments: the paper does not report parameter ablations, model comparisons, latency, query cost, or actual anomaly rates; Table 4 is an expressibility analysis of the interface vocabulary.
  5. What are some points that can be further explored?

    The authors leave formal coverage of the catalog and proofs of the guarantee boundaries for later, and propose contract-driven protocol synthesis.

    The authors explicitly leave formal argumentation and contract implementation as follow-up work; the current empirical scope is a census of interface declarations.

    Limitations and future directions noted by the authors

    • Catalog completeness: Section 3.3 says the catalog aims at coverage rather than being proven complete by theorems; external reactions in the open world are unbounded, and absolute completeness cannot be obtained.
    • Formal coverage: Section 3.3 lists coverage, minimality, and independence within the model vocabulary as future work; that all representable transaction control losses fall into three families is the authors' conjecture.
    • Guarantee boundary proofs: Section 4.2 and Section 6 leave formal proofs of the four guarantee boundaries for later; the current statements come from definitions and connections with existing systems.
    • Protocol synthesis: Section 6 proposes synthesizing protocols from declared contracts.
    • Cost model: Section 6 proposes pricing anomalies and compensation to decide when speculative execution or early release is worth bearing the residue.

    Experimental coverage

    • Survey population: Section 5 covers tools that can reach a remote server; the authors explicitly note that unreachable, package-based, and stdio-only servers may differ.
    • Behavior level: Section 5 only executes tools/list, does not call tools, and does not measure whether implementations satisfy declarations; the authors say implementation-level gaps require implementation-level analysis.
    • Modeling scope: Section 3.3 places semantic planning errors, read-side anomalies, safety and policy violations, contract misclassification, and liveness failures outside the model.
    • Execution order: Section 3.3 places the ordering of internal execution effects outside the model, except in cases involving A7 conflicts; Table 3 records the coverage stated by existing systems.
    • Reported information: Section 5 gives one snapshot and the sample composition, and does not report repeated collection, human verification consistency of declarations, or tool implementation verification.
  6. Summarize the main content of the paper

    The authors reduce workflow external-effect safety to observable outcomes, lifecycle control, and resource coordination contracts.

    This is a transactional safety analysis of the agent–tool boundary, supplemented by an MCP annotation survey. It focuses on what remains in the external world after a call ends, rather than only on whether the call returned successfully.

    • Problem framing: retries and partial failures produce unknown outcomes; speculation and concurrency can externalize effects before the workflow's decision; the authors argue that improving upper-layer recovery logic alone cannot fill in interface semantics.
    • Analysis framework: the model distinguishes real events from runtime observations, organizes eight categories of anomalies, and classifies exclusion capabilities into evidence, lifecycle control, and coordination. The authors also propose four guarantee configurations and four guarantee boundaries for black-box calls.
    • Survey sample: the registry survey of 2026-07-27 obtained 98,291 tools from 4,838 remote targets returning tools; no tools were invoked and no models were run (Section 5).
    • Field coverage: in the sample, 74.0% of tools serialize at least one standard annotation, and 61.7% serialize all four; the most common read-only, non-destructive, idempotent, open-world signature accounts for 39.9% (Section 5).
    • Semantic gap: although destructiveHint is set on 65.8% of tools, the applicable classification accounts for 12.9% of all tools. In Table 4, A1 has only an idempotency hint; the remaining capabilities cannot be expressed (Section 5).
    • Authors' conclusion: the shared interface needs reusable transactional contracts, and runtimes then consume these capabilities through protocols. The catalog's formal coverage and guarantee boundaries remain to be proven; the survey conclusions concern declarations and do not equal actual tool behavior.
Read originalarxiv.org