check_tool_call
Checks a proposed tool call against an ASC policy contract and returns a PASS, BLOCK, or REQUIRE_APPROVAL verdict with reasons. Fails closed on errors so unsafe calls are blocked before execution.
Instructions
Check a proposed tool call against an ASC policy contract.
Returns PASS/BLOCK/REQUIRE_APPROVAL verdict with reasons. Fail-closed: any error, missing policy, or unknown input yields BLOCK. Use this tool before executing any tool call to enforce a security contract.
Args: policy_path: Path to the ASC policy YAML file trace_data: Tool call trace mapping with agent_id, trace_id, calls, optional tool_catalog scenario_id: Identifier for this check (for reporting)
Returns: Mapping with verdict, reason, scenario_id, blocked_call_id, and details
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": {
"policy_path": "<policy_path>",
"trace_data": "<trace_data>"
},
"name": "check_tool_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trace_data | Yes | ||
| policy_path | Yes | ||
| scenario_id | No | mcp-check |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||