Skip to main content
Glama

get_btc_block_stats

Read-onlyIdempotent

Retrieve Bitcoin block fee statistics including fee percentiles (10th to 90th), total fees, block size, and transaction count to identify fee-market anomalies.

Instructions

READ-ONLY — bitcoind getblockstats(hashOrHeight) output: fee distribution (min / max / avg / 10/25/50/75/90 percentile feerates in sat/vB), tx count, block size, total fees. RPC-only — Esplora exposes block size + tx count but NOT fee percentiles. Used to spot fee-market anomalies and to baseline mempool_anomaly. Requires BITCOIN_RPC_URL configured. Issue #248 / #233 v2.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hashOrHeightYesEither a 64-hex block hash OR a block height. The RPC method `getblockstats` accepts both forms — pick whichever the agent already has on hand.
Behavior4/5

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

Annotations already provide readOnlyHint=true and idempotentHint=true. The description adds that it is read-only and requires RPC configuration, and it lists specific data fields beyond what annotations convey. No contradictions.

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?

The description is concise: it front-loads 'READ-ONLY', lists outputs, states RPC requirement, provides use case, and references issues. Every sentence adds value without redundancy.

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 simple read-only tool with one parameter and no output schema, the description covers purpose, data fields, usage context, and prerequisites. Minor omissions like error handling or valid block assumptions are acceptable given the clarity.

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?

The input schema has 100% coverage with a detailed description of the hashOrHeight parameter. The tool description does not add additional parameter information beyond the schema, so baseline 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 specifies that this tool provides bitcoind getblockstats output including fee distribution percentiles, tx count, block size, and total fees. It distinguishes itself from Esplora by noting that Esplora lacks fee percentiles, and it clearly targets fee-market anomaly detection and baselines for mempool_anomaly.

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 description states it is RPC-only and requires BITCOIN_RPC_URL configured, and that it is used for fee percentiles not available via Esplora. It provides context for when to use this tool (spotting fee anomalies) but does not explicitly name an alternative tool for simpler queries like block size/tx count.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/szhygulin/recon-crypto-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server