Skip to main content
Glama

My open orders (limit, TP, SL, DCA)

get_my_orders
Read-only

The user's open and past limit, take-profit, stop-loss orders and DCA schedules. Live orders by default: check before placing one (no duplicates) and to find an order_id for cancel_order. History: status="terminal" (with since / until), paged by limit / page. Filled rows carry filled_price, fill_tx_hash, slippage_vs_trigger_pct; cancelled rows cancel_reason (sibling_filled = the other exit sold the position). input_* is what the user SPENDS and token_* the subject token: name an order by token_symbol. A row with data_warning contradicts itself: call its state unclear. origin: agent = yours; agent_auto_exit = an older Moby-attached exit, still live. DCA rows: schedule_id (what cancel_order takes), progress filled_order_count / order_count. Trailing stops: trail_pct and trailing (live high and sell level). get_my_orders answers 'what is running' in ONE call: orders (limit, TP, SL) plus dca_schedules (one row per DCA; slices never appear in orders). get_my_dca_schedules is the DCA rows alone. A null dca_schedules means the DCA read failed (dca_schedules_error): call get_my_dca_schedules before saying there is none.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_my_orders"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoHistory only: 1-based page number.
limitNoHistory only: rows per page, newest first (max 200).
sinceNoISO 8601 time, e.g. `2026-10-23T00:00:00Z`. Only orders whose last state change (fill, else cancel/update) is at or after this.
untilNoISO 8601 upper bound, same clock as `since`.
statusNoOmit for LIVE orders only. `terminal` = every finished order (filled, cancelled, expired, failed) — the history; `all` = live and finished; or one status / a list of statuses. A resting, unfilled order is `active` — there is no `open` and no `pending`.
token_addressNoContract address: only orders on this token, whether it is the token being sold (TP/SL) or bought (limit buy). Omit for every token.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • removedInput schema / properties / page / title
      Removed value: -"Page"
    • removedInput schema / properties / since / title
      Removed value: -"Since"
    • removedInput schema / properties / status / title
      Removed value: -"Status"
    • removedInput schema / properties / token_address / title
      Removed value: -"Token Address"
    • removedInput schema / properties / until / title
      Removed value: -"Until"
    • removedInput schema / title
      Removed value: -"get_my_ordersArguments"
  2. Changed1 schema field changed
    • removedInput schema / properties / network
      Removed value: -{
      -  "const": "solana",
      -  "default": "solana",
      -  "title": "Network",
      -  "type": "string"
      -}
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare a read-only, non-destructive, closed-world read, and the description adds substantial context beyond that: `origin: agent` versus legacy `agent_auto_exit` exits, self-contradicting rows flagged by `data_warning` that should be reported as unclear, and cancelled rows carrying `cancel_reason` with `sibling_filled` meaning the other exit sold the position. The null-`dca_schedules`-means-failed-read disclosure is exactly the kind of partial-failure behavior annotations cannot express.

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?

Front-loaded with purpose then usage then row semantics, and nearly every clause carries operational meaning. It is very dense and includes return-field explanations (`filled_price`, `trail_pct`, `filled_order_count`) that partly duplicate the existing output schema, costing some tightness.

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?

For a six-parameter read tool with an output schema, the description covers the selection decisions (live vs history vs all), the meaning of ambiguous row states, and the partial-failure path. Nothing an agent needs in order to call it or interpret its result appears to be missing.

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 100%, so the baseline is 3; the description adds coupling semantics the schema does not spell out — that `since`/`until` and `limit`/`page` are history-only and pair with `status="terminal"`. It does not add format detail for `token_address` beyond what the schema already says, so it stops short of a 5.

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?

Opens with a specific verb-and-resource statement covering limit, take-profit, stop-loss orders and DCA schedules, and immediately contrasts itself with `get_my_dca_schedules` (DCA rows alone). An agent can distinguish this from the DCA-only sibling and from `cancel_order` without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit triggers: check before placing an order to avoid duplicates, use it to obtain an `order_id` for `cancel_order`, and use `status="terminal"` for history. It also names the alternative for DCA rows and the exact fallback when `dca_schedules` is null (call `get_my_dca_schedules` before claiming none exist).

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.

Resources