Skip to main content
Glama
paperinvest

Paper MCP Server

by paperinvest

get_day_trades

Retrieve day trade activity for a specific portfolio using portfolio ID, with options to paginate results for efficient data access through the Paper MCP Server.

Instructions

Get day trade activity for a portfolio

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoResults per page (default: 50)
pageNoPage number (default: 1)
portfolioIdYesPortfolio ID

Implementation Reference

  • Handler for the 'get_day_trades' tool. Makes an authenticated API call to retrieve day trade activities for the specified portfolio with optional pagination parameters.
    case 'get_day_trades': response = await api.get(`/accounts/portfolios/${args.portfolioId}/day-trades`, { params: { page: args.page || 1, limit: args.limit || 50 } }); break;
  • Tool definition including name, description, and input schema for 'get_day_trades'. Used for tool listing and validation.
    { name: 'get_day_trades', description: 'Get day trade activity for a portfolio', inputSchema: { type: 'object', properties: { portfolioId: { type: 'string', description: 'Portfolio ID' }, page: { type: 'number', description: 'Page number (default: 1)' }, limit: { type: 'number', description: 'Results per page (default: 50)' } }, required: ['portfolioId'] } },
  • src/index.ts:388-392 (registration)
    Registers the list tools handler which returns the array of all tools including 'get_day_trades'.
    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