Skip to main content
Glama

Place limit, stop-loss, take-profit or DCA order (real money)

create_order
Destructive

Place a limit buy or sell, take-profit, stop-loss, bracket (SL + TP), trigger buy or DCA on a Solana token. Real money when it fires. Buy orders are checked against app-set limits. ⚠️ SPENDS REAL MONEY from the user's agent wallet; cannot be undone. Get an explicit yes on the exact amount and token BEFORE calling. It can fire later: read back the type, token, amount and every price first. Trade limits: SELL orders never count toward or get blocked by maxTradeUsd / dailyVolumeUsd. A BUY is checked against both and reserves its USD value in the daily volume; the unfilled part comes back if it is cancelled, expires or fails. A timeout or order_in_flight is NOT a failure: the order may be live. Retry only with the same arguments and client_order_id (the error names it), never as a new order. order_type selects what to place and which price arguments it needs:

  • limit_buy / limit_sell — buy when the price falls to, or sell when it rises to, limit_price. Needs limit_price.

  • tp_only — sell when the price rises to take_profit_price. Needs it.

  • sl_only — sell when the price falls to stop_loss_price. Needs it.

  • trigger_buy — buy when the price DROPS to the trigger, which goes in stop_loss_price; no other price.

  • sl_and_tp — a BRACKET: stop loss AND take profit on one position in one call. Needs both prices; both legs cover amount. When one fills, Moby cancels the other. It places TWO orders, listed in legs (order_id + order_type; also stop_loss_order_id / take_profit_order_id). If ONE leg could not be placed, failed_leg / failed_leg_error say which and why: the other leg is LIVE, so place only the missing one with sl_only / tp_only, never the bracket again.

  • dca_buy / dca_sell — order_count equal slices interval_seconds apart. Needs both, NO price. tp_only and sl_only as two calls protect both sides too, but cancelling one does NOT cancel the other. When a fill sells the whole position, Moby cancels your remaining exits on that token within a minute or two (get_my_orders status="terminal", cancel_reason); after a PARTIAL exit the other stays live.

  • trailing_stop — sell at market when the price falls trail_pct% from its high (the high only moves up). Needs a position you already hold: buy first. Needs trail_pct (0.5 to 50), no other price; optional activation_price arms it once the price reaches it. No edit: cancel and recreate. trailing.watermark_price / watermark_updated_at move ONLY on a new high (flat or falling = unchanged, not stale). All prices are USD prices of the token. amount is always what the user SPENDS: the funding asset on a buy, the token itself on a sell. Refusals that are NOT argument problems: no_market (no sell route yet: retry the same call later) and stop_above_market / tp_below_market (price already past the trigger: re-check it and pick a new one). Moby does not retry or re-arm for you. To CLOSE or trim at market now use quick_sell, not an order. EXITS ARE YOURS: Moby attaches no automatic TP/SL to your buys, so place them here after the buy. SOL positions: use quick_sell; TP/SL on SOL is not supported.

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": {
      "order_type": "<order_type>",
      "token_address": "<token_address>",
      "amount": "<amount>"
    },
    "name": "create_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesHow much to SPEND, in whole token units: the funding asset on a buy, the held token on a sell.
levelsNoOptional. Your chart levels as numbers; images are not accepted. Stored with the trade and shown back to you.
thesisNoOptional. Your own note on this trade, 2–4 lines: why this coin, why now, what breaks it. Stored with the trade and shown back to you; ≤500 chars.
dry_runNoCheck the order against Moby's rules without placing it; returns would_succeed and the refusal reason.
trail_pctNoTrailing stop only. Percent below the high since arming at which to sell at market, 0.5 to 50.
confidenceNoOptional. How sure you are.
order_typeYesOrder kind; the tool description says what each needs.
limit_priceNoUSD limit price. Required for `limit_buy` and `limit_sell`.
order_countNoHow many DCA slices to split the amount into. Required for `dca_buy` and `dca_sell`.
expected_holdNoOptional. How long you expect to hold.
token_addressYesContract address of the token the order is about.
client_order_idNoOptional idempotency key (omit it and Moby makes one). To retry after `order_in_flight` or a timeout, resend the SAME arguments with the SAME `client_order_id`: nothing is placed twice.
stop_loss_priceNoUSD price at which to stop out. Required for `sl_only` and `sl_and_tp`; for `trigger_buy` it is the price the buy fires at when the price drops to it.
activation_priceNoTrailing stop only, optional. USD price at which the trail arms; omitted = arms now.
interval_secondsNoSeconds between DCA slices. Required for `dca_buy` and `dca_sell`.
take_profit_priceNoUSD price at which to take profit. Required for `tp_only` and `sl_and_tp`.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / activation_price
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Trailing stop only, optional. USD price at which the trail arms; omitted = arms now."
      +}
    • changedInput schema / properties / order_type / enum
      Previous value: -[
      -  "tp_only",
      -  "sl_only",
      -  "sl_and_tp",
      -  "limit_buy",
      -  "limit_sell",
      -  "dca_buy",
      -  "dca_sell",
      -  "trigger_buy"
      -]New value: +[
      +  "tp_only",
      +  "sl_only",
      +  "sl_and_tp",
      +  "limit_buy",
      +  "limit_sell",
      +  "dca_buy",
      +  "dca_sell",
      +  "trigger_buy",
      +  "trailing_stop"
      +]
    • addedInput schema / properties / trail_pct
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Trailing stop only. Percent below the high since arming at which to sell at market, 0.5 to 50."
      +}
  2. Changed27 schema fields changed
    • removedInput schema / $defs / TradeLevelsParam / properties / entry_price / title
      Removed value: -"Entry Price"
    • removedInput schema / $defs / TradeLevelsParam / properties / invalidation / title
      Removed value: -"Invalidation"
    • removedInput schema / $defs / TradeLevelsParam / properties / risk_reward / title
      Removed value: -"Risk Reward"
    • removedInput schema / $defs / TradeLevelsParam / properties / stop_price / title
      Removed value: -"Stop Price"
    • removedInput schema / $defs / TradeLevelsParam / properties / target_price / title
      Removed value: -"Target Price"
    • removedInput schema / $defs / TradeLevelsParam / properties / timeframe / title
      Removed value: -"Timeframe"
    • removedInput schema / $defs / TradeLevelsParam / title
      Removed value: -"TradeLevelsParam"
    • removedInput schema / properties / amount / title
      Removed value: -"Amount"
    • changedInput schema / properties / client_order_id / description
      Previous value: -"Optional idempotency key, up to 64 chars. Omit it and Moby makes one per call. To retry an order whose result you did not get (`order_in_flight`, a timeout), resend the SAME arguments with the SAME `client_order_id`: you get the first result back and nothing is placed twice."New value: +"Optional idempotency key (omit it and Moby makes one). To retry after `order_in_flight` or a timeout, resend the SAME arguments with the SAME `client_order_id`: nothing is placed twice."
    • removedInput schema / properties / client_order_id / title
      Removed value: -"Client Order Id"
    • changedInput schema / properties / confidence / description
      Previous value: -"Optional. How sure you are: `low`, `medium` or `high`."New value: +"Optional. How sure you are."
    • removedInput schema / properties / confidence / title
      Removed value: -"Confidence"
    • removedInput schema / properties / dry_run / title
      Removed value: -"Dry Run"
    • changedInput schema / properties / expected_hold / description
      Previous value: -"Optional. How long you expect to hold: `minutes`, `hours`, `days` or `weeks`."New value: +"Optional. How long you expect to hold."
    • removedInput schema / properties / expected_hold / title
      Removed value: -"Expected Hold"
    • removedInput schema / properties / interval_seconds / title
      Removed value: -"Interval Seconds"
    • changedInput schema / properties / levels / description
      Previous value: -"Optional. Your chart levels as numbers: entry_price, stop_price, target_price (USD), timeframe (1m/5m/15m/1h/4h/1d), risk_reward, invalidation (one line, <=140 chars). Pass `levels` when you have them; images are not accepted. Stored with the trade and shown back to you."New value: +"Optional. Your chart levels as numbers; images are not accepted. Stored with the trade and shown back to you."
    • removedInput schema / properties / limit_price / title
      Removed value: -"Limit Price"
    • removedInput schema / properties / order_count / title
      Removed value: -"Order Count"
    • changedInput schema / properties / order_type / description
      Previous value: -"Which kind of order to place. See the tool description for what each one needs."New value: +"Order kind; the tool description says what each needs."
    • removedInput schema / properties / order_type / title
      Removed value: -"Order Type"
    • removedInput schema / properties / stop_loss_price / title
      Removed value: -"Stop Loss Price"
    • removedInput schema / properties / take_profit_price / title
      Removed value: -"Take Profit Price"
    • changedInput schema / properties / thesis / description
      Previous value: -"Optional. Your own note on this trade, 2–4 lines: why this coin, why now, who's in it, what breaks it. Stored with the trade and shown back to you; ≤500 chars."New value: +"Optional. Your own note on this trade, 2–4 lines: why this coin, why now, what breaks it. Stored with the trade and shown back to you; ≤500 chars."
    • removedInput schema / properties / thesis / title
      Removed value: -"Thesis"
    • removedInput schema / properties / token_address / title
      Removed value: -"Token Address"
    • removedInput schema / title
      Removed value: -"create_orderArguments"
  3. Changed1 schema field changed
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "default": false,
      +  "description": "Check the order against Moby's rules without placing it; returns would_succeed and the refusal reason.",
      +  "title": "Dry Run",
      +  "type": "boolean"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / client_order_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 64,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional idempotency key, up to 64 chars. Omit it and Moby makes one per call. To retry an order whose result you did not get (`order_in_flight`, a timeout), resend the SAME arguments with the SAME `client_order_id`: you get the first result back and nothing is placed twice.",
      +  "title": "Client Order Id"
      +}
  5. Changed6 schema fields changed
    • addedInput schema / $defs
      Added value: +{
      +  "TradeLevelsParam": {
      +    "properties": {
      +      "entry_price": {
      +        "anyOf": [
      +          {
      +            "exclusiveMinimum": 0,
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Entry price in USD.",
      +        "title": "Entry Price"
      +      },
      +      "invalidation": {
      +        "anyOf": [
      +          {
      +            "maxLength": 140,
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "One line: what breaks the idea.",
      +        "title": "Invalidation"
      +      },
      +      "risk_reward": {
      +        "anyOf": [
      +          {
      +            "exclusiveMinimum": 0,
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Reward divided by risk, e.g. 3.0.",
      +        "title": "Risk Reward"
      +      },
      +      "stop_price": {
      +        "anyOf": [
      +          {
      +            "exclusiveMinimum": 0,
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Stop price in USD.",
      +        "title": "Stop Price"
      +      },
      +      "target_price": {
      +        "anyOf": [
      +          {
      +            "exclusiveMinimum": 0,
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Target price in USD.",
      +        "title": "Target Price"
      +      },
      +      "timeframe": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "1m",
      +              "5m",
      +              "15m",
      +              "1h",
      +              "4h",
      +              "1d"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Chart timeframe the levels come from.",
      +        "title": "Timeframe"
      +      }
      +    },
      +    "title": "TradeLevelsParam",
      +    "type": "object"
      +  }
      +}
    • addedInput schema / properties / confidence
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "low",
      +        "medium",
      +        "high"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional. How sure you are: `low`, `medium` or `high`.",
      +  "title": "Confidence"
      +}
    • addedInput schema / properties / expected_hold
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "minutes",
      +        "hours",
      +        "days",
      +        "weeks"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional. How long you expect to hold: `minutes`, `hours`, `days` or `weeks`.",
      +  "title": "Expected Hold"
      +}
    • addedInput schema / properties / levels
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/TradeLevelsParam"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional. Your chart levels as numbers: entry_price, stop_price, target_price (USD), timeframe (1m/5m/15m/1h/4h/1d), risk_reward, invalidation (one line, <=140 chars). Pass `levels` when you have them; images are not accepted. Stored with the trade and shown back to you."
      +}
    • removedInput schema / properties / rationale
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "maxLength": 500,
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Optional. Your 2–4 line thesis: why this coin, why now, who's in it, what breaks it. Stored with the trade and shown to the user; ≤500 chars.",
      -  "title": "Rationale"
      -}
    • addedInput schema / properties / thesis
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 500,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional. Your own note on this trade, 2–4 lines: why this coin, why now, who's in it, what breaks it. Stored with the trade and shown back to you; ≤500 chars.",
      +  "title": "Thesis"
      +}
  6. Changed1 schema field changed
    • removedInput schema / properties / network
      Removed value: -{
      -  "const": "solana",
      -  "default": "solana",
      -  "title": "Network",
      -  "type": "string"
      -}
  7. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations flag destructive=true and idempotent=false, and the description goes well past that: it warns of real-money spend that cannot be undone, requires an explicit yes beforehand, and re-checks type/token/amount/prices. It discloses non-obvious mechanics — buy orders checked against and reserving `maxTradeUsd`/`dailyVolumeUsd`, refund of unfilled volume on cancel/expiry/failure, bracket legs placed as two orders with auto-cancel of the other, and `order_in_flight`/timeout being a non-failure retryable only with identical args and `client_order_id`.

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 the money-spend warning, then a scannable per-order-type decision list with clear labels. It is long and a few points are restated (retry/`client_order_id` appears in both the prose and the schema field), but nearly every line carries operational meaning for a 9-way enum.

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 16-parameter, 9-order-type mutation tool, the definition covers placement, required price args, fill timing, cancellation behavior, partial exits, failure/refusal paths, and retry semantics. An output schema exists, so not explaining return values is appropriate, and the bracket result fields (`legs`, `failed_leg`) are still named where they matter operationally.

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 still adds real meaning by mapping each `order_type` to the price arguments it needs and forbids the rest. It also clarifies the counterintuitive cases — `trigger_buy` puts its trigger in `stop_loss_price`, `amount` is always what the user spends (funding asset vs. held token), `trail_pct` range and no-edit rule — though it repeats some client_order_id guidance already in the schema.

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 (place a limit buy/sell, TP, SL, bracket, trigger, DCA, trailing stop) and enumerates the exact order kinds it supports. It also distinguishes itself from `quick_sell` for immediate exits, so an agent can separate it from siblings without opening schemas.

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 when-to-use routing: `quick_sell` for closing at market now, `sl_only`/`tp_only` to fill a missing bracket leg, cancel-and-recreate for trailing stops. It also states when-not and what is unsupported (TP/SL on SOL), plus refusal handling for `no_market`, `stop_above_market`, `tp_below_market`.

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