← Latest papers
💻 computer science

ToolMinimize: Auditing and Rewriting LLM Agent Tool Calls to Minimize Privacy Exposure

ToolMinimize is a middleware system that audited and rewrites LLM agent tool calls to strip unnecessary privacy-sensitive data through schema-aware analysis and argument transformations, achieving significant privacy reduction while maintaining 100% task validity.

Original authors: Wenbiao Li, Yuqiao Xu

Published 2026-08-27
📖 6 min read🧠 Deep dive

Original authors: Wenbiao Li, Yuqiao Xu

Original paper dedicated to the public domain under CC0 1.0 (http://creativecommons.org/publicdomain/zero/1.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the modern digital landscape, artificial intelligence assistants have evolved from simple chatbots into active agents capable of performing complex tasks. When a user asks such an agent to check the weather, book a flight, or schedule a meeting, the system does not simply reply with text; it reaches out to external services, known as tools, to gather the necessary information and execute the request. This process involves the agent sending a specific set of instructions and data to a third-party server. While this architecture allows for powerful functionality, it creates a hidden vulnerability: the agent often sends far more information than the tool actually needs to do its job. Just as a person might tell a taxi driver their full life story when they only need to provide a destination address, these AI agents frequently include sensitive personal details—such as medical conditions, financial status, or home addresses—in their requests, crossing the boundary of trust between the user and the service provider.

Researchers at Case Western Reserve University have identified this phenomenon as a systemic flaw in how current AI agents operate. They found that under standard conditions, these agents routinely overshare private data, including details that reveal a user's health status, location, or personal habits, even when the tool being used requires only a city name or a date. This over-sharing happens because the agents are optimized to be helpful, leading them to include every available piece of context in their requests, regardless of whether that context is safe to transmit. The problem is not solved by simply telling the AI to be more careful; even when users explicitly instruct the system to minimize data sharing, the agents still leak a significant amount of sensitive information. Existing security measures, which typically act as a simple gatekeeper to either allow or block a request entirely, are insufficient because they cannot edit the content of the message. If a request contains a mix of necessary and unnecessary data, blocking it prevents the task from being completed, while allowing it exposes the user's privacy.

To address this, the research team developed a new system called ToolMinimize, which acts as a sophisticated filter sitting between the AI agent and the external tools it calls. Instead of blocking requests or relying on the AI to self-censor, this system intercepts every message, analyzes exactly what data is required for the specific tool to function, and then rewrites the message to strip away everything else. The system operates by first identifying sensitive information, such as a specific hospital name that implies a diagnosis or a full street address, and then applying one of four strategies to protect the user. It can remove unnecessary fields entirely, generalize specific details to a broader category (like changing a precise address to just a city name), substitute sensitive values with generic placeholders, or truncate data to a safer length. Crucially, this rewriting happens without breaking the task; the tool still receives the exact information it needs to succeed, but the user's private details remain hidden.

The researchers tested this approach across three major artificial intelligence models and a wide variety of real-world scenarios, ranging from scheduling medical appointments to searching for support groups. Their measurements revealed that without intervention, between 81 and 88 percent of tool calls contained unnecessary private data. Even when users added specific privacy instructions to their prompts, the agents still overshared in 36 to 76 percent of cases. However, when the ToolMinimize system was active, it successfully reduced the privacy cost of these interactions by between 81 and 92 percent, all while maintaining a perfect success rate for the tasks being performed. The system proved effective even when dealing with complex data that traditional privacy tools often miss, such as the name of a cancer treatment center which, while not a direct identifier, clearly implies a serious health condition. By combining a deep understanding of what each tool requires with a careful analysis of the data being sent, the system ensures that only the minimum necessary information crosses the trust boundary.

The performance of this system is both robust and efficient. In live tests involving hundreds of tool calls, the middleware processed requests in a fraction of a second, adding negligible delay to the user experience. The researchers also found that the system works effectively across different types of software frameworks and can handle tools that do not have detailed instructions about what data is strictly necessary. In cases where the system had to guess the requirements, it still managed to reduce privacy exposure by nearly 80 percent. When an optional layer was added to analyze the specific content of free-text fields, the reduction in privacy risk climbed even higher, reaching over 95 percent in some instances. This demonstrates that the problem of oversharing is not a result of a lack of user caution or poor AI training, but rather a structural issue in how agents communicate with external services.

The study explicitly rules out the idea that current safety training or simple privacy prompts are sufficient to solve this problem. The data shows that even the most advanced models continue to leak sensitive information when left to their own devices, driven by their core objective to be as helpful as possible. Furthermore, the research argues against the notion that blocking entire requests is a viable solution, as this would render the agents useless for many common tasks. Instead, the findings point to the necessity of a middle ground: a system that understands the nuance of data minimization, distinguishing between what is essential for a task and what is merely context. By rewriting the arguments of tool calls rather than rejecting them, this approach preserves the utility of the agent while drastically reducing the risk of privacy exposure.

Ultimately, the work presented in this paper offers a practical path forward for securing the next generation of AI assistants. It shifts the focus from trying to train the AI to be less helpful to building a protective layer that ensures the AI's helpfulness does not come at the cost of user privacy. The results indicate that it is possible to have agents that are both highly capable and respectful of personal boundaries, provided that the data they transmit is carefully curated before it leaves the user's device. As these systems become more integrated into daily life, the ability to automatically strip away unnecessary details will be essential for maintaining trust and safety in an increasingly connected world.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →