Skip to main content
Glama

Estimated output, price impact and minimum output

agent_intel_dex_depth_slippage_calculator
Read-only

Estimated output, price impact and minimum output for a swap in one DEX pair, using the pair's reserves from DexScreener and a constant-product (x*y=k) model with a fee. Exact for constant-product pools (for example Aerodrome volatile pools, Uniswap V2 style); for concentrated-liquidity pools (labelled v3 or v4) it is only an approximation. Raydium is not covered. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

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": {
      "pair": "<pair>",
      "amount": "<amount>"
    },
    "name": "agent_intel_dex_depth_slippage_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
pairYesPair (pool) address
sideNosell = you give the base token; buy = you give the quote token (default sell)
chainNoDexScreener chain name, e.g. base, ethereum, arbitrum (default base)
amountYesAmount you give, in that token's units (positive number)
feePctNoPool fee in percent, 0 to 5 (default 0.3)
slippagePctNoYour tolerance in percent, 0 to 50 (default 0.5)

Output Schema

NameRequiredDescriptionDefault
dexNo
pairNo
sideNo
chainNo
modelNo
feePctNo
sourceNo
spotOutNo
amountInNo
reservesNo
checkedAtNo
baseSymbolNo
quoteSymbolNo
slippagePctNo
estimatedOutNo
priceImpactPctNo
minOutAtSlippageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond readOnlyHint/openWorldHint it discloses the data source (DexScreener reserves), the modeling assumption and its accuracy limits, and the billing behavior: $0.002 per successful call via x402, with failed calls uncharged. The cost and failure-charging rules are things an agent cannot learn from annotations or schema.

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?

Purpose is front-loaded and the accuracy caveats follow logically. Slightly verbose in the payment clause enumerating networks ('Base, Solana and 10 more networks'), which could be trimmed without losing meaning.

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?

For a read-only calculation tool with a rich 6-parameter schema and an output schema, everything an agent needs is present: what model is used, where reserves come from, where the estimate breaks down, chains not supported, and the cost of a call. Return-value shape is covered by the output schema, so no gap remains.

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 each parameter is already documented (pair address, side semantics, chain defaults, amount units, feePct and slippagePct ranges). The description adds only ambient context — that the fee feeds the model and slippagePct drives the minimum output — without new syntax or format details, so the baseline 3 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?

States a specific computation with named outputs (estimated output, price impact, minimum output) scoped to a single DEX pair, plus the exact method used (constant-product x*y=k with a fee). An agent can tell immediately this is a swap-simulation tool, distinct from the detection/audit siblings.

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?

Gives explicit applicability boundaries: exact for constant-product pools (Aerodrome volatile, Uniswap V2 style), approximate for pools labelled v3/v4, and Raydium not covered at all. This is strong when-to-use/when-not guidance; it stops short of naming an alternative tool for the concentrated-liquidity case.

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