get_pie
Retrieve detailed information about a specific investment pie by its unique ID for portfolio analysis and management.
Instructions
Get detailed information about a specific pie by ID
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pieId": "<pieId>"
},
"name": "get_pie"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pieId | Yes | The unique identifier of the pie |
Implementation Reference
- src/index.ts:746-757 (handler)The handler logic for the 'get_pie' tool, which extracts the pie ID from arguments, calls the client, and returns the response.
case 'get_pie': { const { pieId } = PieIdInputSchema.parse(args); const pie = await client.getPie(pieId); return { content: [ { type: 'text', text: JSON.stringify(pie, null, 2), }, ], }; } - src/client.ts:225-227 (helper)The API client helper function that performs the actual network request to retrieve a specific pie by ID.
async getPie(pieId: number): Promise<Pie> { return this.request(`/equity/pies/${pieId}`, {}, PieSchema); } - src/index.ts:301-313 (registration)The tool registration for 'get_pie' in the list of available tools.
name: 'get_pie', description: 'Get detailed information about a specific pie by ID', inputSchema: { type: 'object', properties: { pieId: { type: 'number', description: 'The unique identifier of the pie', }, }, required: ['pieId'], }, },