agent_tool_risk_audit
Audits agent tool definitions for schema-level security risks including over-broad parameters, missing constraints, dangerous defaults, and data exfiltration patterns.
Instructions
Statically audit a single agent tool definition for schema-level risks.
Accepts OpenAI function-calling, Anthropic tool-use, MCP tool, or a bare JSON Schema. Reports:
over-broad params (bare-string paths/commands/URLs)
missing constraints (enum/pattern/min/max/maxLength/maxItems)
dangerous defaults (suspicious paths, disabled safeguards)
exfil-shape (URL-destination + data-payload in the same tool)
ambiguous descriptions vs risky tool names
Args: schema: A tool definition as a dict.
Returns: Structured AuditReport. Pure function, no I/O, no chaining.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"schema": "<schema>"
},
"name": "agent_tool_risk_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | Yes |