Skip to main content
Glama

get_btc_multisig_balance

Read-onlyIdempotent

Gets the aggregate balance of a registered multisig wallet by deriving addresses from cosigner xpubs and querying an Esplora indexer, with per-address breakdown for addresses having on-chain history.

Instructions

Watch-only balance read for a registered multi-sig wallet. Walks both BIP-32 chains (chain=0 receive, chain=1 change) up to a gap-limit window (default 20, BIP-44 standard), queries each derived address via the configured Esplora indexer, returns the aggregate balance plus per-address breakdown for entries with on-chain history. No device touch — addresses are derived locally from the stored cosigner xpubs. Phase 3 supports P2WSH (wsh) wallets only; taproot lands in a follow-up PR.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
walletNameYesName of a registered multi-sig wallet (matches the `name` passed to `register_btc_multisig_wallet`).
gapLimitNoBIP-44 gap limit — stop walking each chain after N consecutive empty addresses. Default 20 (matches Sparrow / Specter / BIP-44 recommendation). Cap of 100 to bound indexer fan-out.
Behavior5/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 valuable behavioral details: walks both chains, uses gap limit, queries Esplora, returns aggregate + per-address breakdown, no device touch, P2WSH limitation. No contradictions.

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?

Three sentences, each purposeful. First sentence states core purpose. Second details operational behavior. Third notes limitations. No fluff, well-structured and front-loaded.

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?

Covers chains, gap limit, indexer, aggregate breakdown, and P2WSH limitation. Lacks explicit mention of return format (but aggregate + per-address is sufficient) and prerequisites (wallet must be registered). Adequate for a balanced read-only tool.

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 covers both parameters with descriptions (100% coverage). Description enriches by explaining gap limit default (20), BIP-44 standard, cap of 100, and that walletName matches register_btc_multisig_wallet's name. Adds value beyond schema.

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 uses specific verbs ('read', 'walks', 'queries', 'returns') and clearly identifies the resource (registered multi-sig wallet balance). It distinguishes from sibling tools like 'get_btc_balance' by specifying multi-sig and watch-only nature, and mentions P2WSH support and taproot future.

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 states when to use (watch-only, no device touch) and provides technical context (BIP-32, BIP-44 gap limit, Esplora). It implies it's for registered wallets and P2WSH only, but does not explicitly list alternatives or say when not to use.

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