Skip to main content
Glama

Undertow market liquidity and exit-cost tools

Perpetual funding and fees

crypto_funding_cost
Read-onlyIdempotent

Input perpetual funding/fees, net carry, linear break-even. Constant-rate scenario, not 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": {
      "notional_usd": "<notional_usd>",
      "side": "<side>",
      "rate_bps_per_settlement": "<rate_bps_per_settlement>",
      "settlements": "<settlements>"
    },
    "name": "crypto_funding_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideYes
settlementsYes
notional_usdYes
round_trip_fee_bpsNo
rate_bps_per_settlementYes1 bp = 0.01%; positive rate means longs pay shorts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / side / type
      Added value: +"string"
  2. Added

TDQS

C2.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world, so the safety profile is covered. The description contributes the modeling assumption (constant rate, deterministic linear break-even, not a forecast), which is genuine value beyond annotations, but it never states what the tool returns or in what units.

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

Conciseness3/5

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

Two very short sentences with no padding, but the compression crosses into telegraphic: 'Input perpetual funding/fees, net carry, linear break-even' is a noun list rather than a clear statement of what the tool does, forcing the agent to reconstruct the meaning.

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

Completeness2/5

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

With five parameters, four required, 20% schema coverage and no output schema, the definition should explain inputs and expected results. The description is too thin for that complexity — an agent cannot tell what it gets back or how settlements and fees combine.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 20% — just rate_bps_per_settlement (bp convention, sign meaning) is documented. The description does not compensate: it says nothing about side, settlements count, notional_usd, or round_trip_fee_bps, leaving four parameters to be guessed from their names alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the domain (perpetual funding/fees, net carry, linear break-even), which lets an agent infer it computes funding cost for a perp position. However, the leading verb is literally 'Input', so the actual operation (compute/calculate) is only implied, and nothing distinguishes it from siblings like exit_cost or crypto_exit_check.

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

Usage Guidelines3/5

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

'Constant-rate scenario, not forecast' is a real scope caveat that tells the agent when this model is appropriate and warns against treating it as a projection. It stops short of naming an alternative tool or stating prerequisites, so usage is implied rather than directed.

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.