Skip to main content
Glama

chain_fee_history

Read-only

EVM gas fee history and EIP-1559 fee suggestions — Base-fee trend, gas utilization and priority-fee percentiles (10/50/90) over the last N blocks (1-100) via eth_feeHistory, with congestion level and suggested slow/standard/fast maxFeePerGas + maxPriorityFeePerGas in gwei. Chains: ethereum, base, arbitrum, optimism, polygon. Params: chain, blocks (default 20). Price: $0.002 USDC (Base, via x402).

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": {
      "chain": "<chain>",
      "blocks": "<blocks>"
    },
    "name": "chain_fee_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesbase
blocksYes20

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered; the description adds value beyond them by disclosing the paid-access model ($0.002 USDC on Base via x402), the exact upstream RPC method, the 1-100 block bound, and the gwei units of the returned suggestions. Remaining gaps are minor: no mention of failure behavior for an unsupported chain or of latency/caching, and it does not clarify how the congestion level is derived.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence whose clauses are ordered most-to-least important: what is returned, over what window, via which method, on which chains, with which params, at what price. No filler, no restatement of the title, and the trailing 'Params: chain, blocks (default 20)' plus price tag are scannable at a glance.

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 carries the burden of describing returns and does so concretely: fee percentiles, utilization, congestion level, and three named fee tiers in gwei. Access cost, chain coverage, and the block-window limit are all stated. It stops short of describing response structure or ordering (e.g. whether history is an array per block), which for a 2-param tool is a small remaining gap.

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 nominally 100%, but the schema's own descriptions are degenerate — chain is documented as 'base' and blocks as '20', which read as example values rather than semantics. The description compensates by enumerating all five valid chains and stating the blocks range (1-100) plus the default of 20, which is meaning the schema does not supply. One residual inconsistency: blocks is marked required in the schema while the description presents it as defaulted.

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 names a concrete resource and verb chain ('EVM gas fee history and EIP-1559 fee suggestions') and enumerates the exact payload: base-fee trend, gas utilization, 10/50/90 priority-fee percentiles over the last N blocks, congestion level, and slow/standard/fast suggestions. It is specific enough to separate this from a generic gas estimate, though it never names chain_estimate_gas or chain_gas_compare to draw the boundary explicitly.

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 context is implied by the supported chain list, the 1-100 block window, and the underlying eth_feeHistory method, so an agent can infer this is a read-only historical/suggested-fee lookup. However, there is no explicit when-to-use versus when-not, and no statement about which sibling to prefer for a simple current-gas estimate or a multi-chain gas comparison.

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