Skip to main content
Glama

calculate_dex_slippage_bounds

Compute minimum amountOut bounds using max slippage tolerance to protect DEX swaps from MEV sandwich attacks.

Instructions

Computes minimum amountOut bounds based on maximum slippage tolerance to protect agent swaps from MEV sandwich attacks. (0.01 USDC on Base L2)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYesInput parameters or JSON string payload for the tool execution
paymentSignatureNoBase L2 USDC micropayment signature or transaction hash for x402 settlement

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries full weight. It clarifies that the tool computes bounds rather than executing swaps and hints at a network/payment detail with '(0.01 USDC on Base L2)', but it does not explain side effects, whether on-chain state is read, authentication requirements, or what the caller receives. The parenthetical is cryptic and could mean a fee, a minimum value, or a network context.

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?

The definition is short and front-loaded: one sentence states the computation and purpose. It earns its place, though the parenthetical '(0.01 USDC on Base L2)' is ambiguous and could have been clearer or expanded slightly.

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

Completeness2/5

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

There is no output schema and no annotations, so the description should explain return semantics and call requirements. It leaves the payload structure undefined, does not describe the output format, and does not clarify whether the 0.01 USDC reference is a cost, a threshold, or a chain detail. For a tool that appears to involve micropayment settlement, this is a material gap.

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 the baseline is 3, but the payload parameter is only described as 'Input parameters or JSON string payload for the tool execution,' which is not informative. The tool description adds no parameter-level detail about what should go inside the payload, such as amountIn, slippage tolerance, DEX, or pool identifiers.

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 states a specific action ('Computes minimum amountOut bounds'), the controlling input concept ('maximum slippage tolerance'), and the intended protective purpose ('protect agent swaps from MEV sandwich attacks'). It is reasonably distinguishable from siblings like mev_sandwich_risk_simulator or compute_uniswap_v3_quote, though it does not explicitly name an alternative.

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

Usage Guidelines3/5

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

The purpose phrase implies this is a pre-swap safety check before executing a DEX transaction, but there is no explicit when-to-use or when-not-to-use guidance and no alternative tools are named. An agent must infer the appropriate call context from the MEV mention rather than being told.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools