Skip to main content
Glama
Orderly Trading MCP

Orderly Trading MCP

Official

Run an Orderly CLI command

orderly_run
Destructive

Run an allowed Orderly CLI command with structured arguments when no dedicated tool exists; call orderly_commands first for exact argument names and preview mutating commands with dry_run.

Instructions

Run an allowed Orderly CLI command with structured arguments. Prefer a dedicated tool when one exists; use this for commands that do not have one. Call orderly_commands first to get exact argument names, enums and required flags. Examples: algo_order_place, order_edit, order_get, trades, funding_rates, symbols, predict_rounds. Mutating commands execute immediately unless they support dry_run and it is set to true — always preview first. Wallet import/export, key removal and auth administration are never available. Pass network to override the default.

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": {
      "command": "<command>"
    },
    "name": "orderly_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoStructured arguments keyed by the names returned by orderly_commands, e.g. {"symbol":"PERP_ETH_USDC","side":"BUY"}. Put network here, or use the top-level network field.
commandYesCLI command name, e.g. "order-place" or "order_place". Must appear in orderly_commands.
networkNoNetwork override for this call. Takes precedence over args.network. Defaults to ORDERLY_MCP_NETWORK, then the CLI config.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.5

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and openWorldHint=true, so the bar is lower; the description still adds real value by explaining that mutating commands execute immediately unless dry_run is supported and set, and by enumerating permanently blocked command classes. It does not describe what the tool returns or how errors/side effects surface, which keeps it from a 5.

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 routing, then prerequisite, then safety and prohibitions — a sensible priority order. The seven-item example command list is the only slightly baggy element, though it usefully signals breadth (e.g. predict_rounds) that a shorter list would miss.

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 generic dispatcher with a free-form nested args object and no output schema, the definition covers argument provenance, forbidden operations, dry_run behavior and network precedence. The remaining gap is return-value shape — an agent gets no hint whether output is raw CLI text or structured JSON, which matters for a wrapper of this generality.

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 baseline is 3, but the description adds meaning the schema cannot: argument keys must match names returned by orderly_commands, which is the essential semantic for an open-ended args object. The network override note restates what the schema already declares about precedence, so the gain is modest rather than maximal.

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?

States a specific verb and resource ('Run an allowed Orderly CLI command with structured arguments') and immediately carves out its niche: 'Prefer a dedicated tool when one exists; use this for commands that do not have one.' The example command list (algo_order_place, order_edit, trades, funding_rates) makes the scope concrete and distinct from siblings like order_place or orderly_read.

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?

Explicit when-to-use (commands without a dedicated tool), an explicit prerequisite ('Call orderly_commands first to get exact argument names, enums and required flags'), explicit when-not (wallet import/export, key removal, auth administration are never available), and a safety routine ('always preview first' via dry_run). Routing guidance between this catch-all and sibling tools is unambiguous.

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