Static-scan MCP tool definitions for injection and exfil
static_scan_toolsScans advertised MCP tool fields for injection, credential, and hidden-Unicode risks, returning findings, a 0–1 gate score, and ruleset digest.
Instructions
Run only the static-scan gate (signatures with context guards, text folded first) over every advertised tool field: name, description, input schema, title, output schema, annotations and extension metadata. Returns findings, a 0..1 gate score, and the published ruleset digest. Use list_scan_rules for the current rule table and identity.
When to use: you have a tools/list dump and want injection / credential / hidden-Unicode hits without origin, pinning, or the threat feed. Cheaper and narrower than vet_mcp_server.
When NOT to use: you need the full host decision (vet_mcp_server); you want operator glob classification (classify_sensitive_tools); you want the published rule table itself (list_scan_rules).
Behaviour: local regex+guard evaluation, no network, no mutation. Advisory-tier hits are reported with advisory=true and do not reduce the score. Does not launch servers or send tool output to a model.
Returns structured JSON matching outputSchema. Example: static_scan_tools({ tools: [{ name: "add", description: "Add two integers.", inputSchema: { type: "object" } }] }).
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": {
"tools": "<tools>"
},
"name": "static_scan_tools"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tools | Yes | tools/list items to scan (1..256). Same shape as vet_mcp_server.tools. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| score | Yes | static-scan gate contribution: 1 minus the penalty for the worst non-advisory severity. Advisory hits do not change this number. | |
| ruleset | Yes | ||
| findings | Yes | Hits from the 36-rule table, including advisory-only codes. |