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 exact paid x402 request for your input (GET /evm/tx, $0.002 per call), with the response schema and an example; call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge. Returns the transaction itself; to know whether it succeeded (status, gas used, logs) use evm_receipt. With a P0 access key (header Authorization: Bearer p0k_…, buy one at https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/keys/buy?usd=5) this tool makes the paid call itself and returns the data, deducting the listed price.

Input Schema

NameRequiredDescriptionDefault
hashYesTransaction hash (0x + 64 hex)
chainNoChain; default basebase

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 goes well beyond them: it discloses the pay-per-call cost ($0.002), that invalid input is rejected before charging, that input is truncated at 1 KB, and that supplying a P0 bearer key makes the tool perform the paid call itself with a deduction. Those are non-obvious cost, validation and auth behaviors an agent must know.

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 'Use when' trigger and ending with the sibling exclusion, so the key selection cues are at the edges. It is a dense single block covering two invocation modes and payment plumbing, which is a lot of prose for two parameters, though most sentences carry real information.

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?

No output schema exists, but the description enumerates the returned fields, notes the response includes a schema and example, and explains the dual direct/paid-URL invocation paths plus the error-before-charge guarantee. An agent has everything needed to call it and interpret the result.

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% — the hash pattern and the five-value chain enum with default 'base' are fully documented in the schema. The description restates the chain list but adds no format or semantics beyond it; the 1 KB note concerns returned input data, not a parameter. 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 concrete verb and resource (fetch a transaction by hash) and enumerates exactly what comes back: from, to, value, nonce, gas/fee fields, block, confirmations, method id and truncated input. It explicitly names the sibling evm_receipt as the tool for status/logs, so it is distinguishable from related tools 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 Guidelines5/5

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

"Use when you need a transaction by hash on Base, Ethereum, Arbitrum, Polygon or Optimism" gives the triggering condition, and the closing sentence routes the agent to evm_receipt when success status, gas used or logs are wanted. Both the use case and the alternative are explicit.

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