Skip to main content
Glama

Moneda

get_payment_quote

Read-only

Preview the cost, FX rate, and final amount for moving money between two currencies. Provide exactly one of amountIn (what the user sends) or amountOut (what they want to receive). Returns the quote ID, exchange rate, fee, and how long the quote stays valid. Use this BEFORE initiate_payment so the user can confirm the rate. Routes internally based on the currency pair — agents don't need to know which provider handles which corridor.

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": {
      "fromCurrency": "<fromCurrency>",
      "toCurrency": "<toCurrency>"
    },
    "name": "get_payment_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountInNoAmount to send (in `fromCurrency` units). Omit if specifying `amountOut`.
amountOutNoAmount to receive (in `toCurrency` units). Omit if specifying `amountIn`.
toCurrencyYesDestination currency. ONRAMP example: 'USDC'. OFFRAMP example: 'BRL'.
fromCurrencyYesSource currency. ONRAMP example: 'BRL' (sending Brazilian reais). OFFRAMP example: 'USDC' (sending Base USDC).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds genuine value beyond that: it discloses the return contents (quote ID, exchange rate, fee, validity window) and notes internal routing by currency pair so agents don't need provider knowledge. It stops short of stating auth requirements or rate limits, so not a 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 tight sentences, each earning its place: purpose, parameter constraint, return values, and usage ordering. Front-loaded with the core capability.

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 read-only preview tool with full schema coverage and no output schema, this is nearly complete: it explains what it returns and when to call it. The absence of an output schema means the return-values sentence does useful work, though exact response shape is only summarized.

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 the schema already documents all four parameters including the amountIn/amountOut examples and currency direction semantics. The description reinforces the 'exactly one of amountIn or amountOut' constraint, which adds some clarity, but most semantic detail lives in the schema.

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 ('Preview') and resource ('cost, FX rate, and final amount for moving money between two currencies'), and explicitly distinguishes itself from initiate_payment by directing use 'BEFORE initiate_payment'. Clearly separable from siblings like get_exchange_rate (pure rate lookup) and initiate_payment (execution).

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?

Explicitly says when to use it ('Use this BEFORE initiate_payment so the user can confirm the rate') and names the alternative tool. Also gives the mutual-exclusivity rule for amountIn/amountOut, leaving little to inference.

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