Skip to main content
Glama
aibtcdev
by aibtcdev

lightning_create

Create a new password-protected Lightning wallet. Generates a BIP39 mnemonic, encrypts the keystore, and returns a deposit address for funding the wallet from L1 BTC.

Instructions

Create a new embedded Lightning wallet backed by the Spark SDK. Generates a fresh BIP39 mnemonic (shown once), encrypts it with the provided password, and stores it at ~/.aibtc/lightning/keystore.json. Returns the deposit address for funding the wallet from L1 BTC.

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

Input Schema

NameRequiredDescriptionDefault
nameYesName for the Lightning wallet (e.g., 'main')
passwordYesPassword to protect the Lightning wallet (minimum 8 characters) - WARNING: sensitive value

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.77.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden, and it does disclose real behavior: a mnemonic is generated and shown only once, encrypted with the password, and persisted to ~/.aibtc/lightning/keystore.json. However it omits important operational facts — behavior on repeat calls (overwrite vs. error), whether the mnemonic is recoverable afterwards, and whether the password is unrecoverable if lost.

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 core capability, side effects, storage path, and return value are packed into two front-loaded sentences with no waste. The trailing `earning_opportunities` tip is mild filler that does not serve tool selection.

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?

For a 2-parameter creation tool with a fully documented schema and no output schema, the description covers the essentials: what is created, the irreversible 'shown once' mnemonic, where the keystore lives, and what the call returns. Edge-case behavior around pre-existing wallets is the main missing piece.

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 the baseline is 3. The description adds only light context: `password` is used to encrypt the mnemonic, and `name` labels the wallet. It does not expand on naming rules or password strength beyond the schema's minLength=8.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Create a new embedded Lightning wallet') plus the underlying mechanism (BIP39 mnemonic + Spark SDK), which implicitly separates it from sibling tools like lightning_import or wallet_create. It never names those siblings explicitly, so the differentiation is inferential rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only usage direction is a tangential tip pointing at `earning_opportunities`, which has nothing to do with choosing this tool. There is no guidance on when to create vs. import (lightning_import), no prerequisite about needing a password up front, and no note on what to do if a keystore already exists.

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