Skip to main content
Glama

Create order (executes a trade)

create_order
Destructive

⚠️ Moves funds: this places a real order that will execute a trade from the user's wallet. Create a buy or sell order on a wallet, with optional take-profit and stop-loss ladder

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": {
      "walletId": "<walletId>",
      "tokenAddress": "<tokenAddress>",
      "type": "<type>",
      "payload": "<payload>"
    },
    "name": "create_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesOrder type
statusNoOrder status (default: active)
payloadYesOrder payload with amount, trigger, and execution settings
walletIdYesThe wallet ID to create the order on
stopLossesNoOptional stop-loss ladder
takeProfitsNoOptional take-profit ladder
tokenAddressYesToken mint address
positionThesisIdNoLink to a position thesis

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/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 idempotentHint=false, so the safety profile is known from structured data. The description nevertheless earns credit by spelling out the real-world consequence in plain language ('Moves funds... execute a trade from the user's wallet'), which is more concrete than the 'destructive' hint alone. It omits auth/permission requirements and whether the order executes immediately versus on a trigger.

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?

The warning is front-loaded with an alert symbol, which is the right priority for a fund-moving tool, and the whole definition is two short clauses. 'Moves funds' and 'places a real order that will execute a trade from the user's wallet' convey largely the same idea, a minor redundancy.

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

Completeness3/5

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

For an 8-parameter, nested-object, destructive financial tool with no output schema, the description says nothing about what is returned, whether the created order is immediately live or inert until activated, or how the status and positionThesisId parameters affect behavior. An agent can call it, but must infer the lifecycle from the schema alone.

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

Parameters3/5

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

Schema description coverage is 100%, including nested amount, trigger, stopLosses, and takeProfits fields, so the schema carries the parameter burden. The description only echoes the buy/sell and TP/SL ladder concepts without adding format or semantics beyond the schema. Baseline 3 applies.

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?

The description gives a specific verb and resource ('Create a buy or sell order on a wallet') and enumerates the optional take-profit and stop-loss ladder, which is enough to distinguish it from siblings like activate_order or list_orders. It stops short of explicitly naming the sibling that handles activation, so it is clear but not sibling-routing.

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?

It implies this is the entry point for placing a trade and warns that the order is real, which nudges toward caution, but there is no explicit when-to-use/when-not guidance. It never mentions that status='draft' can be used to stage an order, nor does it point to activate_order, pause_order, or delete_order for managing an order afterward.

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.