Skip to main content
Glama

strategy_stoploss_create

Destructive

Create a stop-loss / take-profit / trailing-stop monitor on a held position.

position_amount is base units of target_token to liquidate on trigger. At least one of stop_loss_pct / take_profit_pct / a trailing config should be set (fractions, e.g. 0.15 == 15%).

Direction (optional, deterministic signal): direction_mode / allow_short / regime_override -- see strategy_dca_create.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
riskNo
trailingNo
allow_shortNo
entry_priceNo
slippage_bpsNo
source_tokenNoUSDC
target_tokenYes
stop_loss_pctNo
direction_modeNo
wallet_addressYes
position_amountYes
regime_overrideNo
take_profit_pctNo
interval_secondsNo
trailing_distance_pctNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A3.6/5.0
Behavior3/5

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

Annotations mark this as destructive (destructiveHint: true) and non-read-only (readOnlyHint: false). The description adds that position_amount is 'base units of target_token to liquidate on trigger,' clarifying the execution side effect, and refers to a 'monitor' which implies ongoing auto-liquidation. It does not mention that creating this monitor may override or cancel existing ones, nor does it warn that trading will occur. Given the annotation already flags destructiveness, the description adds some context but not comprehensive behavioral detail.

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 concise, front-loaded with the primary purpose, then dives into the most critical parameter (position_amount) and a key constraint (at least one trigger). It groups related parameters (direction settings) and points to another tool for details, avoiding repetition. The structure is logical and compact, though it skips over many other parameters.

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?

Given the tool has 15 parameters, 3 required, and no schema descriptions, the description falls short. It does not explain the meaning or interaction of most parameters, nor does it mention what happens upon trigger (e.g., market order execution, fees, partial fills). It also does not clarify the role of wallet_address and target_token beyond implying a held position. While an output schema exists, the description does not enrich understanding of the tool's behavior or edge cases, making it incomplete for reliable invocation.

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 must explain parameters itself. It covers only position_amount, stop_loss_pct, take_profit_pct, trailing config, and direction_mode/allow_short/regime_override via a reference to strategy_dca_create. It does not explain risk, entry_price, slippage_bps, source_token, target_token, wallet_address, interval_seconds, trailing_distance_pct, or the exact relationship between trailing (boolean) and trailing_distance_pct. Many parameters remain undefined, leaving the agent to infer their meaning. This is insufficient for a 15-parameter tool.

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 clearly states the specific action: 'Create a stop-loss / take-profit / trailing-stop monitor on a held position.' This specifies the verb (create), resource (monitor), and its three variants, distinguishing it from other strategy creation siblings like strategy_dca_create and strategy_arb_create. It also hints at the scope (on a held position) without ambiguity.

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 a key usage rule: 'At least one of stop_loss_pct / take_profit_pct / a trailing config should be set.' It also points to strategy_dca_create for direction-related parameters, indicating where to look for additional options. However, it does not explicitly state when to choose this tool over, say, strategy_protect_create or strategy_hedge_create, nor when not to use it. The guidance is useful but not fully prescriptive.

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

B3.2/5.0
Disambiguation2/5

Multiple tools overlap significantly: close_perp_position vs perp_close, get_leaderboard vs get_score_leaderboard vs get_strategy_leaderboard, get_venue_status vs get_all_venues_status, send_token_social vs bulk_send_social, and get_crank_score vs get_score. Several read-only tools have nearly identical purposes, and the descriptions do not always clarify boundaries.

Naming Consistency4/5

Most tools follow a consistent verb_noun snake_case pattern (get_balances, create_strategy, set_alert, list_webhooks). However, there are deviations like 'lst_swap', 'jupiter_swap', 'flash_loan', 'sr_backtest', and the use of both 'get_' and 'list_' for reads, plus category prefixes like 'perp_' and 'strategy_' that vary in order. Overall still readable and predictable.

Tool Count1/5

177 tools is an extreme count for any server, far exceeding the 25+ threshold for 'too many'. Even a full DeFi platform does not need this many separate operations; the surface is overwhelming and clearly not well-scoped.

Completeness3/5

The domain (Solana DeFi trading) is covered extensively across swaps, perps, lending, staking, strategies, signals, and support. However, there are notable gaps: no lend_withdraw, no direct way to close a lending position, no spot order cancellation (though aggregator-based swaps may not need it), and a general lack of tiered account management. The huge number of tools makes it hard to identify missing lifecycle steps.

Resources