Skip to main content
Glama

Get quote

get_quote
Read-only

Price a buy or sell from the token's live on-chain bonding curve, including the 1% fee, price impact and minimum output. Sends nothing. If partialFill is true, the buy would complete the curve and solCharged is what would actually be spent.

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>",
      "amount": "<amount>"
    },
    "name": "get_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
mintYesToken mint address (base58)
sideYesTrade direction
amountYesPositive integer as a string. buy: SOL in lamports (1 SOL = 1000000000). sell: raw token units (6 decimals, 1 token = 1000000)
slippageBpsNoSlippage tolerance in basis points, up to 500 (5%). Default 100 (1%). A sandwich bot can take up to the whole tolerance, so keep it tight

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / slippageBps / description
      Previous value: -"Slippage tolerance in basis points. Default 300 (3%)"New value: +"Slippage tolerance in basis points, up to 500 (5%). Default 100 (1%). A sandwich bot can take up to the whole tolerance, so keep it tight"
    • changedInput schema / properties / slippageBps / maximum
      Previous value: -5000New value: +500
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already establish readOnlyHint=true and destructiveHint=false, and the description reinforces this with 'Sends nothing.' It adds useful behavioral detail beyond annotations: the quote includes the 1% fee, price impact, minimum output, and special partialFill/solCharged semantics.

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?

The description is two tightly written sentences with no waste. The core action and read-only nature are front-loaded, followed by an important edge case.

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?

There is no output schema, so the description carries the burden of explaining return semantics. It identifies the key outputs (fee, price impact, minimum output, partialFill, solCharged) and clarifies the read-only behavior, making it complete enough for an agent to call correctly.

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%, so all four parameters are already well documented in the schema, including amount units and slippage semantics. The description adds little parameter-specific detail beyond restating buy/sell context, so the baseline score 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?

The description states a specific verb and resource: it prices a buy or sell from the token's live on-chain bonding curve. It also distinguishes itself from execution-oriented siblings by explicitly saying 'Sends nothing,' so an agent can tell this is a quote tool rather than prepare_trade.

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

Usage Guidelines4/5

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

The description gives clear context that this is a read-only pricing operation and does not send anything, which implies when to use it versus an execution tool. However, it does not explicitly name prepare_trade as the alternative or spell out exclusions.

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