Skip to main content
Glama
Orderly Trading MCP

Orderly Trading MCP

Official

Read leverage

leverage_get
Read-onlyIdempotent

Read the current leverage and margin mode for a symbol to verify risk settings before trading; use leverage_set to change them.

Instructions

Read the current leverage and margin mode for a symbol. Read-only; use leverage_set to change it.

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>"
    },
    "name": "leverage_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesSymbol, e.g. PERP_ETH_USDC.
accountNoAccount ID. Defaults to ORDERLY_MCP_ACCOUNT, then the CLI default.
networkNoNetwork override for this call.

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=true, idempotentHint=true, and destructiveHint=false, so the 'Read-only' clause mostly restates structured data. It does add that the payload covers exactly leverage and margin mode, but says nothing about defaults resolving via ORDERLY_MCP_ACCOUNT or the CLI, nor about failure modes for an unknown symbol.

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?

Two short sentences, front-loaded with the purpose and closed with the alternative, with no redundant or filler 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 a single-symbol read tool with full schema coverage and annotations carrying the safety profile, little is missing. Because there is no output schema, the description partially compensates by naming the returned fields, though it gives no indication of value formats such as margin-mode values.

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 the schema already documents symbol, account fallback chain, and the network enum; the baseline of 3 applies. The description adds only the idea that a symbol is the scoping key, which the schema's required list already conveys.

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 ('Read') and two named resources ('current leverage and margin mode') scoped to a symbol, which is precisely distinguishable from leverage_set. An agent knows exactly what this returns without opening the 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?

Explicitly routes the agent to leverage_set for the mutating counterpart, which is the key alternative for this pair. It does not discuss account/network selection or when a network override is warranted, but for a simple paired read/write tool the context is clear.

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