Skip to main content
Glama

Dinero en la Mesa — Perp DEX costs & funding

Funding rates across perp DEXs

funding_rates
Read-onlyIdempotent

Current funding rate of a perpetual on each perp DEX, normalised to 8 hours and annualised, with open interest and 24h volume when published. Use it to see who pays and who receives funding on each venue; for the best long/short couple net of costs, use delta_neutral.

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": "funding_rates"
  }
}

Input Schema

NameRequiredDescriptionDefault
pairYesBase asset of the perpetual, e.g. BTC

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/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 and open-world, so the safety profile is covered. The description adds genuine behavioral context beyond that: rates are normalised to 8 hours and annualised, and open interest / 24h volume are only present 'when published', warning the agent about nullable fields. It does not discuss venue coverage or failure behaviour, keeping it short of a 5.

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?

Two dense sentences with no filler: the first defines the returned data, the second routes to the correct tool. The key scoping information is front-loaded.

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?

No output schema exists, so the description carries the return-value burden and does so adequately (rate, open interest, volume, normalisation). For a one-parameter read-only tool that is essentially complete, though it could name the set of covered venues rather than saying 'each perp DEX'.

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?

Single enum parameter with 100% schema description coverage, so the schema already explains the base asset selector. The description implies the pair determines which perpetual is queried across all venues but adds no format or semantics beyond the schema; baseline 3 applies.

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?

Names a specific resource (perpetual funding rate) with the exact scope (each perp DEX) and normalisation convention (8h, annualised), plus the supplementary fields returned (open interest, 24h volume). An agent can distinguish this from a single-venue or cost-focused tool 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 Guidelines5/5

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

Explicitly states the use case (see who pays and who receives funding per venue) and names the alternative tool plus the condition that selects it (best long/short couple net of costs → delta_neutral). Both when-to-use and when-to-use-something-else are covered.

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