Skip to main content
Glama

arena_execute_atomic_basket

Executes all-or-nothing 2–4-leg cross-market basket or spread trades, ensuring every leg fills together or the order is canceled.

Instructions

Execute an all-or-nothing 2..4-leg atomic cross-market basket / spread trade via POST /basket.

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": {
      "legs": "<legs>"
    },
    "name": "arena_execute_atomic_basket"
  }
}

Input Schema

NameRequiredDescriptionDefault
stpNocancel_resting
legsYes
account_idNo
client_tagNo
margin_spotNo
express_surplus_bid_bpsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.9.0

TDQS

C2.7/5.0
Behavior2/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, and it discloses only that execution is all-or-nothing. It says nothing about authentication/permissions, what happens on partial fill or rejection, margin or collateral implications, idempotency (client_tag), or self-trade prevention behavior (stp), all of which matter for a mutating trading endpoint.

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?

A single tightly written sentence with the action and the key constraint front-loaded and no filler. It is efficient, though the terseness borders on under-specification for a tool of this 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 complex mutating tool with a nested leg array, six parameters, zero schema descriptions, no annotations, and no output schema, one sentence is far short of what an agent needs to call it safely. The description establishes the core action and leg bounds but leaves the execution contract largely undefined.

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?

Schema description coverage is 0% across 6 top-level parameters and ten nested leg fields, and the description explains none of them. '2..4-leg' merely restates the schema's minItems/maxItems, and stp, account_id, client_tag, margin_spot, express_surplus_bid_bps, price_usd vs price_ticks, and reduce_only are left entirely undocumented.

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 (execute) and resource (atomic cross-market basket/spread trade), plus the structural constraint of 2..4 legs and all-or-nothing semantics. It does not name a sibling to contrast with (e.g. arena_place_order for single legs or arena_flash_arbitrage), so an agent must infer the boundary itself.

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?

There is no when-to-use / when-not-to-use guidance and no named alternative. The phrase 'atomic cross-market basket / spread trade' implies the multi-leg atomicity case, but nothing tells the agent when to prefer this over arena_place_order, arena_preview_order, or arena_flash_arbitrage.

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