Skip to main content
Glama

Block fees

get_block_fees
Read-onlyIdempotent

Get average total fees per block for a time period.

Mempool.space docs

REST operation: GET /api/v1/mining/blocks/fees/{time_period}.

Input Schema

NameRequiredDescriptionDefault
time_periodYesLookback period: `24h`, `3d`, `1w`, `1m`, `3m`, `6m`, `1y`, `2y`, `3y`, `4y` or `all`.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / $defs / TimePeriod / description
      Previous value: -"Time period for mining statistics.\n\nUsed to specify the lookback window for pool statistics, hashrate calculations,\nand other time-based mining series."New value: +"Lookback window for mining statistics."
    • changedInput schema / $defs / TimePeriod / enum
      Previous value: -[
      -  "24h",
      -  "3d",
      -  "1w",
      -  "1m",
      -  "3m",
      -  "6m",
      -  "1y",
      -  "2y",
      -  "3y",
      -  "all"
      -]New value: +[
      +  "24h",
      +  "3d",
      +  "1w",
      +  "1m",
      +  "3m",
      +  "6m",
      +  "1y",
      +  "2y",
      +  "3y",
      +  "4y",
      +  "all"
      +]
    • addedInput schema / properties / time_period / description
      Added value: +"Lookback period: `24h`, `3d`, `1w`, `1m`, `3m`, `6m`, `1y`, `2y`, `3y`, `4y` or `all`."
    • addedInput schema / properties / time_period / examples
      Added value: +[
      +  "24h"
      +]
    • removedOutput schema / $defs / Dollars / format
      Removed value: -"double"
    • removedOutput schema / $defs / Height / format
      Removed value: -"uint32"
    • removedOutput schema / $defs / Sats / format
      Removed value: -"uint64"
    • removedOutput schema / $defs / Timestamp / format
      Removed value: -"uint32"
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds the underlying REST path and docs link, which is useful for verification, but says nothing about units (sat/vB vs total BTC), aggregation method, or data granularity beyond the annotations.

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?

One front-loaded sentence captures the purpose, followed by a docs link and REST operation line. The REST path is arguably redundant with the docs link, but overall there is very little waste.

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 an output schema present and annotations covering safety and idempotency, the description need not explain return values. The metric definition ('average total fees per block') plus lookback period is sufficient to call it correctly; only the unit ambiguity slightly weakens it.

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 single time_period parameter is fully enumerated with examples and a description in the schema. The description only restates the existence of a time period, adding no syntax or behavioral detail beyond the structured data, so baseline 3 applies.

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?

States a specific verb and resource with a quantified metric: 'average total fees per block for a time period.' This is distinguishable in wording from the fee-rate siblings (get_block_fee_rates, get_precise_fees), though the description never explicitly contrasts itself with them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No guidance on when to pick this over get_block_fee_rates, get_block_fee_rates_precise, get_precise_fees, or get_block_rewards. The agent is left to infer from names alone which fee/reward endpoint matches its need.

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.