Skip to main content
Glama
alekskram

dydx-agent-gateway

Suggest Stops

suggest_stops
Read-only

Generate ATR-based risk plan with stop-loss, take-profit, breakeven, and trailing levels for a long or short entry, using current market price if no entry is provided.

Instructions

ATR-based risk plan: stop-loss, take-profit, breakeven trigger and trailing level for a long/short entry. Agent-managed position helper. Unknown ticker (no oracle price) raises an error (MCP isError); returns {"error": ...} when no ATR is available (thin market). All output prices are in market price units: stop_loss / take_profit sit atr_mult_sl / atr_mult_tp x ATR(14) from entry (entry defaults to the current oracle price); breakeven_after is the price at +1 ATR in profit (then move SL to entry and trail by 1 ATR); risk_reward = TP distance / SL distance. Example: suggest_stops(ticker="BTC-USD", side="LONG", atr_mult_sl=1.5)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sideYes
entryNo
tickerYes
resolutionNo1HOUR
atr_mult_slNo
atr_mult_tpNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.3.0

TDQS

A4.7/5.0
Behavior5/5

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

Description goes well beyond the readOnlyHint/openWorldHint annotations: it discloses exact error behavior (MCP isError for unknown ticker vs. error object for thin markets), output price units, the entry default, the breakeven trigger rule, and the risk_reward formula. This is substantial behavioral detail that the annotations alone could not convey.

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?

The description is dense but every clause earns its place: purpose, formulas, defaults, error modes, and an example. The most important scoping (ATR-based risk plan) is front-loaded, and the worked example at the end makes the call format immediately clear without bloat.

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

Completeness5/5

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

Nothing critical for invocation is missing: required params, defaults, error paths, output-value meaning, and an example are all covered. The presence of an output schema means the return shape does not need to be re-described, and the description still explains the key computational relationships. A complete, self-sufficient definition for this tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema coverage, the description carries the parameter-documentation burden. It explains side via 'long/short entry', entry default via 'current oracle price', and atr_mult_sl/atr_mult_tp via the ATR(14) multiplier formula. Resolution is the only parameter left unexplained; the example does show ticker format and a typical call.

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 opens with a specific verb+resource: 'ATR-based risk plan' and names the concrete outputs (stop-loss, take-profit, breakeven trigger, trailing level). The example call further anchors it as a position-entry helper. This is clearly distinct from all sibling tools, which are market data, trader stats, or analytics tools.

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 phrase 'Agent-managed position helper' and 'for a long/short entry' give clear usage context, and error conditions (unknown ticker, missing ATR) tell the agent when the tool won't work. There are no explicit alternatives to compare against, but no visible sibling tool fills the same niche, so the absence of an explicit when/ when-not does not much hurt.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alekskram/dydx-agent-gateway'

If you have feedback or need assistance with the MCP directory API, please join our Discord server