Skip to main content
Glama
paperinvest

Paper MCP Server

by paperinvest

get_portfolio_options

Retrieve all option positions within a specified portfolio using the Paper MCP Server, enabling efficient monitoring and management of trading strategies.

Instructions

Get all option positions in a portfolio

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portfolioIdYesPortfolio ID

Implementation Reference

  • Handler implementation that performs an API GET request to retrieve all option positions for the specified portfolio.
    case 'get_portfolio_options': response = await api.get(`/accounts/portfolios/${args.portfolioId}/options`); break;
  • Input schema definition requiring a 'portfolioId' string parameter.
    inputSchema: { type: 'object', properties: { portfolioId: { type: 'string', description: 'Portfolio ID' } }, required: ['portfolioId'] }
  • src/index.ts:167-177 (registration)
    Tool definition and registration in the tools array used by listTools endpoint.
    { name: 'get_portfolio_options', description: 'Get all option positions in a portfolio', inputSchema: { type: 'object', properties: { portfolioId: { type: 'string', description: 'Portfolio ID' } }, required: ['portfolioId'] } },

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