Skip to main content
Glama

ExactJSON — Live, deterministic x402 APIs for AI agents

exactjson_execution_quote_check

Read-onlyIdempotent

Paid ($0.01 USDC): Pre-trade execution and slippage simulator across USD size tiers ($1k/$10k/$50k+) for EVM DEX swaps (KyberSwap Aggregator + DEX Screener) or Hyperliquid perpetual L2 books, returning price impact bps, max size under 100bps, and liquidity grade. Informational market/security data only; not financial advice.

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": {
      "mode": "<mode>"
    },
    "name": "exactjson_execution_quote_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
coinNoRequired when mode=perps: Hyperliquid ticker symbol (e.g., BTC, ETH, SOL).
modeYesRequired mode: 'perps' (Hyperliquid L2 orderbook) or 'evm' (KyberSwap DEX aggregator).
sideNoOptional when mode=perps: 'buy', 'sell', or 'both' (default 'both').
chainNoOptional when mode=evm: base (default), ethereum, arbitrum, optimism, polygon, or bsc.
token_inNoOptional when mode=evm: source ERC-20 token address (defaults to native USDC on chain).
sizes_usdNoOptional comma-separated USD tiers (up to 3 for evm, 4 for perps; e.g. '1000,10000,50000').
token_outNoRequired when mode=evm: destination ERC-20 token address (0x...).
token_in_decimalsNoOptional when mode=evm: decimals (0-18) required only for custom non-registry token_in.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds genuinely new context the annotations cannot convey: a $0.01 USDC paid cost, the upstream data providers, and the returned metrics. It omits latency/rate-limit behavior and failure modes, keeping it below 5.

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 sentences, dense but purposeful, with the paid cost and capability up front and the disclaimer last. The first sentence is heavily packed with parentheticals, which slightly hurts scannability, but no sentence is filler.

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

Completeness4/5

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

For an eight-parameter tool with no output schema, the description does the heavy lifting: it names the data sources, the output metrics, the cost, and the informational-only disclaimer. Detailed response shape and per-mode error behavior are the remaining gaps, but an agent has enough to call it correctly.

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 coverage is 100%, so all eight parameters are already documented, and the description largely restates the same information (size tiers, two modes, token direction) at a higher level. It adds modest framing — that sizes are USD tiers of $1k/$10k/$50k+ — but no syntax or default behavior beyond the schema.

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 names a specific capability — a pre-trade execution and slippage simulator — and scopes it to two concrete data sources (KyberSwap Aggregator/DEX Screener and Hyperliquid L2 books). It also enumerates the outputs (price impact bps, max size under 100bps, liquidity grade), so an agent can tell this apart from snapshot/screener siblings without opening the schema.

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?

'Pre-trade' explicitly frames the moment of use: check execution cost before sizing a swap or perp order. It also implicitly routes between the two modes via the perps/EVM source listing. It stops short of naming alternatives or stating when-not to use it (e.g., versus a plain perps snapshot), so it falls short of a 5.

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.