Skip to main content
Glama

Moneda

propose_sub_account_swap

Destructive

Swap inside a sub-account between a currency (USD, EUR, CHF, CAD, MXN) and a crypto asset (e.g. cbBTC), or between two currencies. Funds stay in the sub-account. Not for the main account (use initiate_crypto_trade or initiate_currency_exchange). Creates a request the user approves in the Moneda mobile app; nothing happens until then. After calling, poll get_payment_status.

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": {
      "subAccountId": "<subAccountId>",
      "fromAsset": "<fromAsset>",
      "toAsset": "<toAsset>",
      "amount": "<amount>"
    },
    "name": "propose_sub_account_swap"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesAmount of fromAsset to sell, e.g. '100'
toAssetYesWhat to buy: a currency code (EUR) or asset symbol (WETH)
fromAssetYesWhat to sell: a currency code (USD) or asset symbol (cbBTC)
slippageBpsNoMax slippage in basis points (default 50)
subAccountIdYesSub-account UUID (from list_sub_accounts)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: it is a proposal rather than an execution ('nothing happens until then'), it requires user approval in the Moneda mobile app, and funds remain in the sub-account. This is important given destructiveHint=true, which an agent could otherwise misread as an immediate irreversible transfer. It stops short of noting the client-side status endpoint's semantics or approval timeout, so a 4 rather than 5.

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

Conciseness5/5

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

Four short sentences, front-loaded with the core operation and scope, followed by exclusions, the approval model, and the next step. No filler and nothing repeated from the schema.

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 5-parameter mutation with no output schema, the description covers the full lifecycle: eligibility (sub-account only), proposal semantics, human approval gate, and the required follow-up polling call. Nothing an agent needs to invoke it correctly is missing.

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 all five parameters (including slippageBps default 50) are already documented in the schema. The description adds the accepted asset universe (currency codes and crypto symbols), but says nothing about slippage semantics, amount precision, or directionality beyond what the field descriptions provide. Baseline 3 is correct.

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 (swap inside a sub-account), enumerates supported asset classes and examples (USD/EUR/CHF/CAD/MXN, cbBTC), and explicitly contrasts with initiate_crypto_trade / initiate_currency_exchange for the main account. An agent can distinguish this from the many other propose_* siblings without opening a schema.

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?

Gives both the when ('swap inside a sub-account') and the when-not ('Not for the main account'), names the alternatives for the opposite case, and prescribes the follow-up action ('After calling, poll get_payment_status'). Routing is fully specified.

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