Skip to main content
Glama

swap_create

Preview or create a BTC swap between Lightning or Arkade and USDC or USDT0 on Arbitrum, or Lightning↔Arkade. Shows fees in a quote; set confirm to execute with real funds.

Instructions

Swap BTC through Satora: Lightning or Arkade into USDC or USDT0 on Arbitrum, or Lightning ↔ Arkade. Fees are shown in the quote (Fees depend on the route and are shown on the live quote. Lightning or Arkade to USDC or USDT0 (and back) is about 1% total (Satora ~0.5% + Agent Escrow 0.5%) plus network fee. Lightning to Arkade is about 0.65% total (Satora ~0.15% + Agent Escrow 0.5%) plus network fee. Arkade to Lightning is about 0.80% total (Satora ~0.30% + Agent Escrow 0.5%) plus network fee). REAL MONEY on mainnet. Without confirm: preview only. With confirm: creates the swap and returns what to pay once (a Lightning invoice, an Ark address + exact sats, or both for the rail). After paying a Lightning- or Arkade-to-stablecoin swap, or a Lightning-to-Arkade swap, call swap_claim with wait=true. After paying an Arkade-to-Lightning swap, call swap_status (or swap_claim with wait=true) to wait for Satora to pay the invoice; there is nothing for you to claim. Non-custodial: the claim key stays in this Mark home

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "swap_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNostablecoin on Arbitrum (default usdc), or lightning/arkade for a Lightning ↔ Arkade swap
fromNowhere the BTC comes from (default lightning)
satsNosats to send (required for BTC → stablecoin and Lightning → Arkade; omit when an invoice pins an Arkade → Lightning payout)
addressNopayout destination: 0x on Arbitrum (to a stablecoin) or an Ark address on https://arkade.computer (to arkade)
confirmNomust be true to create the real swap; omit to preview
invoiceNofrom arkade to lightning: a BOLT11 invoice with an amount

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are provided, and the description carries the safety burden well by disclosing REAL MONEY on mainnet, preview vs creation behavior, returned payment instructions, and non-custodial claim-key handling. It stops short of covering edge cases such as quote/invoice expiration, payment failure, or refund behavior.

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 opening purpose and operational safety logic are front-loaded and useful. However, the fee section is a long nested parenthetical with redundant phrasing, making the description harder to parse than necessary.

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 complex financial swap with no annotations and no output schema, the description covers fees, confirm-preview behavior, what payment instructions are returned, follow-up calls, and custody assumptions. It is largely complete, though it omits lifecycle details such as quote validity and failure/refund paths.

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 coverage is 100%, so from/to/sats/address/confirm/invoice are already documented in the schema. The description reinforces route combinations and confirm semantics, but adds little parameter-level meaning beyond what the structured schema already provides.

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 verb and resource: swap BTC through Satora between Lightning/Arkade and USDC/USDT0 on Arbitrum, or between Lightning and Arkade. The route matrix makes the tool distinguishable from siblings such as swap_to_btc_create and swap_quote.

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?

It explicitly says without confirm the call is preview-only and with confirm it creates a real mainnet swap. It also gives route-specific post-payment guidance, naming swap_claim with wait=true and swap_status as alternatives depending on the swap direction.

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