Skip to main content
Glama

ThreatCrush: Check an agent tool call or result

threatcrush_firewall_check
Read-onlyIdempotent

[ThreatCrush] Agent firewall: inspect one AI agent tool call (direction "call", payload = its arguments) or tool result (direction "result", payload = what the tool returned) against built-in checks (secrets, PII with Luhn/IBAN checks, prompt-injection markers, destructive commands, mass email) and your org's policies (plain English, regex, overrides). Returns verdict allow|flag|redact|block, reasons, rule_ids, and the redacted payload when the verdict is redact. Logged; a block raises an incident and fires firewall.blocked webhooks.

Served by ThreatCrush (https://threatcrush.com/docs).

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": {
      "direction": "<direction>",
      "tool": "<tool>",
      "payload": "<payload>"
    },
    "name": "threatcrush_firewall_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
toolYesTool name, e.g. github.create_issue
org_idNo
contextNo
payloadYesTool arguments or tool result (any JSON)
directionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Well beyond the annotations, it discloses real side effects: every check is logged, a block raises an incident, and a block fires firewall.blocked webhooks — meaningful given readOnlyHint=true could otherwise mislead an agent into thinking nothing persists. It also states the verdict vocabulary and that a redacted payload is returned on 'redact'. The only gap is that no auth requirement (org_id / API key scope) or latency/failure behavior is mentioned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action, then checks, then return shape and side effects — an agent can stop reading after the first clause and still act correctly. The parentheticals (Luhn/IBAN, rule types) are dense but each carries decision-relevant information; nothing is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the return contract itself and does so adequately (verdict allow|flag|redact|block, reasons, rule_ids, redacted payload). For a 5-parameter tool with a nested context object and 40% schema coverage, the residual gap is the undocumented org_id/context fields and what happens on service failure.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 40%, and the description compensates on the two most consequential parameters by defining direction as call=arguments vs result=tool output and payload as 'Tool arguments or tool result (any JSON)'. It leaves org_id and the nested context fields (agent, owner, source, session) entirely unexplained, which is where the 40% coverage gap actually bites.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Uses a specific verb ('inspect') on a precisely bounded resource ('one AI agent tool call ... or tool result'), and explicitly splits the two modes via the direction semantics: payload = arguments for "call", payload = return value for "result". The list of built-in checks and the four-way verdict make it unmistakably distinct from siblings like threatcrush_firewall_events or threatcrush_firewall_policies_list.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description makes the use context clear: you are evaluating a single call or a single result against org policy, which naturally routes an agent away from the event-log and policy-list siblings. What's missing is any explicit when-not guidance or a named alternative (e.g., how to inspect a batch, or where to go to author the policies this tool enforces).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources