Skip to main content
Glama

Dinero en la Mesa — Perp DEX costs & funding

Cheapest perp DEX for a trade

best_venue
Read-onlyIdempotent

Quick answer: the single cheapest decentralised perpetual exchange right now to open and close one market order of your size, taker fees on both legs plus slippage walked on the live order book, across 28 perp DEXs (Hyperliquid, Lighter, Aster, Extended, Paradex…). Returns the winner, its cost in USD and the runner-up, every figure with its time and source. Use it when you only need where to trade; use trading_cost for every venue ranked, or execution_plan to split a large order across several.

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>",
      "size_usd": "<size_usd>"
    },
    "name": "best_venue"
  }
}

Input Schema

NameRequiredDescriptionDefault
pairYesBase asset of the perpetual, e.g. BTC
size_usdYesOrder size in USD (notional)
monthly_volume_usdNoYour 30-day trading volume in USD, to pick your fee tier (default 0)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare it a read-only, idempotent, open-world, non-destructive lookup, so safety is covered. The description adds real behavioral context on top: 28 venues scanned, both legs of taker fees, slippage walked on the live order book, and a return of winner, USD cost, runner-up, each with timestamp and source.

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?

Front-loaded with 'Quick answer' and the core scope, then the routing alternatives. The parenthetical venue roll-call ('Hyperliquid, Lighter, Aster…') is decorative, but the rest of the paragraph carries no filler.

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?

Although there is no output schema, the description explains what comes back (winner, cost in USD, runner-up, with time and source) and what the cost includes. For a three-parameter, read-only lookup this leaves no material gap for an agent calling it.

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 pair, size_usd and monthly_volume_usd are already documented in structured data. The description reinforces that size is a single market order and that fees are taker-side, but says nothing about how monthly_volume_usd selects a fee tier, which is the one parameter whose effect is non-obvious.

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 verb and resource: the single cheapest perp DEX to open and close one market order of a given size, including the cost model (taker fees both legs plus order-book slippage). It explicitly distinguishes itself from the ranked-list and order-splitting siblings, so an agent can choose without opening any schema.

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

Usage Guidelines5/5

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

Names the exact condition to use it ('when you only need where to trade') and names both alternatives with their own conditions: trading_cost for every venue ranked and execution_plan for splitting a large order. This is explicit when-to-use and when-to-use-something-else 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