Skip to main content
Glama

Take profit

place_take_profit

Place a reduce-only Take profit (conditional market order) that triggers at triggerPrice. Side must be the CLOSING side of the position: SELL closes a LONG, BUY closes a SHORT. Once triggered it executes as an IOC limit bounded at triggerPrice ± slippageBps in the direction of execution (BUY above the trigger, SELL below; default 500 bps) so the close can cross the book.

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>",
      "side": "<side>",
      "triggerPrice": "<triggerPrice>",
      "size": "<size>"
    },
    "name": "place_take_profit"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideYes
sizeYes
marketYes
clientIdNo
slippageBpsNoExecution bound past the trigger, in bps (default 500). Raise for thin books, up to the server maximum (whoami.configuredLimits.maxSlippageBps).
triggerPriceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / slippageBps / description
      Previous value: -"Execution bound past the trigger, in bps (default 500). Raise for thin books."New value: +"Execution bound past the trigger, in bps (default 500). Raise for thin books, up to the server maximum (whoami.configuredLimits.maxSlippageBps)."
  2. Changed1 schema field changed
    • addedInput schema / properties / market / pattern
      Added value: +"^[A-Z0-9]{1,20}-[A-Z0-9]{1,20}$"
  3. Changed1 schema field changed
    • addedInput schema / properties / slippageBps
      Added value: +{
      +  "description": "Execution bound past the trigger, in bps (default 500). Raise for thin books.",
      +  "maximum": 10000,
      +  "minimum": 0,
      +  "type": "number"
      +}
  4. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare not-readOnly and not-idempotent; the description goes well beyond them by explaining that the order is conditional, that it becomes an IOC limit on trigger, and that the execution price is bounded at triggerPrice ± slippageBps with the bound direction spelled out (BUY above, SELL below). This is exactly the post-trigger behavior an agent needs to predict execution and avoid an unfillable order.

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 dense sentences, front-loaded with the order type and the side rule, then the execution mechanics. No boilerplate, no restatement of the title, and every clause carries operational information.

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?

For a complex conditional-order tool, the description covers trigger semantics, side convention, execution style, and slippage bounding — the pieces an agent must get right. It omits the order lifecycle (amendment, cancellation, what a successful response contains) and that the server-side slippage cap is discoverable via whoami, though the latter is documented in the schema.

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?

Schema coverage is only 17%, so the description must compensate, and it does for the highest-risk fields: 'side' is defined relative to position direction, 'triggerPrice' is identified as the trigger level, and 'slippageBps' is explained with its default and its directional meaning. 'size', 'market', and 'clientId' receive no added meaning, leaving a partial gap.

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?

States a specific verb and resource — 'Place a reduce-only Take profit (conditional market order) that triggers at triggerPrice' — so the action and order type are unambiguous. It never names or contrasts with place_stop_loss or place_limit_order, leaving sibling differentiation to be inferred from the 'take profit' label alone.

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?

The description supplies a real usage constraint: reduce-only and 'Side must be the CLOSING side of the position: SELL closes a LONG, BUY closes a SHORT', which prevents a common misuse. It gives no explicit when-to-use vs. when-not guidance, no mention of prerequisites such as holding an open position, and no routing to alternative order tools.

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.