Skip to main content
Glama

Nightshift Labs: link, token & signature pre-checks

evm_decode_calldata

Read-only

Decode EVM transaction calldata before signing: finds the function signature (signature DB, verified by re-encoding to reject selector collisions), decodes all arguments, expands multicall batches, and warns about unlimited token approvals, approve-all-NFTs, permits, ownership changes and upgrades. Works for any EVM chain. Price: $0.003 USDC on Base per call (x402).

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": {
      "data": "<data>"
    },
    "name": "evm_decode_calldata"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYeshex calldata (selector + ABI-encoded args), max 16 KB

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only cover readOnlyHint and openWorldHint; the description adds substantial behavior beyond them: signature resolution via a signature DB, collision rejection by re-encoding, multicall batch expansion, the specific risk classes warned about (unlimited approvals, approve-all-NFTs, permits, ownership changes, upgrades), chain coverage, and per-call pricing. Disclosing the $0.003 USDC x402 payment requirement is exactly the kind of operational context an agent cannot get from structured fields.

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?

Front-loaded with the verb and resource, then layered with mechanism, warnings, and cost in a single dense sentence with no filler. The packing of many clauses makes it slightly heavy to scan, but every clause carries information an agent needs.

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 decoder with no output schema, the description covers what it returns at a useful level (decoded arguments, expanded multicalls, risk warnings) plus the payment prerequisite. A brief note on failure behavior for unknown selectors would close the remaining gap.

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?

With a single parameter at 100% schema description coverage (hex calldata, max 16 KB), the schema already carries the parameter burden, so the baseline of 3 applies. The description's 'works for any EVM chain' implicitly clarifies that no chain-id parameter is needed, a small but real addition beyond the schema.

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 transaction calldata') and enumerates the concrete actions performed: signature lookup, re-encode verification, argument decoding, multicall expansion, and risk warnings. This is distinguishable from the nearest sibling, evm_typed_data_check, which concerns EIP-712 typed data rather than raw calldata.

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 phrase 'before signing' gives a clear usage context and timing for the tool, telling the agent when to invoke it. It does not, however, name alternatives (e.g. evm_typed_data_check for typed data) or state when-not to use it, so it falls short of the explicit routing seen in top-tier definitions.

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.