Skip to main content
Glama

chain_l1_data_fee

$0.005 via x402: the L1 data-availability fee an OP-stack transaction pays ON TOP of L2 execution gas — usually the larger half of the bill, and the half ordinary gas estimators leave out. Answered by the chain's own GasPriceOracle.getL1Fee rather than a reimplemented formula, so it stays correct across Ecotone, Fjord and later forks. Pass data=0x... to price your actual transaction exactly. Base and Optimism only.

Input Schema

NameRequiredDescriptionDefault
dataNo0x calldata of your actual transaction — priced exactly
bytesNoTransaction size in bytes, 1-200000 (default 1200)
chainNobase|optimism (OP-stack only)
x_paymentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden well: it discloses the pricing model ($0.005 via x402), the authoritative data source (the chain's own GasPriceOracle.getL1Fee), and fork-robustness (Ecotone, Fjord and later). It stops short of rate limits or failure behavior, and the payment requirement is stated as cost rather than an auth precondition.

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?

Four dense sentences with essentially no filler; each conveys distinct information (cost, definition, data source, scope). It front-loads price rather than purpose, which slightly delays the core 'what it does' signal, but otherwise the structure is tight.

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 4-parameter, no-output-schema, no-annotation tool, the description supplies the essential context: what is computed, from where, on which chains, and at what cost. The main gap is the absence of any statement about the returned value's shape or units, though with no output schema that is a minor omission.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 75% and the description adds real meaning: it explains that passing data prices the actual transaction exactly, implying it overrides the bytes-based default (1200) documented in the schema, and it reinforces the chain constraint. It adds little for the x_payment parameter, which remains opaque.

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?

Names a specific resource (the L1 data-availability fee for OP-stack transactions) and a precise scope (the portion ON TOP of L2 execution gas). It explicitly carves itself out from sibling estimators by noting ordinary gas estimators omit this half, so an agent can distinguish it from chain_estimate_gas and chain_gas_price without opening the schema.

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?

Gives a clear actionable condition ('Pass data=0x... to price your actual transaction exactly') and a hard constraint ('Base and Optimism only'). It implies complementarity with ordinary gas estimators but never states the explicit when/when-not versus siblings like chain_estimate_gas, leaving that to inference.

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.