Issue an API key (onboarding step 3)
wallet_add_keyCreates 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
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Key scopes: read,trading,asset (default: read,trading) One of: read, trading. | |
| address | Yes | Wallet address (required for AI/scripts, prompts if omitted) | |
| network | No | Network override for this call. Defaults to ORDERLY_MCP_NETWORK, then the CLI config. | |
| broker_id | No | Broker ID (required when no API key stored for wallet) |