Skip to main content
Glama

Undertow market liquidity and exit-cost tools

Stress a crypto portfolio

crypto_portfolio_stress
Read-onlyIdempotent

Linear input shocks, 20 exposures: P&L/equity, asset/venue concentration. Symbols label scenarios. No liquidation/probability model.

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": {
      "equity_usd": "<equity_usd>",
      "positions": "<positions>"
    },
    "name": "crypto_portfolio_stress"
  }
}

Input Schema

NameRequiredDescriptionDefault
positionsYes
equity_usdYes

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds genuinely non-redundant behavioral context: the model is linear only, capped at 20 exposures, and explicitly excludes liquidation and probability modeling, plus the note that symbols are labels rather than tradable identifiers. It still says nothing about the shape of the returned P&L/equity or concentration output.

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?

Four short clauses, front-loaded with the core computation, and no filler. The telegraphic noun-pile style ("Linear input shocks, 20 exposures: P&L/equity, asset/venue concentration") costs some readability, but every clause carries information.

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?

There is no output schema and 0% schema coverage on a nested five-field positions object, yet the description never explains the inputs or what the stress result contains. For a quantitative modeling tool whose behavior is entirely determined by its input semantics, this leaves the agent guessing at how to construct a valid call.

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 0%, so the description carries the full burden and largely fails it. "20 exposures" maps to the positions maxItems and "symbols label scenarios" loosely explains the asset field, but equity_usd, side, notional_usd, price_change_pct, cost_usd, and venue are never explained — notably price_change_pct is the shock input the whole tool hinges on.

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 conveys a specific computation: linear input shocks applied to up to 20 exposures, producing P&L/equity and asset/venue concentration. It is decodable but written as compressed notes rather than a clean verb+resource statement, and it never names a sibling to distinguish itself from tools like venue_concentration 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?

"No liquidation/probability model" sets a scope boundary, implying the tool is for deterministic linear shocks only, which is a partial when-not signal. There is no positive when-to-use guidance and no routing to alternatives, so an agent must infer the selection conditions from the model's limitations.

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.