Skip to main content
Glama
Orderly Trading MCP

Orderly Trading MCP

Official

Set leverage

leverage_set
Destructive

Set leverage for a trading symbol by specifying the required value, and preview the request with dry_run before signing or sending it.

Instructions

Set leverage for a symbol. value is required. Preview a change with dry_run=true. Use leverage_get to read the current leverage without mutating.

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": {
      "symbol": "<symbol>",
      "value": "<value>"
    },
    "name": "leverage_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYesvalue
symbolYessymbol
accountNoAccount ID (auto-resolves if single account)
dry_runNoPrint the request payload without signing or sending it
networkNoNetwork override for this call. Defaults to ORDERLY_MCP_NETWORK, then the CLI config.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.5

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=false, and openWorldHint=true, so the mutation risk profile is established structurally. The description reinforces this with the non-mutating preview path and the read-side alternative, but adds nothing about permissions/auth, side effects on existing positions, or recovery when the wrong value is set. It also doesn't contradict the annotations.

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?

Three short sentences with the core action front-loaded and the routing hints after it — nothing extraneous structurally. The sentence "value is required" is redundant with the schema's required list and is the only wasted line.

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?

Correctly weighted for the available structure: annotations carry the destructive/read-only profile and 100% schema coverage carries the parameter details. No output schema exists and none is needed, since a settings mutation's return is not what an agent must reason about before calling.

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%, so all five parameters are already documented, including dry_run's exact semantics ("Print the request payload without signing or sending it") and the network default chain. The description only repeats that value is required and nudges toward dry_run, adding no new meaning such as acceptable value ranges, precision, or cross-vs-isolated margin interpretation.

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?

The description opens with a specific verb and resource ("Set leverage for a symbol") and then explicitly names the sibling leverage_get as the read-only counterpart, so an agent can distinguish this mutation from the retrieval tool without opening either schema.

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 two concrete routing rules: use dry_run=true to preview, and use leverage_get if you only need to read current leverage without mutating. That is a clear when-to-use/when-to-use-something-else signal. It stops short of exclusions such as account prerequisites, network caveats, or what not to do (e.g., changing leverage while positions are open).

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