Skip to main content
Glama

oco_order

Place a One-Cancels-Other order group so when one order fills, the other is automatically cancelled, managing paired trades with defined prices and quantities.

Instructions

Place a One-Cancels-Other (OCO) order group. When one order fills, the other is cancelled.

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": {
      "side": "<side>",
      "quantity": "<quantity>",
      "ocaGroup": "<ocaGroup>",
      "order1Type": "<order1Type>",
      "order1Price": "<order1Price>",
      "order2Type": "<order2Type>",
      "order2Price": "<order2Price>"
    },
    "name": "oco_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
tifNo
sideYes
conIdNo
symbolNo
accountNo
secTypeNo
currencyNo
exchangeNo
ocaGroupYesOCA group name
quantityYes
order1TypeYesFirst order type
order2TypeYesSecond order type
order1PriceYesFirst order price
order2PriceYesSecond order price

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

C2.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the core lifecycle trait ('when one order fills, the other is cancelled'), which is real value, but it omits what happens on rejection/partial fill, permission requirements, whether both legs must be on the same contract, and what the response contains – notable gaps for a live trading mutation.

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?

Two short, front-loaded sentences with no filler; the definition is placed first and the mechanics second. Its brevity is efficient rather than padded, though that brevity is costly given the tool's complexity.

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?

For a 14-parameter, 7-required order-placement tool with no annotations and no output schema, two sentences are far short of adequate. An agent cannot determine required-vs-optional intent, leg semantics, or expected return values from the definition.

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?

Fourteen parameters with only 36% schema description coverage, and the description explains none of them. It does not clarify the interplay of order1Type/order1Price vs order2Type/order2Price (e.g. stop vs limit legs), the meaning of ocaGroup, tif, or when to use conId versus symbol – exactly the gaps the schema leaves open.

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 ('Place') and a specific resource ('One-Cancels-Other (OCO) order group'), and defines what OCO means. It does not explicitly contrast itself with the sibling bracket_order or order_place, so an agent must know OCO semantics to distinguish them.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance: nothing says when an OCO group is preferred over a bracket_order or a pair of plain order_place calls, and no prerequisites (margin, permissions, same-symbol constraint) are stated. Usage must be fully inferred.

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

Deploy Server

Other Tools