Skip to main content
Glama
Rails by Spritz API

Rails by Spritz API

Official

create_off_ramp_quote

Creates an off-ramp quote to convert crypto to fiat, returning fulfillment instructions for sending tokens or signing a transaction.

Instructions

Create an off-ramp quote to convert crypto to fiat. Requires accountId, amount, chain, and tokenAddress (the on-chain contract address, e.g. 0xaf88d065e77c8cC2239327C5EDb3A432268e5831 for USDC on Arbitrum). Do NOT pass a token symbol — it must be the contract address.

After creating a quote, check the fulfillment field:

  • send_to_address: Send the exact input.amount of input.token to the sendTo.address before sendTo.expiresAt.

  • sign_transaction: Call get_off_ramp_transaction with the quote ID and sender address to get calldata or a serialized transaction, then sign and submit on-chain.

Amount modes: set amountMode to output (default) for exact fiat delivery, or input for exact crypto spend.

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": {
      "accountId": "<accountId>",
      "amount": "<amount>",
      "chain": "<chain>"
    },
    "name": "create_off_ramp_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
memoNoPayment note (bank account payments only)
railNo
chainYes
amountYesAmount as a decimal string (interpretation depends on amountMode)
accountIdYesDestination account ID
amountModeNo
tokenAddressNoToken contract address. Highly recommended for EVM chains — different tokens have different fee tiers (e.g. USDC is cheapest). If omitted, the chain's native token is assumed. Not needed for Bitcoin.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses that a quote has an expiry (`sendTo.expiresAt`), that it produces a `fulfillment` discriminator with two distinct downstream flows, and that amount interpretation depends on `amountMode`. It omits fee/rate behavior, quote validity duration, and whether quote creation is committing or side-effect free.

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 purpose and required inputs, then a scannable bulleted branching section, which is good structure for a multi-step flow. Minor waste from restating the token-address warning twice ('Do NOT pass a token symbol — it must be the contract address') and from the inaccurate required-parameter list.

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 a 7-parameter financial mutation tool with no annotations and no output schema, the description covers the critical decision points (token address, amount mode, fulfillment branch) but leaves the response shape largely unexplained beyond `fulfillment` — no mention of the quote/ID field, fees, rate, or expiry window length. An agent can call it correctly, but must discover the full result contract empirically.

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

Parameters4/5

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

Schema coverage is 57%, and the description compensates well for the weakest fields: it explains `tokenAddress` must be a contract address (not a symbol) and gives a concrete USDC/Arbitrum example, and it defines `amountMode` semantics ('exact fiat delivery' vs 'exact crypto spend') that the schema leaves as a bare enum. However, it never mentions `memo` or `rail`, and it incorrectly claims `tokenAddress` is required when the schema marks it optional and the schema text says it is unnecessary for Bitcoin.

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 with scope: 'Create an off-ramp quote to convert crypto to fiat', then immediately names the required inputs. It is clearly distinguishable from read-side siblings like get_off_ramp_quote/get_off_ramp_transaction, and it explicitly routes to get_off_ramp_transaction as a downstream step.

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?

Gives concrete conditional guidance: after creating the quote, branch on the `fulfillment` value (`send_to_address` vs `sign_transaction`) with the exact action for each. It also states the `amountMode` default (`output`) and the alternative (`input`). It does not say when not to use this tool (e.g. vs other quote-creation paths or rails).

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