Skip to main content
Glama

Block fee rates

get_block_fee_rates
Read-onlyIdempotent

Get block fee rate percentiles (min, 10th, 25th, median, 75th, 90th, max) for a time period, each a whole sat/vB (/precise for 3 decimals).

Mempool.space docs

REST operation: GET /api/v1/mining/blocks/fee-rates/{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. Changed28 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 / BlockFeeRatesEntry / properties / avgFee_0 / allOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/FeeRate"
      -  }
      -]
    • addedOutput schema / $defs / BlockFeeRatesEntry / properties / avgFee_0 / minimum
      Added value: +0
    • addedOutput schema / $defs / BlockFeeRatesEntry / properties / avgFee_0 / type
      Added value: +"integer"
    • removedOutput schema / $defs / BlockFeeRatesEntry / properties / avgFee_10 / allOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/FeeRate"
      -  }
      -]
    • addedOutput schema / $defs / BlockFeeRatesEntry / properties / avgFee_10 / minimum
      Added value: +0
    • addedOutput schema / $defs / BlockFeeRatesEntry / properties / avgFee_10 / type
      Added value: +"integer"
    • removedOutput schema / $defs / BlockFeeRatesEntry / properties / avgFee_100 / allOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/FeeRate"
      -  }
      -]
    • addedOutput schema / $defs / BlockFeeRatesEntry / properties / avgFee_100 / minimum
      Added value: +0
    • addedOutput schema / $defs / BlockFeeRatesEntry / properties / avgFee_100 / type
      Added value: +"integer"
    • removedOutput schema / $defs / BlockFeeRatesEntry / properties / avgFee_25 / allOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/FeeRate"
      -  }
      -]
    • addedOutput schema / $defs / BlockFeeRatesEntry / properties / avgFee_25 / minimum
      Added value: +0
    • addedOutput schema / $defs / BlockFeeRatesEntry / properties / avgFee_25 / type
      Added value: +"integer"
    • removedOutput schema / $defs / BlockFeeRatesEntry / properties / avgFee_50 / allOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/FeeRate"
      -  }
      -]
    • addedOutput schema / $defs / BlockFeeRatesEntry / properties / avgFee_50 / minimum
      Added value: +0
    • addedOutput schema / $defs / BlockFeeRatesEntry / properties / avgFee_50 / type
      Added value: +"integer"
    • removedOutput schema / $defs / BlockFeeRatesEntry / properties / avgFee_75 / allOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/FeeRate"
      -  }
      -]
    • addedOutput schema / $defs / BlockFeeRatesEntry / properties / avgFee_75 / minimum
      Added value: +0
    • addedOutput schema / $defs / BlockFeeRatesEntry / properties / avgFee_75 / type
      Added value: +"integer"
    • removedOutput schema / $defs / BlockFeeRatesEntry / properties / avgFee_90 / allOf
      Removed value: -[
      -  {
      -    "$ref": "#/$defs/FeeRate"
      -  }
      -]
    • addedOutput schema / $defs / BlockFeeRatesEntry / properties / avgFee_90 / minimum
      Added value: +0
    • addedOutput schema / $defs / BlockFeeRatesEntry / properties / avgFee_90 / type
      Added value: +"integer"
    • removedOutput schema / $defs / FeeRate
      Removed value: -{
      -  "format": "double",
      -  "type": "number"
      -}
    • removedOutput schema / $defs / Height / format
      Removed value: -"uint32"
    • removedOutput schema / $defs / Timestamp / format
      Removed value: -"uint32"
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds real context about output shape (the percentile set and rounding) that goes beyond the annotations, though it says nothing about rate limits or auth.

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?

Front-loads the operation and return set in one tight sentence, then a docs link and REST path. No filler; every element is 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?

With a full output schema and rich annotations, the description needs only to state what is fetched and how it differs from the precise variant, which it does. Minor omission of any auth/rate-limit context keeps it from a 5.

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% and the enum with all valid time periods is fully documented in the schema, so the schema does the heavy lifting. The description adds no meaning to `time_period` beyond what is already structured, so baseline 3 applies.

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?

States a specific verb and resource ('Get block fee rate percentiles') and enumerates exactly what is returned (min through max). It also distinguishes itself from the sibling get_block_fee_rates_precise by noting the whole sat/vB versus `/precise` 3-decimal variant.

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?

The parenthetical '(`/precise` for 3 decimals)' implicitly routes the agent to get_block_fee_rates_precise when finer precision is needed. There is no explicit when-not or prerequisite guidance, but the alternative is clearly signposted.

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.