Skip to main content
Glama

preflight_tx_firewall

Read-onlyIdempotent

Stage 1 Free ($0.00) pre-sign security firewall evaluating EVM transaction risks, calldata decoding, unlimited token approvals, Permit2 signatures, EIP-712 typed data phishing, Indirect Prompt Injections in untrusted calldata/descriptions, and simulated state changes via eth_call. Returns JSON with verdict (ALLOW, BLOCK, MANUAL_REVIEW), risk_score (0.0-10.0), reasons, and simulation details.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "preflight_tx_firewall"
  }
}

Input Schema

NameRequiredDescriptionDefault
calldataNoHex transaction calldata0x
chain_idNoEVM Chain ID (default: 8453 for Base Mainnet)
value_weiNoTransaction value in Wei
to_addressNoTarget contract or recipient EVM address
from_addressNoOptional sender EVM address
run_simulationNoWhether to run eth_call simulation on chain
target_addressNoAlias for to_address
untrusted_textNoOptional untrusted text or proposal description to scan for prompt injection
eip712_typed_dataNoOptional EIP-712 typed data dictionary to inspect before signing

Output Schema

NameRequiredDescriptionDefault
toolYes
stageYes
reasonsYes
summaryNo
verdictYes
cost_usdNo
risk_scoreYes
llm_invokedNo
approval_risksNo
flagged_issuesYes
eip712_findingsNo
prompt_injection_detectedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds meaningful context beyond that: it discloses the eth_call simulation step, the verdict categories (ALLOW, BLOCK, MANUAL_REVIEW), and the risk_score range, which tells the agent what to expect from a call. It does not mention latency, rate limits, or what happens on MANUAL_REVIEW, so it falls short of a 5.

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

Conciseness4/5

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

A single dense sentence that front-loads the tool's role and then lists its checks, with no filler. The trailing return-value clause partially duplicates the output schema, and the 'Stage 1 Free ($0.00)' marketing tag is the least essential element, but overall it is compact and readable.

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 an output schema present and annotations covering safety, the description needn't explain return values, yet it does so briefly and consistently. It covers the scan surface and the simulation behavior well; the only gap is operational detail such as cost/latency and the semantics of MANUAL_REVIEW, which is minor for a read-only preflight check.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter is already documented in the input schema. The description reinforces that calldata, EIP-712 typed data, and untrusted text are scanned, but adds no syntax, format, or interaction details (e.g., how target_address aliases to_address) beyond what the schema provides. Baseline 3 is appropriate.

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?

The description names a specific verb and resource ('pre-sign security firewall evaluating EVM transaction risks') and enumerates the concrete checks performed: calldata decoding, unlimited token approvals, Permit2, EIP-712 phishing, indirect prompt injection, and eth_call simulation. This makes it clearly distinguishable from siblings like check_token_honeypot or deep_semantic_audit without opening a schema.

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

Usage Guidelines3/5

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

The phrase 'pre-sign' implies the trigger condition (before signing or sending a transaction), but there is no explicit when-to-use/when-not-to-use guidance and no named alternative for cases this tool does not cover. The 'Stage 1 Free ($0.00)' tag hints at tiering without explaining what a later stage would add.

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.