Skip to main content
Glama

Quote Sell

quote_sell
Destructive

Bonding-curve SELL 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_sell"
  }
}

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 token amount to sell in the simulation, in the same units as token_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 token amount to sell in the simulation, in the same units as token_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.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is carried structurally. The description adds the curve model, but omits the two behaviors an agent most needs: that no trade executes, and that a call may settle a real USDC charge with repeated paid calls charging again. The '$0.001 USDC' fragment hints at cost but does not explain the payment settlement behavior that justifies the destructive/non-idempotent hints.

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 terse fragments, front-loaded with the identifying information and zero filler. The trailing '$0.001 USDC' clause is efficient but under-labeled, reading as a bare price rather than a stated condition, so a small amount of the brevity costs clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Output schema exists and parameter semantics are fully covered by the schema, so the description need not explain return values or inputs. What remains unaddressed is the paid-call/payment model and the simulation-only nature of the tool, both material for a tool annotated as destructive and open-world.

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% and every parameter (fee_bps, payment, amount_in, quote_reserves, token_reserves) is documented in the schema, so the schema does the heavy lifting. The description adds no unit conventions, defaults, or payment-payload guidance beyond what the schema already states, which is the expected baseline when coverage is complete.

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?

Specific verb+resource ('Bonding-curve SELL quote') plus the pricing model ('constant product, virtual reserves'), which distinguishes it from the sibling quote_buy by direction and by model. It stops short of explicitly naming quote_buy as the buy-side counterpart, so the contrast is inferred rather than stated.

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?

No when-to-use or when-not-to-use guidance at all. There is no mention that this is a simulation only, no pointer to quote_buy or precheck/verdict as alternatives, and no statement of prerequisites (e.g., supplying reserves before swapping). The only usage-adjacent content is the '$0.001 USDC' price tag, which is an unlabeled fragment rather than guidance.

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