Skip to main content
Glama

rescan_btc_account

Read-onlyIdempotent

Refresh cached Bitcoin transaction counts for a paired Ledger account by re-querying the indexer. Use after receiving funds or when the indexer was stale at original scan time.

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?

The description details that the tool is read-only (no USB interaction), updates the persisted cache, and includes error handling with retries and concurrency bounds. This adds significant context beyond 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.

Conciseness4/5

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

The description is well-structured and front-loaded with 'READ-ONLY'. It covers all necessary aspects, though it is somewhat verbose and could be tightened without losing 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?

Given the tool's simplicity (one parameter, no output schema), the description fully covers purpose, usage, behavior, and return signal interpretation, leaving no critical gaps.

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% for the single parameter, and the schema description already provides extensive context. The main description repeats much of this information without adding new semantic value for the parameter.

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's function: refreshing the cached on-chain txCount for all paired Bitcoin addresses under one Ledger account by re-querying the indexer. It distinguishes itself from siblings like pair_ledger_btc and get_btc_account_balance.

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?

Explicitly states when to use the tool: after funds are received or when the indexer was stale at original scan. It also explains the three-state extend signal and when to re-run versus re-pair, providing clear guidance.

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