Skip to main content
Glama

Crypto Bot Audit + Market Data (x402 paid)

Base-fee and priority-fee trend

chain_fee_history
Read-onlyIdempotent

eth_feeHistory over a bounded window: base fee at every block plus the 25/50/75 priority-fee percentiles. Whether gas is RISING is not answerable from one instantaneous quote, which is what /chain/fee-data gives. Costs $0.001 USDC per call. Chains: base, ethereum, arbitrum, bsc, polygon, optimism, avalanche. Byte-identical to GET /chain/fee-history?chain=base&blocks=20.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYeschain key: base, ethereum, arbitrum, bsc, polygon, optimism, avalanche [required]
blocksNowindow size in blocks (bounded) (default 20)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
tsNo
headNo
noteNo
chainNo
labelNo
staleNo
caveatNo
reasonNo
sourceNo
chainIdNo
trendPctNo
chainLabelNo
baseFeeGweiNo
oldestBlockNo
gasUsedRatioNo
blocksCoveredNo
priorityFeeGweiNo
perBlockBaseFeeGweiNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "baseFeeGwei": {
      +      "additionalProperties": {},
      +      "type": "object"
      +    },
      +    "blocksCovered": {
      +      "type": "integer"
      +    },
      +    "caveat": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "chain": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "chainId": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "chainLabel": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "gasUsedRatio": {
      +      "items": {},
      +      "type": "array"
      +    },
      +    "head": {
      +      "type": "integer"
      +    },
      +    "label": {
      +      "type": "string"
      +    },
      +    "note": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "oldestBlock": {
      +      "type": "integer"
      +    },
      +    "perBlockBaseFeeGwei": {
      +      "items": {},
      +      "type": "array"
      +    },
      +    "priorityFeeGwei": {
      +      "additionalProperties": {},
      +      "type": "object"
      +    },
      +    "reason": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "source": {
      +      "type": "string"
      +    },
      +    "stale": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "trendPct": {
      +      "type": "integer"
      +    },
      +    "ts": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and non-destructive. The description adds the cost of $0.001 USDC per call and notes byte-identical equivalence to a specific REST endpoint, which are behavioral traits beyond the annotations. It does not cover rate limits or pagination, but for a read-only tool this is adequate.

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?

The description is moderately long but every sentence adds value: functionality, limitation, cost, supported chains, and REST equivalence. It is front-loaded with the primary purpose, and the structure is logical. It could be trimmed slightly but remains efficient and informative.

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?

Given the existence of an output schema and annotations covering safety, the description provides sufficient context: purpose, when to use vs. alternative, cost, chain support, and a concrete REST equivalent. No critical information is missing for an agent to correctly invoke this tool.

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% for both chain and blocks parameters, each with clear descriptions. The description does not add any parameter-specific details beyond what the schema already provides, such as syntax or format. With full schema coverage, the baseline of 3 is appropriate.

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?

The description clearly states it retrieves eth_feeHistory over a bounded window, detailing the exact data (base fee plus 25/50/75 priority-fee percentiles). It also differentiates from the sibling chain_fee_data by explicitly stating that a single instantaneous quote cannot answer whether gas is rising, making its purpose unambiguous and distinct.

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?

It explicitly contrasts with /chain/fee-data (instantaneous quote) and explains that this tool is needed to assess fee trends over multiple blocks. It also lists supported chains and a REST equivalent, but it does not name other potential alternatives like chain_gas_estimate or gas_prices, so the guidance is clear but not exhaustive.

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