Skip to main content
Glama

rescan_btc_account

Read-onlyIdempotent

Refresh cached Bitcoin transaction counts for a paired Ledger account by re-querying the on-chain indexer. Updates balance cache after fund receipt or stale indexer data.

Instructions

READ-ONLY — refresh the cached on-chain txCount for every paired Bitcoin address under one Ledger account by re-querying the indexer. Pure indexer-side: NO Ledger / USB interaction. Use this after the user has received funds (so a previously-empty cached address now has history) or when the indexer was stale at the original pair_ledger_btc scan time. Updates the persisted cache, so subsequent get_btc_account_balance reflects the refresh without another rescan. Three-state extend signal: needsExtend: true (trailing buffer address on any cached chain has on-chain history — re-run pair_ledger_btc to extend the walked window); unverifiedChains: [...] (tail probe REJECTED for that chain — indeterminate, usually a transient indexer hiccup, re-run rescan_btc_account rather than re-pairing); neither field present → all walked chains confirmed healthy. Indexer fan-out is bounded to BITCOIN_INDEXER_PARALLELISM concurrent requests (default 8) to stay under mempool.space's free-tier rate limits; transient 429s and network errors are retried once internally.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountIndexYesLedger Bitcoin account slot to rescan. Must already be paired (call `pair_ledger_btc` first). Re-queries the indexer for the live `txCount` of every cached address under this account and updates the persisted cache — useful after the user has received funds or the indexer was stale at original scan time. Pure indexer-side: no Ledger / USB interaction. Returns: `needsExtend: true` when the trailing empty address on any cached chain now has history (re-pair to extend the walked window); `unverifiedChains: [...]` when the tail probe ITSELF rejected (transient indexer hiccup, status indeterminate — re-run `rescan_btc_account` rather than re-pairing).
Behavior5/5

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

Annotations declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, and openWorldHint=true. The description adds rich context: retries transient errors, bounded parallel requests, pure indexer-side, and details the three-state return signal (needsExtend, unverifiedChains). No contradiction.

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 a single dense paragraph that efficiently covers purpose, usage, state signals, and limitations without wasted words. Structurally front-loaded with the main action.

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?

Given complexity (rescan, indexer, state signals), annotations, and thorough input schema, the description is complete. It explains the return behavior (three-state signal), rate limits, and retry logic, compensating for the lack of an output schema.

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%, with a detailed parameter description in the input schema. The tool description does not add new information about the parameter beyond what is already in the schema, so it meets the baseline but does not exceed it.

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 explicitly states the verb 'refresh' and the resource 'cached on-chain txCount for every paired Bitcoin address under one Ledger account', clearly distinguishing it from siblings like pair_ledger_btc (initial pairing) and get_btc_account_balance (reading cache).

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?

The description specifies when to use ('after user has received funds' or 'indexer was stale at original scan time'), clarifies no Ledger/USB interaction, and explains the three-state extend signal to guide next actions (re-run vs. re-pair), providing explicit alternatives.

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