Skip to main content
Glama

preview_tx_policy

Read-onlyIdempotent

FREE ($0.00, no wallet): Decode EVM calldata selector and flag unlimited approvals (no OFAC lookup). Returns action, verdict, and upgrade_hint to screen_tx_policy ($0.005 Base USDC with live OFAC).

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": "preview_tx_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoOptional target contract address (0x...).
dataNoHex-encoded EVM calldata starting with 0x.

Output Schema

NameRequiredDescriptionDefault
okNoWhether the screening check completed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / data / description
      Added value: +"Hex-encoded EVM calldata starting with 0x."
    • addedInput schema / properties / to / description
      Added value: +"Optional target contract address (0x...)."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "ok": {
      +      "description": "Whether the screening check completed.",
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), and the description adds cost ($0.00), no-wallet auth, the deliberate absence of OFAC data, and the return fields (action, verdict, upgrade_hint). It stops short of failure behavior for malformed calldata, but adds real context beyond annotations.

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?

Two sentences, front-loaded with the FREE/$0.00/no-wallet qualifier that matters most for tool selection. No 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?

For a two-parameter read-only tool with an output schema and annotations present, the description covers cost, scope limits, routing to the paid alternative, and return keys. Only edge-case behavior (invalid calldata, unsupported selectors) is left unstated.

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 both `to` and `data` are already documented. The description adds no format or usage detail beyond that, so the baseline of 3 applies.

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?

States a specific verb and resource: decode EVM calldata selector and flag unlimited approvals. It also names the sibling it is not (screen_tx_policy with live OFAC), so an agent can distinguish the two without opening either schema.

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

Usage Guidelines5/5

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

Explicitly conditions usage: free, no wallet, no OFAC lookup, and points to screen_tx_policy ($0.005 Base USDC) when live OFAC screening is needed. The alternative and the trigger for switching are both stated.

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