Skip to main content
Glama

neutron_create_transaction

Create a quoted transaction for Lightning, on-chain, USDT, swap, or fiat payouts. Specify source/destination currencies and methods, then confirm to execute.

Instructions

Create a transaction. Supports all payment types:

Lightning send: sourceCcy="BTC", sourceMethod="neutronpay", destCcy="BTC", destMethod="lightning", paymentRequest="lnbc..." Lightning Address: sourceCcy="BTC", sourceMethod="neutronpay", destCcy="BTC", destMethod="lnurl", lnurl="user@wallet.com", sourceAmount=0.0001 On-chain send: sourceCcy="BTC", sourceMethod="neutronpay", destCcy="BTC", destMethod="on-chain", address="bc1q..." On-chain receive: sourceCcy="BTC", sourceMethod="on-chain", destCcy="BTC", destMethod="neutronpay", destAmount=0.001 USDT send (TRON): sourceCcy="USDT", sourceMethod="neutronpay", destCcy="USDT", destMethod="tron", address="T..." Internal swap: sourceCcy="BTC", sourceMethod="neutronpay", destCcy="USDT", destMethod="neutronpay", sourceAmount=0.001 Fiat payout: sourceCcy="BTC", sourceMethod="neutronpay", destCcy="VND", destMethod="vnd-instant", bankAcctNum="...", institutionCode="...", recipientName="...", countryCode="VN", recipientPhone="+84912345678" IDR payout example: destCcy="IDR", destMethod="idr-instant", countryCode="ID", recipientPhone="+628123456789" (E.164 format — always include + prefix)

Amounts are in BTC (not sats). 100 sats = 0.00000100 BTC. Set amount on ONE side only (source OR dest), not both. Returns a quoted transaction — call neutron_confirm_transaction to execute.

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": {
      "sourceCcy": "<sourceCcy>",
      "sourceMethod": "<sourceMethod>",
      "destCcy": "<destCcy>",
      "destMethod": "<destMethod>"
    },
    "name": "neutron_create_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
lnurlNoLightning Address (user@domain.com) or LNURL string (for destMethod=lnurl)
addressNoCrypto address: Bitcoin (bc1q...), TRON (T...), Ethereum (0x...)
destCcyYesDestination currency: BTC, USDT, VND, USD, CAD, etc.
kycTypeNoRecipient type (for fiat payouts, default: individual)
extRefIdNoYour reference ID for tracking
sourceCcyYesSource currency: BTC, USDT, VND, USD, CAD, etc.
destAmountNoAmount to destination. Set on source OR dest, not both.
destMethodYesDest method: neutronpay (to wallet), lightning (pay invoice), lnurl (pay LN address), on-chain, tron, eth, vnd-instant, etc.
bankAcctNumNoBank account number (for fiat payouts)
countryCodeNoRecipient country code e.g. VN, NG, KE (required for fiat payouts)
sourceAmountNoAmount from source (in BTC for Bitcoin). Set on source OR dest, not both.
sourceMethodYesSource method: neutronpay (from wallet), lightning (receive LN), on-chain (receive BTC)
recipientNameNoRecipient legal full name (required for fiat payouts)
paymentRequestNoBOLT11 Lightning invoice to pay (for destMethod=lightning)
institutionCodeNoBank code from neutron_get_fiat_institutions (for fiat payouts)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.10

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does substantial work: it discloses that the call is non-committal (returns a quote, requires confirm to execute), that amounts are denominated in BTC rather than sats, and that amount must be set on exactly one side. It does not mention quote expiry, fees, minimum amounts, or KYC requirements implied by the kycType parameter, which matter for a financial mutation.

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?

Front-loaded with the core verb and a per-mode example list, so the critical decision content is at the top. It is long, and the trailing "IDR payout example" largely repeats the fiat payout line above it, which is the main piece of redundant wording, though for a 15-parameter multi-corridor tool the volume is largely justified.

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 15-parameter, no-output-schema, no-annotation tool, the description covers the corridor matrix, unit conventions, and the two-step quote/confirm lifecycle that an agent must know. Gaps remain around what the returned quote contains and how long it is valid, which an agent needs before chaining into neutron_confirm_transaction.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3, but the description goes far beyond it by showing how sourceCcy/sourceMethod/destCcy/destMethod must be combined for each corridor and which auxiliary fields (address, lnurl, bankAcctNum, institutionCode, countryCode, recipientPhone) pair with each. It also adds rules absent from the schema, such as setting sourceAmount or destAmount on one side only and using E.164 format with the + prefix for phone numbers.

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 and resource ("Create a transaction") and then enumerates the seven distinct payment modes it covers, which no sibling name implies. It also draws the boundary against neutron_confirm_transaction with "Returns a quoted transaction — call neutron_confirm_transaction to execute," so an agent can distinguish quote creation from execution immediately.

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?

Each payment type is presented as a concrete parameter combination to use (Lightning send, Lightning Address, on-chain send/receive, TRON USDT, internal swap, fiat payout), which is effectively a when-to-use guide. It also names the required follow-up tool. It does not address when to prefer neutron_create_lightning_invoice over the lnurl/lightning modes, so the routing against all siblings is incomplete.

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