Skip to main content
Glama

get_btc_block_stats

Read-onlyIdempotent

Get Bitcoin block fee distribution (percentiles), tx count, size, and total fees. Use to detect fee-market anomalies via RPC.

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 declare readOnlyHint=true, destructiveHint=false, idempotentHint=true. The description adds that the tool is an RPC call to bitcoind requiring BITCOIN_RPC_URL, and mentions issue references for context. No contradictions with annotations. Beyond annotations, it specifies the RPC method name and data source, which is helpful.

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 at three sentences, front-loading the read-only nature and method name. Every sentence adds value: lists output fields, compares with alternatives, and states use cases. No redundant or filler content.

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?

The tool has no output schema, but the description lists all key return fields (fee percentiles, tx count, block size, total fees). It also explains why these are useful (fee-market anomalies, baseline). For a read-only data tool, this is fairly complete, though it omits potential error conditions or edge cases.

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 description coverage is 100% for the single parameter 'hashOrHeight', which already includes detailed constraints and explanation. The description does not add additional meaning beyond restating the parameter's role implicitly. With high schema coverage, 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 the tool returns bitcoind getblockstats output including fee distribution percentiles, tx count, block size, and total fees. It explicitly distinguishes itself from Esplora by noting Esplora lacks fee percentiles. The verb 'get' and specific resource 'btc_block_stats' align perfectly with the purpose.

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 provides usage context: spotting fee-market anomalies and baselines for mempool_anomaly. It notes a key exclusion (Esplora does not provide fee percentiles) and a prerequisite (BITCOIN_RPC_URL configured). It does not compare to all sibling tools but the specificity of the output is distinctive.

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/vaultpilot-mcp'

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