Skip to main content
Glama

HelmSwap

Get swap quote

get_quote
Read-onlyIdempotent

Get a live, non-binding quote for swapping one token for another on a supported network (see the chain parameter). Use when the user asks what a specific swap (tokens, amount, network) would return, or wants to make one. Not a price feed. Returns the estimated and minimum amount received, slippage, price impact, the fee (feeAmount; the estimate is already net of it), an exit-liquidity warning when selling the token back looks costly or impossible, a short-lived quote ticket, and openInHelmSwapUrl (a link where the user reviews and signs in their own wallet). structuredContent.view has display-ready amounts: use those, don't convert smallest-unit values yourself, and if one is null say it is unavailable. The user already sees a card, so add context instead of repeating every number. Network fees are paid separately in the user's wallet. Read-only: nothing is signed or sent, and no wallet is needed. Use build_swap next only if the user wants the transaction and has given their wallet address. Tokenized stocks are not supported. Perps and prediction markets are not available. Not financial advice.

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": {
      "tokenIn": "<tokenIn>",
      "tokenOut": "<tokenOut>",
      "amountIn": "<amountIn>"
    },
    "name": "get_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoNetwork. chain: 'solana', 'base', 'bnb', 'ethereum', 'robinhood', 'ink', 'hyperevm', 'elysium' or 'arc', or a numeric EVM chainId (default 8453, Base).
chainIdNoEVM chain id. Ignored when chain is 'solana'. Default 8453.
tokenInYesToken to sell: contract address or mint, or a native symbol (ETH, BNB, SOL, HYPE).
amountInYesInteger amount of tokenIn in its smallest unit (for example 10000000 for 0.01 SOL, which has 9 decimals).
referrerNoOptional payout address (EVM 0x or Solana base58) to attribute a disclosed share of the fee. The trader pays the same fee either way.
tokenOutYesToken to buy: contract address or mint, or a native symbol.
slippageBpsNoSlippage tolerance in basis points. Default 50.

Output Schema

NameRequiredDescriptionDefault
feeNoDisclosed fee already reflected in the estimate (feeAmount in the fee token's smallest unit).
liveNo
chainNo'solana' or an EVM chain id.
tokenInNo
amountInNoInteger in tokenIn's smallest unit.
tokenOutNo
warningsNo
expiresAtNoQuote expiry as Unix time in milliseconds.
minOutNetNoMinimum amount out after slippage, smallest unit.
slippageBpsNoSlippage tolerance in basis points.
netOutAmountNoEstimated amount out, smallest unit, already net of the fee.
exitLiquidityNo
priceImpactPctNoPrice impact as a percent number, or omitted if unavailable.
serverBroadcastsNo
openInHelmSwapUrlNohttps://helmswap.com link where the user reviews and signs in their own wallet.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare read-only/idempotent/non-destructive, and the description adds substantially beyond them: quotes are non-binding, the ticket is short-lived, the fee estimate is already net (feeAmount), network fees are paid separately, an exit-liquidity warning may appear, and nothing is signed or requires a wallet. It also warns the user sees a card, so the agent should add context rather than repeat numbers.

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?

Purpose and the key alternative are front-loaded, and nearly every sentence carries operational content (fee netting, exit-liquidity warning, ticket lifetime, output handling). It is dense and reads as a run-on list, but very little could be cut without losing guidance.

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 read-only quote tool with an output schema, this covers everything an agent needs: when to call, what comes back, how to present it, what is unsupported, and which tool to chain into next. No material gap remains relative to its complexity.

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 100%, so the baseline is 3; the description earns extra by explaining that amountIn is in smallest units and that structuredContent.view amounts are display-ready and must not be re-converted, with null meaning unavailable. It also flags the chain default and the referrer's fee-neutral nature only indirectly, so it is not exhaustive on parameter semantics.

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, non-binding quote for swapping one token for another') plus scope (supported network via chain). It explicitly disambiguates from a price feed and routes to build_swap, so an agent can distinguish it from siblings without opening schemas.

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 an explicit trigger ('when the user asks what a specific swap would return, or wants to make one'), an explicit exclusion ('Not a price feed', tokenized stocks, perps, prediction markets), and a named alternative with its precondition ('Use build_swap next only if the user wants the transaction and has given their wallet address'). Nothing is left 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.