Skip to main content
Glama
Orderly Trading MCP

Orderly Trading MCP

Official

Issue an API key (onboarding step 3)

wallet_add_key
Destructive

Creates and stores an Orderly API key for a wallet in the OS keychain, returning the public key and accountId needed by other tools; grants read and trading scopes.

Instructions

Create an Orderly API key for the wallet, store it in the OS keychain and return the public key plus the accountId used by every other tool. Only read and trading scope can be granted through the MCP; asset (withdrawal) scope must be added with the CLI directly. Requires the wallet address and, for a new account, the broker ID.

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": {
      "address": "<address>"
    },
    "name": "wallet_add_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNoKey scopes: read,trading,asset (default: read,trading) One of: read, trading.
addressYesWallet address (required for AI/scripts, prompts if omitted)
networkNoNetwork override for this call. Defaults to ORDERLY_MCP_NETWORK, then the CLI config.
broker_idNoBroker ID (required when no API key stored for wallet)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.5

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the write/credential-issuing nature is covered structurally. The description adds real context beyond that: the key is persisted into the OS keychain and the accountId it returns is used by every other tool. It does not say what happens if a key already exists (overwrite vs. error), which matters for a non-idempotent, destructive call.

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 sentences, front-loaded with the action and its side effect, then constraints, then prerequisites. Every sentence carries information; the only near-redundancy is restating that the wallet address is required, which the schema already marks required.

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 four-parameter mutation with no output schema, the description covers the essentials: what is created, where it is stored, what is returned, and the scope restriction that would otherwise cause a failed or misconfigured call. The remaining gap is conflict/overwrite behavior on repeat invocation, given idempotentHint=false.

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 a baseline of 3 applies, but the description adds meaning the schema muddles: the scope enum's own description lists 'asset' while the enum only permits read/trading, and the description resolves this by stating asset scope must go through the CLI. It also flags that broker_id is only needed for a new account, which refines the schema's 'no API key stored' phrasing.

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 ('Create an Orderly API key for the wallet') plus the observable side effect (stored in the OS keychain) and the return payload (public key plus accountId). Combined with the title's 'onboarding step 3', an agent can place it in the wallet_create/wallet_register sequence, though no sibling is named explicitly.

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 clear prerequisites (wallet address; broker ID when no key is stored for the wallet) and an explicit exclusion: asset/withdrawal scope cannot be granted via MCP and must be added with the CLI. It stops short of naming the sibling tools it follows or replaces, so the when-vs-alternative guidance is contextual rather than explicit.

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