Skip to main content
Glama

Agent Data Tools: Chain data

op_receipt

Receipt of a Optimism transaction: success or reverted, gas used, effective gas price, fee paid in ETH, number of event logs and any contract created. Use to confirm a payment or call went through. Costs $0.001 in USDC on Base per successful call, paid with x402.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hashYes0x transaction hash

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations cover the generic profile (openWorldHint=true, idempotentHint=false, destructiveHint=false, readOnlyHint=false), and the description adds genuinely useful behavior beyond them: the $0.001 USDC fee on Base, charged only per successful call, via x402. That cost/payment model materially affects whether an agent should call this tool. It does not say what happens for pending or nonexistent hashes, so it falls short of full transparency.

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?

Two sentences, front-loaded with what the receipt contains, then use case, then cost — every clause carries information. Minor grammar awkwardness ("a Optimism") and a dense enumeration in the first sentence keep it just below ideal.

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?

With no output schema, the description correctly takes on the burden of describing return values (status, gas, fee, logs, contract creation), and it covers usage and payment. It omits edge-case behavior such as unrecognized or pending hashes and whether the tool is Optimism-mainnet specific, leaving a small 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?

There is a single parameter with 100% schema description coverage ("0x transaction hash"), so the schema already carries the semantics. The description adds no format, validation, or chain-selection detail about the hash, which matches the baseline 3 when the schema does the heavy lifting.

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 gives a specific resource (an Optimism transaction receipt) and enumerates its contents — status success/reverted, gas used, effective gas price, fee in ETH, log count, contract created — which functionally separates it from siblings like op_tx or op_logs. It never names a sibling explicitly, so the differentiation is implicit rather than stated.

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?

"Use to confirm a payment or call went through" gives a concrete when-to-use context, and the pricing sentence scopes it to paid calls. It stops short of naming alternatives (e.g., use op_tx for input data or op_logs for decoded events) or stating exclusions.

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