Skip to main content
Glama
paperinvest

Paper MCP Server

by paperinvest

get_order

Retrieve detailed order information by entering the order ID, enabling users to track and manage trades on Paper's trading platform efficiently.

Instructions

Get order details by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orderIdYesOrder ID

Implementation Reference

  • Handler implementation for the 'get_order' tool. It performs an API GET request to retrieve order details using the provided orderId.
    case 'get_order': response = await api.get(`/orders/${args.orderId}`); break;
  • Input schema definition for the 'get_order' tool, specifying that an 'orderId' string is required.
    inputSchema: { type: 'object', properties: { orderId: { type: 'string', description: 'Order ID' } }, required: ['orderId'] }
  • src/index.ts:236-246 (registration)
    Registration of the 'get_order' tool in the tools array, which is returned by the ListTools handler.
    { name: 'get_order', description: 'Get order details by ID', inputSchema: { type: 'object', properties: { orderId: { type: 'string', description: 'Order ID' } }, required: ['orderId'] } },

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