Skip to main content
Glama

Undertow market liquidity and exit-cost tools

PIT-bound exact-rung paper exit context

trade_safety_exit_context
Read-onlyIdempotent

Exact-rung BTC/USD observe/paper: request hash, PIT source/rights, level-free peg, bid bands, approved venue clocks, startup SHA. No live mode/clearance.

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": {
      "request_hash": "<request_hash>",
      "mode": "<mode>",
      "instrument": "<instrument>",
      "side": "<side>",
      "venue": "<venue>",
      "requested_size_usd": "<requested_size_usd>"
    },
    "name": "trade_safety_exit_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
sideYes
venueYes
instrumentYes
request_hashYesOpaque complete-request hash
requested_size_usdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / instrument / type
      Added value: +"string"
    • addedInput schema / properties / mode / type
      Added value: +"string"
    • removedInput schema / properties / requested_size_usd / description
      Removed value: -"Exact published USD rung"
    • addedInput schema / properties / side / type
      Added value: +"string"
  2. First observed

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior. The description adds the important constraint 'No live mode/clearance' and names PIT source/rights and approved venue clocks, but it does not explain failures, authentication needs, or what guarantees the returned context provides.

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?

The description is compact and front-loads the BTC/USD observe/paper scope. Its telegraphic noun list is efficient in length, though the jargon makes it less readable; there is no obvious filler.

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?

For a six-parameter required-input tool with no output schema and low schema coverage, the description is too thin: it lists a few context elements but does not define return semantics or parameter meaning. It leaves too much for the agent to infer before invoking the tool.

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 17%, so the description needs to clarify the six required parameters. It mentions request hash and the BTC/USD observe/paper scope, but says nothing meaningful about side, venue, or requested_size_usd beyond what the schema already encodes.

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 scopes the tool to exact-rung BTC/USD observe/paper and enumerates context elements such as request hash, PIT source/rights, bid bands, and venue clocks. However, it never states a clear verb or explicitly says what operation is performed, so an agent can only infer that it returns safety context. The purpose remains vague and jargon-heavy.

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?

It signals that the tool is for observe/paper use and explicitly excludes live mode/clearance, which provides a usage boundary. But it gives no explicit when-to-use guidance against siblings such as crypto_exit_check or exit_cost, and no prerequisites are stated.

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.