Skip to main content
Glama

Vectorial Data Terminal: Hyperliquid, Polymarket & yield for AI agents

place_order

Destructive

Place an order. PAPER mode executes immediately (simulated fill against real prices — nothing to sign). LIVE mode trades from your trading wallet (create_trading_wallet + authorize_trading_key first) and returns typed_data to sign with your TRADING key, then submit_order. Fees: 0.25% per perps trade, the same everyone pays, settled automatically. Brackets: pass tp/sl. Sizing: explicit size, or risk-first via risk_usd+stop_price (size = risk / |entry−stop|). Min notional $10.

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": {
      "market": "<market>",
      "side": "<side>",
      "type": "<type>"
    },
    "name": "place_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
slNoStop-loss trigger price in USD (optional reduce-only bracket)
tpNoTake-profit trigger price in USD (optional reduce-only bracket)
sideYesbuy = go long (or reduce a short); sell = go short (or reduce a long)
sizeNoSize in coins, e.g. 0.01 for BTC. Omit it to size by risk_usd + stop_price instead
typeYesmarket = fills now at a protected price; limit = rests at limit_price
marketYesSymbol, e.g. BTC
risk_usdNoRisk-first sizing: dollars at risk to the stop
stop_priceNoRequired with risk_usd; also becomes the SL
limit_priceNoLimit price in USD; required when type is limit
reduce_onlyNotrue = this order can only reduce an existing position, never open or flip one
client_order_idNoIdempotency key

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / limit_price / description
      Added value: +"Limit price in USD; required when type is limit"
    • addedInput schema / properties / reduce_only / description
      Added value: +"true = this order can only reduce an existing position, never open or flip one"
    • addedInput schema / properties / side / description
      Added value: +"buy = go long (or reduce a short); sell = go short (or reduce a long)"
    • addedInput schema / properties / size / description
      Added value: +"Size in coins, e.g. 0.01 for BTC. Omit it to size by risk_usd + stop_price instead"
    • addedInput schema / properties / sl / description
      Added value: +"Stop-loss trigger price in USD (optional reduce-only bracket)"
    • addedInput schema / properties / tp / description
      Added value: +"Take-profit trigger price in USD (optional reduce-only bracket)"
    • addedInput schema / properties / type / description
      Added value: +"market = fills now at a protected price; limit = rests at limit_price"
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations, the description explains simulated PAPER fills, LIVE signing flow, automatic fee settlement, bracket behavior via tp/sl, risk-based sizing, and the $10 minimum notional. That adds substantial operational context for a destructive, non-idempotent 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but front-loaded, moving from the core action to mode behavior, prerequisite tools, follow-up signing, fees, brackets, sizing, and minimums. Every sentence adds operational information and there is little or no wasted wording.

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 an 11-parameter destructive trading tool with no output schema, it covers the critical mode, prerequisite, signing, fee, bracket, sizing, and minimum-notional behavior. It could still say more about order persistence, leverage or margin assumptions, and error handling, but the essential call guidance is present.

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 already 100%, so the baseline is 3, but the description adds meaningful cross-parameter semantics: risk-first sizing via risk_usd plus stop_price with the formula size = risk / |entry - stop|, and brackets via tp/sl. It does not cover every parameter such as client_order_id or reduce_only, but the added sizing logic is high-value.

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 states a specific verb and resource, 'Place an order,' and the surrounding text makes clear it is a perps order by mentioning perps fees, brackets, and markets like BTC. It does not explicitly distinguish itself from place_prediction_order, but the perps context in the body and annotation title is clear enough for an agent.

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

Usage Guidelines4/5

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

It gives concrete workflow guidance: PAPER mode executes immediately, while LIVE mode requires create_trading_wallet plus authorize_trading_key, returns typed_data to sign, and then requires submit_order. It lacks explicit exclusions or direct sibling comparisons, but the prerequisite and follow-up steps are unusually strong.

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.