TRANSMISSION // 2612.04590v1

A correct tool reply may hide where its answer came from

Source published

A study of MCP tools tests what traces, cache flags and provenance records can reveal about who started work, who joined it and which stored result later callers received.

AI-generated conceptual illustration for A correct tool reply may hide where its answer came from
AI-generated conceptual illustration; not documentary evidence.

When an AI assistant gets a report from a tool, the reply alone may not reveal whether the tool read the file, shared work already underway or returned a stored result. Jie Pan and Weicheng Wang examine what audit records can—and cannot—show about that distinction.

A tool gives an AI assistant the right answer. But what happened behind the reply? The tool might have read a file for that request, shared an in-progress read with another caller, or returned a result stored from an earlier operation. These possibilities can produce identical replies, yet they matter to an auditor trying to identify which work supplied an answer and who received it.

In a preprint, Jie Pan and Weicheng Wang study this problem in systems using the Model Context Protocol (MCP), a standard way for assistants to call tools. They separate three roles: the request that starts a piece of work, the downstream call that performs it, and the callers that receive its result. For cached results, they also track the successful stored result, or “fill,” that a later reply uses.

That separation matters because a trace of a request is not necessarily a record of every request that benefited from its work. Nor does a successful tool call prove that a new file read happened: a cache may answer without contacting the underlying tool. The researchers therefore compared system records with independent evidence, including observed tool calls, file operations, successful cache writes and actual deliveries to callers.

What the tests examined

The study used controlled local workloads rather than a random sample of real-world assistant activity. It examined tracing in filesystem tools and proxies, cache behavior in FastMCP and the Academic Tools MCP application, and provenance features in Flowcept and Cromwell. Some comparisons used synthetic upstream responses; the Flowcept and Cromwell tests were adjacent workflow controls, not MCP experiments. The authors kept these different systems and workloads separate rather than combining them into one overall performance score.

The researchers distinguished an explicit record—such as a producer reference attached to a result—from an inference that can be made from complete history. For example, a later cache hit might not say which operation created the stored result. But if an auditor has the complete successful write history and knows how replacement works, the source may still be identifiable. Without that history, the same later reply can remain ambiguous.

Traces helped, but retained details mattered

Native tracing recovered delegation paths in the tested cases when the necessary spans were kept. A span records part of an operation and its relationships to other operations. But filtering spans by name could discard an intermediate step needed to connect the endpoints. In the study’s captures, retaining the relevant ancestors preserved the tested paths, while the narrower name-based selection did not. This is a result about those traces and that selection rule, not a universal recipe for reducing tracing data.

Cache records answered a different question. In the tested Academic Tools workload, a stock “cached” flag marked later reads from a completed disk artifact. It did not distinguish a caller that started a fetch from another caller that joined the same fetch while it was still underway: both appeared as not-later-cache hits. The researchers observed this behavior under controlled overlap, so it shows what the field meant in that setup—not how often such sharing occurs in ordinary deployments.

In ten FastMCP runs, an application-provided producer reference survived the system’s native cache path and identified the tested fills. Complete successful write history also identified the tested later hits, even when the reply itself lacked an origin field. A separate controlled test showed why submission order alone can mislead: when the order of successful commits was deliberately reversed, the later-submitted request was not the one whose result supplied the later reply. The test demonstrates a counterexample to that shortcut, not the frequency of such order reversals in production.

The authors also found that existing provenance and workflow systems could identify origins in their intended test settings. These positive controls are important: the paper does not argue that cache provenance is inherently unavailable, or that MCP systems as a whole cannot support audits. Instead, it shows that the answer depends on which records a particular system emits and which records an auditor retains.

What remains uncertain

The experiments cover selected, read-only operations in controlled environments, not a representative sample of deployed assistants or tools. The Academic Tools test used a synthetic upstream fixture and imposed an overlap to examine pending work. The FastMCP results concern a specific tested configuration and workload. The study did not evaluate malicious or forged telemetry, estimate production frequency, or establish that any read was unauthorized. It also did not determine which immutable file version was read in the repeated FastMCP comparison.

The practical lesson is to match records to the audit question. To identify who started work, retain usable request ancestry. To identify who received shared work, record successful deliveries. To trace a later cache hit to its source, keep a scoped producer reference or enough successful write history to reconstruct the result’s origin. A correct reply, by itself, does not answer all three questions.

This article is based on version 1 of an arXiv preprint. The work is not presented here as peer-reviewed, and the controlled findings should not be read as a general assessment of all MCP tools or tracing products.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.