Skip to main content
Glama
paperinvest

Paper MCP Server

by paperinvest

get_account_orders

Retrieve order details for a specific account on Paper's trading platform. Specify account ID, page number, and results limit to fetch tailored data for analysis or management.

Instructions

Get orders for an account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountIdYesAccount ID
limitNoResults per page (default: 10)
pageNoPage number (default: 1)

Implementation Reference

  • Handler implementation for the 'get_account_orders' tool. Makes an authenticated API GET request to fetch orders for the specified account ID with optional pagination parameters.
    case 'get_account_orders': response = await api.get(`/orders/account/${args.accountId}`, { params: { page: args.page || 1, limit: args.limit || 10 } }); break;
  • src/index.ts:258-270 (registration)
    Tool registration object defining name, description, and input schema for 'get_account_orders'. This object is included in the tools list returned by ListToolsRequest handler.
    { name: 'get_account_orders', description: 'Get orders for an account', inputSchema: { type: 'object', properties: { accountId: { type: 'string', description: 'Account ID' }, page: { type: 'number', description: 'Page number (default: 1)' }, limit: { type: 'number', description: 'Results per page (default: 10)' } }, required: ['accountId'] } },
  • Input schema validation for the 'get_account_orders' tool parameters.
    inputSchema: { type: 'object', properties: { accountId: { type: 'string', description: 'Account ID' }, page: { type: 'number', description: 'Page number (default: 1)' }, limit: { type: 'number', description: 'Results per page (default: 10)' } }, required: ['accountId'] }

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