Skip to main content
Glama

LiveLaunch

Quote buy or sell

get_quote
Read-onlyIdempotent

Quote a buy (amount is SOL) or a sell (amount is tokens). Returns expectedOut, minOut, the pool fee, and poolFee.protectionEndsAt. Does not build or send a transaction.

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": {
      "mint": "<mint>",
      "side": "<side>"
    },
    "name": "get_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
mintYesBase58 Solana address. A public key, never a private key.
sideYes
amountNoBuy: SOL, e.g. 0.1. Sell: token UI amount. Optional when lamports or tokenAmountRaw is set.
walletNoTrader public key. The streamer fee is skipped when this wallet is the streamer.
lamportsNoBuy only: SOL amount in lamports.
slippageBpsNoSlippage in basis points. 300 = 3%. Default 300.
tokenAmountNoSell: token UI amount. Same as amount.
tokenAmountRawNoSell: token amount in base units.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds real value by listing return fields (expectedOut, minOut, pool fee, poolFee.protectionEndsAt) and clarifying that no transaction is constructed. It still says nothing about quote staleness/validity window beyond naming protectionEndsAt, or about failure modes for invalid mints.

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?

Two tight sentences: the core semantics (scoping of amount by side) come first, the return summary second, and the boundary condition last. No filler.

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 8 parameters and no output schema, the description does useful work by naming the key return fields, so an agent knows what a quote yields. It is nearly complete; the main omission is whether quotes expire or must be re-fetched before building a transaction.

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 88%, so the schema already documents nearly every parameter, including the SOL-vs-token unit distinction that the description repeats. The description adds no new parameter-level meaning (e.g. how amount interacts with lamports/tokenAmountRaw, or wallet's fee-skip behavior), so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (quote) and resource (buy/sell), and pins down the unit of `amount` per side (SOL for buy, tokens for sell). The closing clause 'Does not build or send a transaction' implicitly separates it from build_buy_tx/build_sell_tx, though those siblings are not named.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The buy/sell split gives implied usage context, and the negative statement about not building transactions hints this is a preflight step. However, there is no explicit 'call this before build_buy_tx' guidance, no statement about quote freshness or when a quote is unnecessary.

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.