Skip to main content
Glama

Qodnai x402 Security Intelligence

decode_transaction

Decode an EVM transaction hash: status, sender, contract, value, logs and receipt facts. Price $0.002. Paid calls are relayed to the x402 endpoint; never send private keys to this server.

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": {
      "hash": "<hash>"
    },
    "name": "decode_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
hashYes0x transaction hash
x_paymentNoOptional legacy X-PAYMENT header value. Never send a private key.
payment_signatureNoOptional x402 v2 PAYMENT-SIGNATURE header value obtained after the first call returns the live 402 challenge. Never send a private key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full load and does well: it discloses the $0.002 price, that paid calls are relayed to an x402 endpoint, and a security constraint (never send private keys). It still omits failure behavior, rate limits, and latency of the payment round-trip.

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?

Three tight sentences, front-loaded with the verb and outputs, then cost, then payment/safety mechanics. Nothing is redundant, though the output list reads as a bare enumeration rather than being shaped for scanning.

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?

There is no output schema, so the description must describe return values, and it does list the decoded fields an agent can expect. The payment flow is explained well enough to act on; only error/edge-case behavior is left unaddressed.

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 coverage is 100%, so the schema already documents hash, x_payment, and payment_signature in detail, including the 402-challenge flow. The description adds no format or semantic detail beyond that, so the baseline 3 applies.

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

Purpose4/5

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

The description leads with a specific verb and resource ('Decode an EVM transaction hash') and enumerates the returned facts (status, sender, contract, value, logs, receipt facts), so an agent knows exactly what it gets. It stops short of naming a sibling such as verify_receipt or token_intel to sharpen the boundary, so it is clear but not differentiated.

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?

Usage is only implied: you call it when you have a 0x transaction hash and want decoded data. The description does add real context about the paid x402 relay flow, but it never states when to prefer verify_receipt or another sibling, nor any preconditions beyond 'have a hash'.

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.