Skip to main content
Glama

Undertow market liquidity and exit-cost tools

Exit cost at your size, per venue

exit_cost
Read-onlyIdempotent

BTC nearest-rung sell estimates; interpolated bid-depth bands. Fees excluded; not executable. One size, default freshness.

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

Input Schema

NameRequiredDescriptionDefault
size_usdNoposition size in USD (published rungs run $1,000 to $1,000,000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / size_usd / description
      Previous value: -"position size in USD (published rungs run $1,000 to $1,000,000; nearest rung is used)"New value: +"position size in USD (published rungs run $1,000 to $1,000,000)"
  2. Changed1 schema field changed
    • addedInput schema / properties / size_usd / exclusiveMinimum
      Added value: +0
  3. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavioral caveats beyond that: fees are excluded, values are interpolated rather than observed, and the result is not executable — but it says nothing about precision, staleness windows, or how interpolation behaves at the rung boundaries.

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?

The description is front-loaded and free of padding, which is a virtue at three short clauses. However, the telegraphic semicolon style ('Fees excluded; not executable. One size, default freshness.') reads as note fragments and requires the agent to reconstruct what each clause modifies.

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 one-parameter, read-only estimate tool with no output schema and full annotation coverage, the description covers the essentials: what is estimated, that it is interpolated, that fees are excluded, and that it is non-executable. The main omission is any hint of the return structure (per-venue rows, band bounds), which matters more here because no output schema exists.

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 single size_usd parameter and its $1,000–$1,000,000 rung range are already documented. The phrase 'One size, default freshness' usefully signals there is no freshness/timestamp parameter and only one size dimension, but it adds no format or interpretation detail 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 gives a concrete resource and computation: 'BTC nearest-rung sell estimates; interpolated bid-depth bands', which tells an agent this returns estimated exit/sell pricing from order-book depth rather than a traded price. It does not restate the title's 'per venue' dimension, so the multi-venue output shape is only inferable from the title rather than the description.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance and no named alternative among siblings such as crypto_exit_check or exit_atlas. The fragments 'not executable' and 'default freshness' hint at limits but do not tell an agent which tool to pick for an actual executable quote or a freshness-controlled estimate.

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.