get_portfolio_activities
Retrieve activity logs for a specific portfolio, enabling users to track actions and filter results by category, page, or limit for detailed insights.
Instructions
Get activity log for a portfolio
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Filter by category (optional) | |
| limit | No | Results per page (default: 20) | |
| page | No | Page number (default: 1) | |
| portfolioId | Yes | Portfolio ID |
Implementation Reference
- src/index.ts:515-524 (handler)Handler implementation for the 'get_portfolio_activities' tool. Constructs query parameters for pagination and optional category filter, then fetches activity log via API call to `/activity-log/portfolio/{portfolioId}`.case 'get_portfolio_activities': const params: any = { page: args.page || 1, limit: args.limit || 20 }; if (args.category) { params.category = args.category; } response = await api.get(`/activity-log/portfolio/${args.portfolioId}`, { params }); break;
- src/index.ts:345-357 (registration)Tool registration in the tools array, including name, description, and input schema definition for validation.name: 'get_portfolio_activities', description: 'Get activity log 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: 20)' }, category: { type: 'string', description: 'Filter by category (optional)' } }, required: ['portfolioId'] } },
- src/index.ts:347-356 (schema)Input schema for the 'get_portfolio_activities' tool, defining parameters and validation rules.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: 20)' }, category: { type: 'string', description: 'Filter by category (optional)' } }, required: ['portfolioId'] }