Skip to main content
Glama

btc_price

Read-only

Get the current Bitcoin spot price in USD, EUR, GBP, CAD, CHF, AUD and JPY. Use it to convert between BTC or sats and fiat, or to quote a price; for whether to broadcast now use btc_send_decision, and for fee timing use optimal_send_window. Takes no input. Read-only: each call makes one live HTTPS read of mempool.space; the result is not stored. Returns the upstream object as served (time in Unix seconds, one whole-unit price per currency) plus source (the URL read), fetched_at (UTC, RFC 3339) and source_sha256 (SHA-256 of the upstream body). Returns an upstream error if mempool.space is unreachable or sends invalid JSON. Price: 10 sats 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": "btc_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
l402_proofNoL402 payment proof "<macaroon>:<preimage>". Omit on the first call; an unpaid call returns a 10 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / l402_proof / description
      Previous value: -"L402 payment proof \"<macaroon>:<preimage>\". Omit on the first call; an unpaid call returns a 0 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set."New value: +"L402 payment proof \"<macaroon>:<preimage>\". Omit on the first call; an unpaid call returns a 10 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set."
  2. Changed1 schema field changed
    • changedInput schema / properties / l402_proof / description
      Previous value: -"L402 payment proof \"<macaroon>:<preimage>\". Omit on the first call; an unpaid call returns a 10 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set."New value: +"L402 payment proof \"<macaroon>:<preimage>\". Omit on the first call; an unpaid call returns a 0 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set."
  3. Changed1 schema field changed
    • addedInput schema / properties / l402_proof
      Added value: +{
      +  "description": "L402 payment proof \"<macaroon>:<preimage>\". Omit on the first call; an unpaid call returns a 10 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set.",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and openWorldHint, but the description goes further: one live HTTPS read of mempool.space per call, nothing stored, error behavior when the upstream is unreachable or returns invalid JSON, and an explicit price of 10 sats per call. The cost and external-dependency disclosure is genuinely load-bearing information an agent cannot get from 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and currency set are front-loaded, then usage, then operational behavior, then cost — a sensible order with no filler sentences. Despite packing in routing, storage, error, return-shape and pricing details, every clause carries distinct information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description compensates by describing the return payload (Unix-seconds time, one whole-unit price per currency) plus the source, fetched_at and source_sha256 envelope fields. Combined with the upstream failure mode and per-call cost, an agent has everything needed to call and interpret it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single l402_proof parameter is fully documented in-schema, including the omit-on-first-call flow, so the baseline is met. The description contributes by stating the per-call price that motivates that parameter, though its phrase 'Takes no input' sits slightly awkwardly against the existence of l402_proof and it never describes the invoice-then-retry L402 dance itself.

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 states a specific verb and resource ('Get the current Bitcoin spot price') and enumerates the exact currency set, so there is no ambiguity about what is returned. It also explicitly distinguishes itself from btc_send_decision and optimal_send_window, letting an agent separate it from the other bitcoin-flavored siblings without opening any schema.

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

Usage Guidelines5/5

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

It names concrete use cases ('convert between BTC or sats and fiat, or to quote a price') and then routes the agent away with explicit alternatives: btc_send_decision for broadcast decisions and optimal_send_window for fee timing. This is the when-to-use / when-to-use-something-else pattern done properly.

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