analyze_tool_call
Analyze a proposed AI-agent tool call before execution and return a deterministic, policy-aware decision (allow, notice, confirm or block) covering destructive actions, sensitive-data exposure, external transmission, privilege changes and irreversible operations, under the applicable policy — permissive, balanced or strict, balanced by default. Filesystem paths outside a known workspace_root are treated as higher risk than paths inside it.
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": {
"tool_name": "<tool_name>",
"arguments": "<arguments>"
},
"name": "analyze_tool_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | No | Optional policy used to compute the decision: permissive, balanced or strict (default: balanced). | |
| context | No | Optional declarative context about the proposed operation. | |
| arguments | Yes | The proposed tool arguments. They are analyzed as data and never executed. | |
| tool_name | Yes | The exact name of the proposed tool. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| risk | Yes | ||
| valid | Yes | ||
| checks | Yes | ||
| signals | Yes | ||
| decision | Yes | ||
| tool_name | Yes | ||
| risk_score | Yes | ||
| policy_applied | Yes | ||
| schema_version | Yes | ||
| ruleset_version | Yes | ||
| context_completeness | Yes |