Skip to main content
Glama

ForgeSuite Web3, FinOps, Brand & Media MCP

Calldata Lens EVM ABI & Unlimited Approval Decoder

calldata_decode
Read-onlyIdempotent

Decode Ethereum / Base / BSC / Arbitrum 0x hex calldata (ERC-20, Permit2, EIP-2612, ERC-721/1155, Uniswap V2/V3/Universal Router, Safe multisig, AccessControl) and flag unlimited MaxUint256 / MaxUint160 approval risks.

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": {
      "calldata": "<calldata>"
    },
    "name": "calldata_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
calldataYesHex-encoded EVM transaction calldata (0x...).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description still adds real value by disclosing a second output dimension beyond decoding: MaxUint256 / MaxUint160 unlimited-approval risk flags. It stops short of describing the returned structure or failure behavior for malformed calldata.

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?

A single dense sentence with the action front-loaded, the scope (chains and protocol families) in the middle, and the risk-flagging payoff at the end. No filler, no repetition of the title or annotations.

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 one-parameter, read-only, idempotent decoder with no output schema, this covers what the tool accepts and the two things it returns (decoded call and approval risk flags). The only gap is that the shape of the decoded result and behavior on unrecognized selectors are not described.

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 coverage is 100% for the single 'calldata' parameter, so the baseline would be 3. The description earns an extra point by telling the agent which calldata dialects are actually understood (ERC-20, Permit2, EIP-2612, Uniswap routers, Safe, AccessControl), which is meaningful input guidance the schema's terse 'Hex-encoded EVM transaction calldata (0x...)' does not convey.

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 opens with a specific verb ('Decode') and a concrete resource ('0x hex calldata'), then enumerates the supported chains and protocol families (ERC-20, Permit2, EIP-2612, ERC-721/1155, Uniswap, Safe, AccessControl) and the secondary behavior of flagging unlimited approvals. That is far more specific than any sibling like evm_token_risk_scan, so an agent can distinguish it 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 use case is strongly implied — you have raw calldata and want it decoded and screened for unlimited approvals — but there is no explicit 'use this when' statement, no prerequisites, and no named alternative (e.g., when to prefer a token risk scan over raw calldata decoding). Guidance is inferable rather than 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.