Skip to main content
Glama

Dinero en la Mesa — Perp DEX costs & funding

What your farming budget buys on each perp DEX (Pro, 0.5 USDC)

farming_route
Read-onlyIdempotent

PAID: 0.5 USDC on Base per route (free if no venue gives a figure), via x402 (no account; an x402-enabled client pays automatically). For your weekly budget and order size: on every perp DEX with a published weekly points pool, the volume it buys at the all-in cost of your size on the live book (fees + slippage), the share of this week's pool that takes once your own volume dilutes it, and the same with limit orders if they fill. Points of different venues are not comparable and are never summed. Use it once you know your weekly budget; for a quick comparison of venues, use cost_per_point.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "farming_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
pairNoBase asset of the perpetual, e.g. BTC
trade_size_usdNoYour order size, USD notional (default 10000)
weekly_budget_usdNoWhat you will spend on trading costs this week, USD (default 500)
monthly_volume_usdNoYour 30-day volume in USD, to pick your fee tier (default 0)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / monthly_volume_usd
      Added value: +{
      +  "description": "Your 30-day volume in USD, to pick your fee tier (default 0)",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / pair
      Added value: +{
      +  "description": "Base asset of the perpetual, e.g. BTC",
      +  "enum": [
      +    "BTC",
      +    "ETH",
      +    "SOL",
      +    "XRP",
      +    "BNB",
      +    "DOGE",
      +    "HYPE",
      +    "SUI",
      +    "LINK",
      +    "AAVE",
      +    "ENA",
      +    "LTC"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / trade_size_usd
      Added value: +{
      +  "description": "Your order size, USD notional (default 10000)",
      +  "minimum": 100,
      +  "type": "number"
      +}
    • addedInput schema / properties / weekly_budget_usd
      Added value: +{
      +  "description": "What you will spend on trading costs this week, USD (default 500)",
      +  "minimum": 10,
      +  "type": "number"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/non-destructive, and the description goes well beyond them: exact price (0.5 USDC on Base per route), the free-if-no-venue-has-a-figure fallback, the x402 payment flow with no account required, and the semantic caveat that points across venues are never comparable and never summed. That is material behavior an agent cannot infer from the annotations.

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?

Pricing and the x402 condition are front-loaded where an agent needs them first, and the compute-and-caveat sentences are dense but purposeful. It is a long single block; a short split between what it returns and what it costs would read faster, but no sentence is 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?

With no output schema, the description carries the return burden and does so: per-venue volume bought at fees-plus-slippage, this week's pool share after self-dilution, and the limit-order variant. Cost, payment, and cross-venue non-comparability are all covered, leaving nothing essential unresolved for a read-only calculation tool.

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 the baseline is 3. The description reinforces the meaning of weekly budget and order size ('the all-in cost of your size on the live book') but says nothing about monthly_volume_usd or its fee-tier role, so it adds little beyond the schema.

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 names a concrete resource — per-venue figures for what a weekly budget buys in volume and pool share on each perp DEX — and explicitly separates itself from cost_per_point. The verb is implicit ('what your budget buys' rather than 'computes/returns'), which slightly blunts the 5-level specificity, but an agent can still tell exactly what this produces.

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?

It states the prerequisite ('use it once you know your weekly budget') and names the alternative for a different need ('for a quick comparison of venues, use cost_per_point'). That is explicit when-to-use plus routing to a sibling, which is the top of this scale.

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