Skip to main content
Glama

Quote Buy

quote_buy
Destructive

Bonding-curve BUY quote (constant product, virtual reserves). $0.001 USDC.

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": {
      "quote_reserves": "<quote_reserves>",
      "token_reserves": "<token_reserves>",
      "amount_in": "<amount_in>"
    },
    "name": "quote_buy"
  }
}

Input Schema

NameRequiredDescriptionDefault
fee_bpsNoSimulated trading fee in basis points; 100 means 1 percent. Curve simulation requires at least 0 and less than 10000. This is not the CurveCall API charge.
paymentNoOptional base64-encoded x402 payment payload returned by an authorized payment client, not a private key or API token. Omit to receive payment requirements. A successful authorized call may settle a USDC charge; repeated paid calls may charge again.
amount_inYesPositive amount of quote asset to spend in the simulation, in the same units as quote_reserves. No trade is executed.
quote_reservesYesPositive virtual reserve amount of the quote asset in consistent human-readable asset units, not USD unless the quote asset is USD-denominated.
token_reservesYesPositive virtual token reserve amount in human-readable token units, consistent with the amount supplied.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / amount_in / description
      Added value: +"Positive amount of quote asset to spend in the simulation, in the same units as quote_reserves. No trade is executed."
    • addedInput schema / properties / fee_bps / description
      Added value: +"Simulated trading fee in basis points; 100 means 1 percent. Curve simulation requires at least 0 and less than 10000. This is not the CurveCall API charge."
    • addedInput schema / properties / payment / description
      Added value: +"Optional base64-encoded x402 payment payload returned by an authorized payment client, not a private key or API token. Omit to receive payment requirements. A successful authorized call may settle a USDC charge; repeated paid calls may charge again."
    • addedInput schema / properties / quote_reserves / description
      Added value: +"Positive virtual reserve amount of the quote asset in consistent human-readable asset units, not USD unless the quote asset is USD-denominated."
    • addedInput schema / properties / token_reserves / description
      Added value: +"Positive virtual token reserve amount in human-readable token units, consistent with the amount supplied."
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, which is counterintuitive for something called a 'quote'; the '$0.001 USDC' fragment is the only hint that the destructive flag comes from a settlement charge. The description does not state that no trade is executed, that repeated paid calls may charge again, or that omitting payment returns requirements — those live only in the schema, so the added behavioral value is modest.

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?

Two short fragments, front-loaded with the operation and curve type, and the cost is stated immediately. The telegraphic style ('$0.001 USDC.') is efficient but borders on under-specification rather than tight prose.

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?

Output schema exists, so return values needn't be described. The description covers what the tool computes, the curve model, and the price, which is sufficient for a quote tool whose parameter semantics are fully carried by a 100%-covered schema. The unresolved oddity of destructive annotations on a quote is a transparency concern rather than a completeness gap in the call contract.

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 fee_bps, payment, amount_in, and both reserve parameters are already fully documented in structured fields. The description contributes nothing about units, the default fee of 100 bps, or the optional payment parameter, 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?

The description names a specific operation ('Bonding-curve BUY quote') and pins down the pricing model ('constant product, virtual reserves'), which is enough to separate it from quote_sell. It stops short of explicitly naming the sell-side sibling as the alternative, but the BUY qualifier carries the distinction.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no statement about prerequisites (reserves must be supplied), and no routing to precheck, quote_sell, or bundle_check. The only usage signal is the capitalized BUY in the parenthetical, which is implicit at best.

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