Skip to main content
Glama

Quote a private swap

gloam_swap_quote
Read-onlyIdempotent

Quote a private swap from a private Gloam balance: what you would get, the route, the vault's fee, and the first thing that would stop the swap (too thin a pool, a refund the vault could not take back, the relay's floor where gas is dear), or none. Read only: it never builds or sends a swap. A private swap hides who swapped; the tokens and amounts are public. To swap, use the Gloam app or the local server (npx -y @gloamtrade/mcp, gloam_execute_private_swap).

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": "<from>",
      "to": "<to>",
      "amount": "<amount>"
    },
    "name": "gloam_swap_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesThe asset you receive: a symbol or a token address.
fromYesThe asset you pay with: a symbol (USDG, ETH, USDC.e) or a token address.
amountYesHow much of `from` to swap, in whole units, e.g. "100" or "0.05".
networkNoGloam network: "robinhood-mainnet" (Robinhood Chain mainnet: USDG, GLOAM, PONS, CASHCAT, ETH, AI and ORBIO), "tempo-mainnet" (Tempo mainnet: USDC.e, pathUSD, USDT0, OUSD), "base-mainnet" (Base mainnet: USDC, EURC, USDT, ETH), "ethereum-mainnet" (Ethereum mainnet: USDC, USDT, USDG, PYUSD, EURC, ETH), "elysium-mainnet" (Elysium mainnet: USDC; gas in HYPE), or a testnet: "tempo" (Tempo Moderato), "robinhood" (Robinhood Chain testnet), "base" (Base Sepolia) or "ethereum" (Ethereum Sepolia).robinhood-mainnet

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / network / description
      Previous value: -"Gloam network: \"robinhood-mainnet\" (Robinhood Chain mainnet: USDG, GLOAM, PONS, CASHCAT, ETH, AI and ORBIO), \"tempo-mainnet\" (Tempo mainnet: USDC.e, pathUSD, USDT0, OUSD), \"base-mainnet\" (Base mainnet: USDC, EURC, USDT, ETH), \"ethereum-mainnet\" (Ethereum mainnet: USDC, USDT, USDG, PYUSD, EURC, ETH), or a testnet: \"tempo\" (Tempo Moderato), \"robinhood\" (Robinhood Chain testnet), \"base\" (Base Sepolia) or \"ethereum\" (Ethereum Sepolia)."New value: +"Gloam network: \"robinhood-mainnet\" (Robinhood Chain mainnet: USDG, GLOAM, PONS, CASHCAT, ETH, AI and ORBIO), \"tempo-mainnet\" (Tempo mainnet: USDC.e, pathUSD, USDT0, OUSD), \"base-mainnet\" (Base mainnet: USDC, EURC, USDT, ETH), \"ethereum-mainnet\" (Ethereum mainnet: USDC, USDT, USDG, PYUSD, EURC, ETH), \"elysium-mainnet\" (Elysium mainnet: USDC; gas in HYPE), or a testnet: \"tempo\" (Tempo Moderato), \"robinhood\" (Robinhood Chain testnet), \"base\" (Base Sepolia) or \"ethereum\" (Ethereum Sepolia)."
    • changedInput schema / properties / network / enum
      Previous value: -[
      -  "tempo",
      -  "robinhood",
      -  "base",
      -  "ethereum",
      -  "robinhood-mainnet",
      -  "tempo-mainnet",
      -  "base-mainnet",
      -  "ethereum-mainnet"
      -]New value: +[
      +  "tempo",
      +  "robinhood",
      +  "base",
      +  "ethereum",
      +  "robinhood-mainnet",
      +  "tempo-mainnet",
      +  "base-mainnet",
      +  "ethereum-mainnet",
      +  "elysium-mainnet"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / network / description
      Previous value: -"Gloam network: \"robinhood-mainnet\" (Robinhood Chain mainnet: USDG, GLOAM, PONS, CASHCAT; ETH, AI and ORBIO once their limits land), \"tempo-mainnet\" (Tempo mainnet: USDC.e, pathUSD, USDT0, OUSD), \"base-mainnet\" (Base mainnet: USDC, EURC, USDT, ETH), \"ethereum-mainnet\" (Ethereum mainnet: USDC, USDT, USDG, PYUSD, EURC, ETH), or a testnet: \"tempo\" (Tempo Moderato), \"robinhood\" (Robinhood Chain testnet), \"base\" (Base Sepolia) or \"ethereum\" (Ethereum Sepolia)."New value: +"Gloam network: \"robinhood-mainnet\" (Robinhood Chain mainnet: USDG, GLOAM, PONS, CASHCAT, ETH, AI and ORBIO), \"tempo-mainnet\" (Tempo mainnet: USDC.e, pathUSD, USDT0, OUSD), \"base-mainnet\" (Base mainnet: USDC, EURC, USDT, ETH), \"ethereum-mainnet\" (Ethereum mainnet: USDC, USDT, USDG, PYUSD, EURC, ETH), or a testnet: \"tempo\" (Tempo Moderato), \"robinhood\" (Robinhood Chain testnet), \"base\" (Base Sepolia) or \"ethereum\" (Ethereum Sepolia)."
  3. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds genuinely non-structured context: the privacy model ("hides who swapped; the tokens and amounts are public") and the enumerated failure modes (thin pool, unreturnable refund, relay gas floor). It does not say what account/private balance must exist or whether gas/permissions are required to quote.

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 outcome, then the read-only constraint, then the routing alternative — a sensible order with little waste. The parenthetical list of blocking conditions is slightly dense and grammatically tangled ("or none" trailing a long aside), but every clause carries information.

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?

With 100% schema coverage and no output schema, the description usefully sketches the return payload (amount out, route, fee, first blocker or none). It does not specify the quote's shape, freshness, or price-impact/expiry semantics, which leaves some ambiguity for a 4-parameter quoting tool.

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%, with per-parameter docs including the full network enum explanation, so the schema does the heavy lifting. The phrase "from a private Gloam balance" clarifies that `from` is the asset paid rather than a source identifier, but no additional syntax or units guidance is offered beyond 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 and resource ("Quote a private swap from a private Gloam balance") and enumerates what the quote contains: expected output, route, vault fee, and the blocking condition. The closing line naming gloam_execute_private_swap makes it unmistakably distinct from the execution path.

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 scopes the tool as "Read only: it never builds or sends a swap" and routes the agent elsewhere for execution ("To swap, use the Gloam app or the local server (npx -y @gloamtrade/mcp, gloam_execute_private_swap)"). Both the when and the when-not are stated with a named alternative.

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.