Skip to main content
Glama

TradingCalc MCP: Options, Forex, Risk Stats, Prediction Markets, On-Chain & Crypto Futures

Bonding Curve

workflow.run_bonding_curve
Read-only

Pump.fun-style bonding curve calculator: exact tokens received for a buy, price impact, and graduation progress. Pure constant-product math (Uniswap V2 style) using pump.fun's official virtual-reserve constants: no live lookup needed, works for any token still on the curve (not yet graduated to a real AMM pool). Edge cases: solRaisedSoFar from 0 up to the graduation amount (a graduated token is out of range); solToSpend above zero. Pure constant-product math with pump.fun virtual-reserve constants, no live lookup. Not covered: the pump.fun trading fee unless stated in the result, slippage from other buyers landing first, tokens that already graduated to a real pool, and other launchpads with a different curve. Use when user asks "how many tokens do I get buying X SOL on this curve?" or "will this buy graduate the token?". Returns: tokensOut, priceImpactPct, progressPctBefore/After, willGraduate, partialFill (true if the buy exceeds remaining curve capacity).

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": {
      "solRaisedSoFar": "<solRaisedSoFar>",
      "solToSpend": "<solToSpend>"
    },
    "name": "workflow.run_bonding_curve"
  }
}

Input Schema

NameRequiredDescriptionDefault
solToSpendYesSOL amount for this buy
solRaisedSoFarYesSOL already raised on the curve so far (0 for a brand-new token)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and destructiveHint=false; the description goes well beyond them by stating no live lookup is needed, explaining the math model (constant-product with pump.fun virtual reserves), defining input edge cases, and enumerating what is NOT modeled (fees, slippage from other buyers, graduated tokens, other launchpads). Those limitations are exactly the kind of honesty an agent needs to avoid over-claiming results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose and the return list are reasonably front-loaded, but the constant-product/virtual-reserve framing is stated twice almost verbatim ("Pure constant-product math (Uniswap V2 style) using pump.fun's official virtual-reserve constants" then "Pure constant-product math with pump.fun virtual-reserve constants, no live lookup"), and graduation is mentioned three separate times. Roughly a quarter of the text could be cut with no loss.

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?

With only two numeric parameters, no nested objects and no output schema, the description supplies what's missing: it enumerates the return fields (tokensOut, priceImpactPct, progressPctBefore/After, willGraduate, partialFill) and explains partialFill's meaning. Nothing needed to call it correctly or interpret the result is absent.

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, and the description earns above that by bounding inputs: solRaisedSoFar is valid across 0 to the graduation amount (graduated tokens out of range) and solToSpend must be above zero. It stops short of describing units or behavior for values near the graduation boundary in more detail.

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 opens with a specific verb+resource+method: "Pump.fun-style bonding curve calculator: exact tokens received for a buy, price impact, and graduation progress." It clearly distinguishes itself from siblings like run_swap_price_impact (AMM pools) and run_token_risk_check by scoping to a pre-graduation launchpad curve with fixed virtual reserves.

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?

It gives an explicit trigger ("Use when user asks 'how many tokens do I get buying X SOL on this curve?' or 'will this buy graduate the token?'") plus clear exclusions for graduated tokens and other launchpads. What it lacks is naming which sibling to use instead when the token has graduated (e.g. an AMM/quoter tool), so the negative cases don't route the agent anywhere.

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.