Skip to main content
Glama
paperinvest

Paper MCP Server

by paperinvest

cancel_all_account_orders

Cancel all active orders for a specific account on Paper's trading platform using this tool. Provide the account ID to execute the action and manage trading activities efficiently.

Instructions

Cancel all orders for an account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountIdYesAccount ID

Implementation Reference

  • Handler implementation for the 'cancel_all_account_orders' tool. Executes a DELETE API request to `/orders/account/${accountId}` to cancel all open orders for the specified account.
    case 'cancel_all_account_orders': response = await api.delete(`/orders/account/${args.accountId}`); break;
  • Tool definition including name, description, and input schema requiring 'accountId'.
    { name: 'cancel_all_account_orders', description: 'Cancel all orders for an account', inputSchema: { type: 'object', properties: { accountId: { type: 'string', description: 'Account ID' } }, required: ['accountId'] } },
  • src/index.ts:388-392 (registration)
    Registration of all tools list, which includes 'cancel_all_account_orders' via the 'tools' array.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/paperinvest/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server