Skip to main content
Glama

pair_ledger_btc

Idempotent

Pair a directly-connected Ledger device for Bitcoin signing. Enumerates all four address types (legacy, P2SH-segwit, native segwit, taproot) for a given account index, with BIP44 gap-limit scanning.

Instructions

Pair the host's directly-connected Ledger device for Bitcoin signing. REQUIREMENTS: Ledger plugged in over USB, device unlocked, the 'Bitcoin' app open on-screen. Ledger Live's WalletConnect relay does NOT expose bip122 accounts to dApps, so Bitcoin signing goes over USB HID via @ledgerhq/hw-app-btc (same USB path as Solana / TRON). ONE CALL ENUMERATES ALL FOUR ADDRESS TYPES for the requested accountIndex (default 0): legacy P2PKH (44'/0'/<n>'/0/01...), P2SH-wrapped segwit (49'/0'/<n>'/0/03...), native segwit P2WPKH (84'/0'/<n>'/0/0bc1q...), and taproot P2TR (86'/0'/<n>'/0/0bc1p...). All four are cached so get_ledger_status can report them under the bitcoin: [...] section. Call again with a different accountIndex to expose additional accounts. Read-only on the device — the Ledger BTC app does not prompt during getWalletPublicKey by default. Phase 1 is mainnet-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountIndexNoLedger Bitcoin account slot. One call enumerates ALL FOUR address types for the given index (legacy at `44'/0'/<n>'/...`, p2sh-segwit at `49'/0'/<n>'/...`, native segwit at `84'/0'/<n>'/...`, taproot at `86'/0'/<n>'/...`) AND walks both the receive (`/0/i`) and change (`/1/i`) chains using BIP44 gap-limit scanning so a previously-used wallet's later-index funds aren't missed. 0 = first Bitcoin account, 1 = second, etc. Omit for the default (index 0). Call again with a different index to expose more accounts; calling with the same index refreshes the cache.
gapLimitNoBIP44 gap limit — stop walking each (type, chain) after this many consecutive addresses with zero on-chain history. Default 20 (matches Electrum / Sparrow / Trezor Suite / Ledger Live). Lower values speed the scan up but risk missing funds across larger gaps; raise it for wallets that may have skipped indices. Capped at 100.
Behavior5/5

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

Describes read-only nature (no prompt on device), caching of addresses, and that get_ledger_status reports them. Annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=true) are consistent; description adds valuable behavioral context beyond 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 detailed but well-organized with clear sections (purpose, requirements, technical details, caveats). It is front-loaded with the main purpose and requirements. While slightly lengthy, every sentence provides essential 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 complexity of pairing a hardware wallet, no output schema, and two parameters, the description covers prerequisites, behavior, caching, address enumeration, and scope (mainnet-only). It fully informs the agent about what to expect and how to use the tool.

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

Parameters5/5

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

With 100% schema description coverage, the description still adds meaning: explains accountIndex enumerates all four address types and walks both receive/change chains, and explains gapLimit with BIP44 context and default values. 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 clearly states it pairs a directly-connected Ledger device for Bitcoin signing, enumerating all four address types. It uses a specific verb ('Pair'), identifies the resource ('Ledger device for Bitcoin signing'), and distinguishes itself from sibling tools like pair_ledger_live or pair_ledger_solana.

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 lists requirements (USB plugged, unlocked, Bitcoin app open), explains when not to use (Ledger Live WalletConnect relay doesn't expose bip122 accounts), and notes it's mainnet-only in phase 1. Provides clear context for appropriate invocation.

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