Skip to main content
Glama

1hlabs_bitcoin_l402_gateway

[Client-Side Bitcoin L402 & Taproot Parameter Gateway] Model A B2B SaaS (0 bps): generates L402 invoice challenges and client-side Taproot PSBT templates: Lightning Network L402 BOLT11 (< 1,000 EUR) and Unsigned On-Chain Taproot 2-of-3 Client-Side PSBT Template (>= 1,000 EUR) under Model A Non-Custodial B2B SaaS.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "mandate_description": "<mandate_description>"
    },
    "name": "1hlabs_bitcoin_l402_gateway"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoDry-Run Software Simulation mode. When true, returns locked preview quote with settlement_token without committing funds.
amount_eurNoSettlement amount denominated in EUR
amount_satsNoOptional direct satoshi amount (overrides amount_eur)
settlement_railNoLightning L402 (< 1k EUR) or Taproot 2-of-3 PSBT Template (>= 1k EUR)AUTO_DETECT
settlement_tokenNoOptional dry-run settlement token (tok_dry_...) to redeem a previously locked preview quote.
mandate_descriptionYesCommercial capability, task, or inventory item being settled via Bitcoin
auto_generate_l402_invoiceNoInstantly generate BOLT11 L402 invoice in single pulse
client_agent_pubkey_or_lnurlNoOptional refund pubkey or LNURL / Lightning address

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden, and it does disclose important traits: non-custodial, client-side, unsigned Taproot PSBT templates, and invoice challenge generation. It does not explain permissions, idempotency, rate limits, or the operational flow around dry-run and settlement-token redemption.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description front-loads the gateway label and includes the essential thresholds, but it is a dense run-on sentence with repeated 'Model A B2B SaaS' phrasing and unexplained jargon such as '0 bps'. It is usable but not cleanly structured.

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 an 8-parameter payment-generation tool with no annotations and no output schema, the description covers purpose and rail thresholds, while the rich schema covers parameters. It still omits return-value expectations and the practical workflow for dry-run previews and settlement-token redemption, leaving it minimum-viable rather than complete.

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 the settlement_rail enum already documents the same < 1k EUR vs >= 1k EUR distinction. The description reinforces the amount-to-rail mapping and Model A context, but adds little parameter meaning beyond what the schema already provides.

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?

The description states a specific verb and resources: it generates L402 invoice challenges and client-side Taproot PSBT templates, with amount thresholds for each rail. It is clearly distinct in substance, though it does not explicitly differentiate itself from any sibling tool.

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

Usage Guidelines3/5

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

It gives explicit amount-based guidance for choosing between Lightning L402 BOLT11 (< 1,000 EUR) and Taproot 2-of-3 PSBT (< >= 1,000 EUR), which implies when each settlement rail applies. However, it does not state when to use this gateway versus alternatives or provide exclusions beyond the amount threshold.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources