Skip to main content
Glama
aibtcdev
by aibtcdev

lightning_claim_deposit

Claims a confirmed BTC L1 deposit into a Spark Lightning wallet by fetching an SSP quote and submitting the claim, returning credited sats and the Spark transfer ID.

Instructions

Claim a confirmed BTC L1 deposit into the Spark Lightning wallet. Call this AFTER lightning_fund_from_btc and after the on-chain transaction has 3 confirmations. Fetches a signed quote from the SSP, submits the claim, and returns the credited sats + Spark transfer id. Requires an unlocked Lightning wallet.

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

Input Schema

NameRequiredDescriptionDefault
outputIndexNoVout index of the deposit output (default: SSP auto-detects)
transactionIdYesBitcoin txid of the deposit transaction

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.77.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden and does well: it explains that the tool fetches a signed quote from the SSP, submits the claim, returns credited sats plus a Spark transfer id, and requires an unlocked wallet. It stops short of covering failure modes or idempotency if the deposit was already claimed.

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 front-loaded with the core action, prerequisites, process, and return values. The trailing earning_opportunities tip is peripheral to invoking this tool, but the overall wording remains efficient.

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?

For a tool with no output schema and no annotations, the description supplies the necessary context: prerequisites, confirmation requirement, unlocked-wallet requirement, SSP quote behavior, and return values. An agent has enough information to know when and how to call it correctly.

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%, and both transactionId and outputIndex are documented in the schema. The description adds no parameter-specific meaning beyond the schema, so the baseline score of 3 is appropriate.

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 states a specific action and resource: claiming a confirmed BTC L1 deposit into the Spark Lightning wallet. It clearly distinguishes this from the sibling lightning_fund_from_btc by naming it as the required precursor step.

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?

It gives explicit timing conditions: call after lightning_fund_from_btc and after the on-chain transaction has 3 confirmations. It also notes the wallet must be unlocked, though it does not name alternatives for what to do if those conditions are not yet met.

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