arXiv:2610.41885cs.CROct 2026

Manuscript Offprint

arXiv:2610.41885

How Much Can Tool Calls Reveal About You? Privacy Leakage from Tool-Call Traces

Donghang Duan, Qingyu Liu, Yifei Liu, Na Zou, Xia Hu, Dongrui Liu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large language model (LLM)-based agents interact with external tools through protocols such as the Model Context Protocol (MCP), producing tool-call traces that may expose behavioral signals about users. In this work, we systematically study the risk of user-profile inference from MCP tool-call traces, where observers infer user attributes from protocol-valid tool interactions without access to user conversations. We introduce PrivacyTrace, a benchmark containing 1,000 synthetic user profiles and 4,000 agent trajectories across four domains, generated with real MCP tools from 25 servers. Experiments with four mainstream LLM attackers show that tool-call traces enable a 26.25% attack success rate for profile inference, compared with 17.97% from prior-based guessing. Further analysis reveals that tool arguments and returned results provide the main trace-grounded evidence, while linking traces across sessions further amplifies profiling risk. These findings demonstrate that MCP tool-call traces can act as effective behavioral side channels for user profiling, motivating the development of privacy-aware mechanisms for agent-tool interactions. Code and data are available at https://github.com/AI45Lab/PrivacyTrace.

1 Introduction

Large language model (LLM)-based agents increasingly serve as intermediaries between users and external services. To fulfill a request, an agent converts user instructions into tool selections, tool arguments, and sequences of tool invocations (Yao et al., 2022; Schick et al., 2023; Qin et al., 2024). The Model Context Protocol (MCP) standardizes interactions between agents and remote tool servers (Anthropic, 2024). These interactions generate tool-call traces containing tool names, arguments, returned results, and call sequences. Remote servers can observe the calls they serve, even without access to user conversations or agent reasoning. This raises a privacy question: what user information can an observer infer from an agent's tool-call traces?

We observe that tool-call traces generated by MCP-based agents can reveal user attributes beyond explicit disclosures. The example in Figure 1 illustrates how legitimate tool-call traces can reveal behavioral signals that may support inference of sensitive user attributes, such as religious beliefs and health conditions. Such inference represents a fundamental privacy risk, as it allows observers to uncover user attributes that are neither directly disclosed nor necessary for completing the intended task. Existing studies on agent privacy have mainly examined task-level risks, including unnecessary acquisition of sensitive data (Zhang et al., 2026), inappropriate disclosure (Shao et al., 2024; Wang et al., 2025; Hu et al., 2026), and inference of immediate user intent from tool interactions (Yao et al., 2025). However, whether MCP tool-call traces can serve as behavioral footprints that reveal persistent user attributes and enable profile inference remains unexplored.

In this paper, we propose PrivacyTrace, a benchmark for systematically evaluating profile inference from MCP-based agent tool-call traces. PrivacyTrace models this problem as an observer attempting to recover a user's latent profile from protocol-valid agent interactions. The benchmark contains 1,000 population-informed synthetic user profiles and 4,000 agent trajectories across four domains: travel, health, shopping, and career learning. Each profile includes 17 ground-truth attributes and is generated through controlled

*Equal contribution.

†Corresponding author.

Figure

Figure 1: Tool-call traces as a privacy side channel. In this example, geocoding results and patterns in requested travel times and transport modes may support inferences about the user's location, health condition, and religious affiliation.

sampling and consistency validation, enabling evaluation without collecting sensitive real-user traces. For each profile and domain, we construct profile-conditioned tasks and execute them using real MCP tools from 25 servers, producing 67,950 tool-call records.

We implement the MCP agent using Pydantic AI (Maan et al., 2025) and evaluate PrivacyTrace with four mainstream LLMs, including MiniMax-M3, DeepSeek-V4-Flash, GPT-5.5, and Gemini-3-Flash (MiniMaxAI, 2026; DeepSeek-AI, 2026; OpenAI, 2026; Google DeepMind, 2025). Our experiments show that MCP tool-call traces can enable profile inference beyond prior-based guessing: the average attack success rate (ASR) increases from 17.97% to 26.25% when trace evidence is available. We further analyze this phenomenon from four perspectives. Trace channels: tool arguments and returned results provide the most informative signals, improving ASR by 13.18 and 10.01 percentage points, respectively, over metadata and call sequences alone. Trace visibility: linking more user activities leads to stronger inference, with cross-domain traces achieving 32.77% ASR compared with limited observations from individual servers. Attribute recovery: traces reveal diverse user attributes, although highly specific identifiers remain difficult to infer, with only 35 correct predictions among 16,000 identifier slots. Inference protocol: attributes inferred from traces can further improve recovery of remaining profile information, increasing unresolved-attribute accuracy by 3.30 percentage points over prior-based guessing, while a two-stage inference strategy achieves comparable performance to one-shot inference.

References (76)