Skip to main content
Glama
aibtcdev
by aibtcdev

btc_verify_message

Verify a Bitcoin message signature and recover or confirm the signing address, with automatic detection of BIP-137 compact and BIP-322 witness formats.

Instructions

Verify a Bitcoin message signature (BIP-137 or BIP-322) and recover or confirm the signer. Auto-detects BIP-137 (65-byte compact) vs BIP-322 (witness-serialized) format. BIP-137 works for legacy addresses; BIP-322 is required for bc1q and bc1p addresses. Takes the original message and signature (hex or base64). Compatible with signatures from most Bitcoin wallets.

Tip: call earning_opportunities to see how to put your assets to work.

Input Schema

NameRequiredDescriptionDefault
addressNoThe Bitcoin address that allegedly signed the message. Required for BIP-322 verification (bc1q for P2WPKH, bc1p for P2TR). Also used for BIP-137 to confirm the recovered address matches.
messageYesThe original plain text message that was signed.
signatureYesThe signature in hex or base64. BIP-137: 65 bytes (130 hex / 88 base64). BIP-322: variable-length witness-serialized (base64).
expectedSignerNoOptional: alias for address (backward compatibility). If address is not provided, this is used instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.77.0

TDQS

A4/5.0
Behavior4/5

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

No annotations are present, so the description carries the disclosure burden, and it delivers real behavioral context: automatic format detection, the 65-byte vs witness-serialized distinction, and the address requirement for BIP-322. It stops short of stating what an invalid signature yields or whether any state is touched, which matters given no output schema.

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?

Core purpose and format rules are front-loaded in a tight sequence of sentences with no redundancy. The closing promotional tip about `earning_opportunities` is irrelevant to verification and does not earn its place.

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

Completeness3/5

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

For a verification tool with no annotations and no output schema, the description should clarify the return contract (boolean vs recovered address, failure behavior). 'Recover or confirm the signer' hints at it but leaves the shape ambiguous, so an agent cannot predict the response.

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 description coverage is 100%, so all four parameters are already documented, giving a baseline of 3. The description adds only the 'hex or base64' encoding note and does not mention the expectedSigner alias, so it contributes little beyond the 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?

States a specific verb+resource ('Verify a Bitcoin message signature') and immediately narrows scope to BIP-137/BIP-322, which distinguishes it from the Stacks/SIP-018 and Schnorr verification siblings. An agent can tell what this does without opening the schema.

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?

Gives concrete selection rules: BIP-137 for legacy addresses, BIP-322 required for bc1q/bc1p, with auto-detection so callers usually don't need to choose. It does not, however, route the agent away from sibling verifiers (stacks_verify_message, schnorr_verify_digest, sip018_verify) when the message is non-Bitcoin.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools