Skip to main content
Glama

Get USDC to BSV quote

get_quote
Read-only

Fetch a live, read-only quote for buying BSV with USDC on Base before swapping; show its terms and reuse the quote_id within about 60 seconds.

Instructions

Get a live quote for buying BSV with USDC on Base. Read-only: nothing is locked or spent. Call it before swap_asset_to_bsv and show the quote to the person directing you; it lasts about 60 seconds, and passing its quote_id to swap_asset_to_bsv uses these terms. Returns quote_id, expires_at, usdc_in, bsv_out, est_bsv_received_sats (after the BSV claim fee), rate_usd_per_bsv, market_mid_usd_per_bsv, price_vs_mid_percent, costs and limits. If the counterparty declines (busy or over a limit), the error carries code, retry_after_s and retry_hint. To send the BSV to another wallet, use fund_wallet: the same quote plus the exact swap call.

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": {
      "from_asset": "<from_asset>",
      "to_asset": "<to_asset>",
      "amount_in": "<amount_in>"
    },
    "name": "get_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
to_assetYesAsset you receive. Must be "BSV".
amount_inYesUSDC to spend, in atomic units as a decimal string. USDC has 6 decimals: "25000000" = 25 USDC. The quote's limits field gives the current per-swap and daily limits.
from_assetYesAsset you pay with. Must be "USDC" (USDC on Base).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.22
    • changedInput schema / properties / amount_in / description
      Previous value: -"Amount of from_asset in atomic units, as a decimal string (e.g. USDC 6dp: \"1000000\" = 1 USDC; BSV in sats)."New value: +"USDC to spend, in atomic units as a decimal string. USDC has 6 decimals: \"25000000\" = 25 USDC. The quote's limits field gives the current per-swap and daily limits."
    • changedInput schema / properties / from_asset / description
      Previous value: -"Asset to convert FROM: USDC or BSV (phase 1 supports USDC → BSV only)"New value: +"Asset you pay with. Must be \"USDC\" (USDC on Base)."
    • changedInput schema / properties / to_asset / description
      Previous value: -"Asset to convert TO: USDC or BSV (phase 1 supports USDC → BSV only)"New value: +"Asset you receive. Must be \"BSV\"."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and openWorldHint, but the description goes further: nothing is locked or spent, the quote lives ~60 seconds, and failure behavior is described (error carries code, retry_after_s and retry_hint when the counterparty is busy or over a limit). That is real behavioral context an agent cannot get from the annotations or schema.

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 action and read-only safety note, then sequencing, then return fields, then error behavior — a logical order. The enumeration of return fields is long but compensates for the absence of an output schema; minor density cost keeps it off a 5.

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?

With no output schema, the description takes on the burden of describing the return payload (quote_id, expires_at, amount fields, rate vs mid, costs, limits) and does so. Combined with expiry timing, error semantics, and the fund_wallet alternative, nothing needed to invoke or interpret the call 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 coverage is 100% and the schema already documents all three parameters including the atomic-units convention and the limits field. The description adds only the note that the quote's limits field reflects current per-swap and daily caps, which is marginal but not zero added meaning. Baseline 3 applies.

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 ('Get a live quote for buying BSV with USDC on Base') with the chain named, which immediately separates it from swap_asset_to_bsv and fund_wallet. An agent knows this is a pricing/preview call, not an execution call.

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?

Explicit sequencing guidance: call before swap_asset_to_bsv, show the quote to the person directing you, and pass its quote_id to reuse the terms. It also names the alternative path for a different goal ('To send the BSV to another wallet, use fund_wallet'), so both when-to-use and which-sibling are covered.

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