New Research Identifies Tool Specifications as Critical AI Agent Safety Risk
Key Takeaways
- ▸Schema-formatted tool specifications weaken safety signals in LLM-based agents by interfering with internal refusal mechanisms
- ▸SafeKeep increases harmful request refusal rates by nearly 3x through inference-time safety assessment decoupling
- ▸The approach reduces prompt injection attack success from 25.6% to just 2.5% while preserving agent functionality
Summary
A new research paper on arXiv titled 'Tool Specifications Matter: Uncovering and Mitigating Safety Risks in AI Agents' reveals that schema-formatted tool specifications significantly weaken safety mechanisms in AI agents powered by large language models. The research identifies how tool specifications compromise the model's internal refusal signals, leading to unsafe tool execution.
The researchers propose SafeKeep, an inference-time safeguard that decouples safety judgment from tool execution. The approach uses flattened textual tool specifications for safety assessment while retaining the original schema-formatted specifications for execution. Tested across two representative benchmarks and four different LLMs (both white-box and black-box models), SafeKeep demonstrated dramatic improvements: increasing the average refusal rate for harmful requests from 23.8% to 70.6%, and reducing the average attack success rate under observation-level prompt injection from 25.6% to 2.5%. Critically, the approach maintains full task-handling capability, suggesting it could be deployed in production AI systems without functional degradation.
- Researchers release code and data to enable community adoption and broader AI agent safety improvements
Editorial Opinion
This research addresses a critical but underexplored vulnerability in AI agent deployment that has received insufficient attention from the industry. As organizations increasingly deploy LLM-based agents for real-world tasks with consequential outcomes, understanding and mitigating these safety risks is essential. The effectiveness of SafeKeep demonstrates that simple architectural changes to how safety assessment is decoupled from execution can yield dramatic improvements—a finding that should prompt rapid integration into production systems.



