Skip to main content
Glama

Vectorial Data Terminal: Hyperliquid, Polymarket & yield for AI agents

protect_position

Attach post-hoc reduce-only TP/SL triggers to an open position. Paper executes immediately.

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": {
      "market": "<market>"
    },
    "name": "protect_position"
  }
}

Input Schema

NameRequiredDescriptionDefault
slNoStop-loss trigger price in USD
tpNoTake-profit trigger price in USD
marketYesSymbol of the open position, e.g. BTC

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / market / description
      Added value: +"Symbol of the open position, e.g. BTC"
    • addedInput schema / properties / sl / description
      Added value: +"Stop-loss trigger price in USD"
    • addedInput schema / properties / tp / description
      Added value: +"Take-profit trigger price in USD"
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only declare the generic mutable/non-destructive/open-world profile; the description adds real behavioral context beyond them: the triggers are reduce-only (cannot increase exposure), they are attached after the fact (a position must already exist), and in paper mode execution is immediate. It does not warn that the call is non-idempotent, i.e. that repeated calls stack duplicate triggers, which is the one notable omission.

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?

Two short, front-loaded sentences with no redundancy; the core action comes first and the paper-mode caveat follows. The second sentence is terse to the point of being cryptic about what 'executes immediately' actually means for the caller.

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

Completeness3/5

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

For a three-parameter mutation with no output schema, the description leaves the caller guessing about what is returned (trigger IDs?), what happens in live versus paper mode (does it need authorize_trading_key or go through submit_order?), and whether an existing position is validated. These are material gaps for a trading-side tool.

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 schema already explains market/tp/sl including USD units, so the baseline is 3. The description adds only the reduce-only framing and does not clarify whether tp and sl may be supplied individually or both omitted, which is the main ambiguity in a schema where only market is required.

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 names a specific verb ('Attach') and resource ('reduce-only TP/SL triggers to an open position'), which is clearly distinct from place_order or close_position. It stops short of naming the sibling it complements (e.g., place_order) or the one it is often confused with (close_position), so differentiation is implicit.

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?

'post-hoc' implies this is used after a position already exists, and 'Paper executes immediately' hints at mode-dependent behavior. It gives no explicit when-not-to-use guidance and does not point at alternatives for setting TP/SL at entry time (place_order/submit_order), leaving the routing decision to inference.

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.