Skip to main content
Glama

EVM transaction

evm_transaction
Read-onlyIdempotent

Use when you need a transaction by hash on Base, Ethereum, Arbitrum, Polygon or Optimism: from, to, value, nonce, gas and fee fields, block, confirmations, method id and input (first 1 KB). Returns the paid x402 request for your input (GET /evm/tx, $0.002 per call; schema linked). Call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge. Raw transaction fields (from, to, value, input); to know whether it succeeded (status, gas used, logs) use evm_receipt. First call each day returns the data itself, free; later calls return the paid request.

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

Input Schema

NameRequiredDescriptionDefault
hashYesTransaction hash (0x + 64 hex); looked up on the chosen chain only; not found there: refused before any charge
chainNoChain to look the transaction up on; default basebase

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / chain / description
      Previous value: -"Chain; default base"New value: +"Chain to look the transaction up on; default base"
    • changedInput schema / properties / hash / description
      Previous value: -"Transaction hash (0x + 64 hex)"New value: +"Transaction hash (0x + 64 hex); looked up on the chosen chain only; not found there: refused before any charge"
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial context on top: x402 pay-per-call at $0.002, no charge on bad input, input truncated to the first 1 KB, and the first call each day returning data free while later calls return a paid request. That is exactly the operational behavior an agent cannot infer 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?

Purpose is front-loaded and every sentence carries information, but the passage is dense and interleaves payment logistics with data semantics, making it slightly harder to scan than a cleanly split purpose/usage/pricing structure.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, yet the description enumerates the returned fields and the payment/response mode, and it explains what is refused and when charging occurs. For a two-parameter read tool this leaves nothing an agent needs unresolved.

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 defines the hash pattern and the chain enum with default. The description reinforces chain scoping ("looked up on the chosen chain only") and the 1 KB input cap, but adds no format or syntax detail beyond what the schema supplies, so the baseline 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 ("a transaction by hash") plus the exact chains supported and the fields returned (from, to, value, nonce, gas/fee, block, confirmations, method id, input). It explicitly separates itself from the sibling evm_receipt, so an agent can choose 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?

Gives an explicit when-to-use ("Use when you need a transaction by hash on ...") and an explicit when-to-use-something-else ("to know whether it succeeded (status, gas used, logs) use evm_receipt"). It also covers the paid-vs-free invocation path, which is the main routing decision for this tool.

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