Skip to main content
Glama

Fee rates paid in the last 12 blocks

bitcoin_fee_history
Read-onlyIdempotent

Fee rates actually paid in the last 12 Bitcoin blocks: per block the 10th to 90th percentile sat/vB, total fees, tx count, fullness and time, plus 12-block averages and the trend (Bitcoin Core getblockstats). Paid per call. Price: 5 sats or US$0.005 (USDC) per call.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "bitcoin_fee_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
l402NoOptional. After paying the Lightning invoice: '<token>:<preimage>'.
passNoOptional. A Diamond budget token (dp_...) that your user approved once (from US$0.89; USDC or other Base tokens, or Lightning) or that you funded with the free diamond_budget tool. Each call deducts its price; no wallet needed in the agent.
pay_withNoOptional. 'lightning' requests a BOLT11 invoice and a token when Diamond can receive Lightning payments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / pay_with / description
      Previous value: -"Optional. 'lightning' returns a BOLT11 invoice and a token instead of the x402 payment request."New value: +"Optional. 'lightning' requests a BOLT11 invoice and a token when Diamond can receive Lightning payments."
  2. Changed1 schema field changed
    • changedInput schema / properties / pass / description
      Previous value: -"Optional. A Diamond pass (dp_...) that your user funded in a browser (USDC on Base or Lightning, from US$1). Each call deducts its price; no wallet needed in the agent."New value: +"Optional. A Diamond budget token (dp_...) that your user approved once (from US$0.89; USDC or other Base tokens, or Lightning) or that you funded with the free diamond_budget tool. Each call deducts its price; no wallet needed in the agent."
  3. Changed1 schema field changed
    • addedInput schema / properties / pass
      Added value: +{
      +  "description": "Optional. A Diamond pass (dp_...) that your user funded in a browser (USDC on Base or Lightning, from US$1). Each call deducts its price; no wallet needed in the agent.",
      +  "type": "string"
      +}
  4. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, openWorldHint=false), and the description adds genuinely new behavioral context: the tool is paid per call, with a stated price of 5 sats or US$0.005 USDC, and the underlying source is Bitcoin Core getblockstats. What is missing is how the payment round-trip behaves (invoice returned first, then retry with token), which is only partly inferable from the parameter schema.

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?

Two sentences: the first front-loads the data content and return fields, the second front-loads the commercial constraint (paid, price). No filler, no repetition of the title.

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 no output schema, the description does the work of describing return values in detail, and it flags the paid nature of the call. The remaining gap is the payment flow mechanics, which are spread across optional parameters rather than explained as a sequence.

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%, so l402, pass, and pay_with are already fully documented in the schema, and all are optional. The description adds no parameter-level meaning beyond that, so the baseline of 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+resource ('fee rates actually paid in the last 12 Bitcoin blocks') and enumerates the exact returned fields (10th-90th percentile sat/vB, total fees, tx count, fullness, time, averages, trend). The phrase 'actually paid' implicitly distinguishes it from the estimate sibling bitcoin_fee_estimates, so an agent can pick correctly without opening schemas.

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

Usage Guidelines3/5

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

Usage is only implied: it is a historical/observed-fee tool, which suggests it belongs in analysis rather than pre-transaction fee selection. There is no explicit 'use this when' or 'use fee_estimates instead when' statement, and no prerequisites or exclusions are stated.

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