Skip to main content
Glama

Dinero en la Mesa — Perp DEX costs & funding

Best delta-neutral funding pair, net of costs

delta_neutral
Read-onlyIdempotent

Free, one answer: the best long/short venue couple for one pair to collect the funding gap, net of opening and closing both legs at market, from a reading up to 15 minutes old. Use it for a quick check on a single pair; use delta_neutral_scanner to scan every pair and venue couple every minute, with how long each gap usually lasts. Rates change every hour: a snapshot, not a forecast.

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

Input Schema

NameRequiredDescriptionDefault
daysNoHolding days (default 7)
pairYesBase asset of the perpetual, e.g. BTC
size_usd_per_legNoUSD per leg (default 10000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered. The description still adds real context beyond that: the answer is free, data can be up to 15 minutes stale, and costs include opening and closing both legs at market. It stops short of describing the response shape or what happens when no profitable pair exists.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the core answer and then the routing rule and the freshness caveat. Every clause adds information and none repeats the title or the schema.

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 a three-parameter read tool with no output schema, the definition covers cost model, data staleness, and the sibling alternative well. The main gap is that it never indicates what the returned answer contains beyond "one answer", so an agent cannot anticipate the result fields.

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 three parameters, including the pair enum and the size default, are already documented. The description reinforces that costs are netted across both legs, which hints at why size_usd_per_leg matters, but it never mentions the holding-period parameter (days) at all, so the schema still carries the burden.

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 states a specific verb and resource: it returns the single best long/short venue couple for one pair to capture the funding gap, net of round-trip costs. It also explicitly distinguishes itself from delta_neutral_scanner, so an agent can route between them without opening either 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?

It gives an explicit when-to-use ("a quick check on a single pair") and names the alternative plus the condition that selects it (scanning every pair/venue couple every minute, with gap duration). It also warns that rates change hourly and the result is a snapshot, not a forecast, which sets expectations about repeated calls.

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