Skip to main content
Glama

set_position_tp_sl

Destructive

Use this when the user asks to set or update take-profit / stop-loss on an open Hyperliquid position. Replaces any existing TP/SL triggers for that coin.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesCoin symbol of the open position, e.g. BTC
stop_lossNoNew stop-loss trigger price
take_profitNoNew take-profit trigger price

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already mark this as destructive and non-read-only, and the description adds valuable behavioral context by stating that existing TP/SL triggers are replaced. This goes beyond the annotation by specifying exactly what gets overwritten, which is particularly useful for a mutation tool.

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

Conciseness5/5

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

Two short sentences carry all essential information: when to use the tool and what behavioral side effect to expect. There is no fluff or repetition of schema details, and the most important usage guidance is front-loaded.

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?

The description is complete for the core use case: it states the trigger condition, the action, and the destructive overwrite behavior. It could additionally clarify return behavior or what happens when only one of stop_loss or take_profit is provided, but the schema and annotations cover enough that an agent can invoke it correctly.

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 description coverage is 100%, so the parameters are already well documented in the input schema. The description does not add significant parameter-level detail, but it does reinforce that stop_loss and take_profit are trigger prices on an open position. This meets the baseline for fully covered schemas.

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

Purpose5/5

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

The description states a specific action ('set or update take-profit / stop-loss') on a specific resource ('open Hyperliquid position'), and adds the defining behavior 'replaces any existing TP/SL triggers'. This makes it clearly distinguishable from sibling tools like place_order or close_position without needing to open their schemas.

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

Usage Guidelines4/5

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

The description gives an explicit trigger condition: 'Use this when the user asks to set or update take-profit / stop-loss on an open Hyperliquid position.' It lacks an explicit when-not-to-use or mention of alternatives, but the clear scope is sufficient for an agent to route correctly in most cases.

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.

TDQS

A4.3/5.0
Disambiguation5/5

Each tool maps to a distinct resource/action: market data, account state, resting orders, audit records, fills, order placement, and risk management. The only close pair, preview_order and place_order, is clearly delineated as validation vs execution.

Naming Consistency5/5

All tool names follow a consistent snake_case verb_noun pattern (get_, place_, cancel_, close_, set_). The object names are uniform and predictable, making the set easy to navigate.

Tool Count5/5

13 tools is well-scoped for a trading server: market data, account/order queries, execution, and position risk each have coverage without redundancy or bloat.

Completeness4/5

The surface covers the core trading lifecycle: market data, account, preview/place/cancel, close position, TP/SL, and historical records. Minor gaps exist (e.g., no modify-order operation and no standalone position detail endpoint), but agents can work around them via cancel/replace and get_my_account.

Resources