list_analytics_report_segments
Retrieve downloadable segments for App Store analytics reports to analyze performance data by specific criteria and time periods.
Instructions
Get segments for a specific analytics report (contains download URLs)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reportId | Yes | The ID of the analytics report | |
| limit | No | Maximum number of segments to return (default: 100) |
Implementation Reference
- src/handlers/analytics.ts:70-81 (handler)The core handler function that implements the logic for listing analytics report segments by making an API call to the App Store Connect client.async listAnalyticsReportSegments(args: { reportId: string; limit?: number; }): Promise<ListAnalyticsReportSegmentsResponse> { const { reportId, limit = 100 } = args; validateRequired(args, ['reportId']); return this.client.get<ListAnalyticsReportSegmentsResponse>(`/analyticsReports/${reportId}/segments`, { limit: sanitizeLimit(limit) }); }
- src/index.ts:800-817 (schema)Input schema and tool metadata definition for the list_analytics_report_segments tool.name: "list_analytics_report_segments", description: "Get segments for a specific analytics report (contains download URLs)", inputSchema: { type: "object", properties: { reportId: { type: "string", description: "The ID of the analytics report" }, limit: { type: "number", description: "Maximum number of segments to return (default: 100)", minimum: 1, maximum: 200 } }, required: ["reportId"] }
- src/index.ts:1394-1395 (registration)Tool dispatch registration in the MCP server callToolRequest handler switch statement.case "list_analytics_report_segments": return { toolResult: await this.analyticsHandlers.listAnalyticsReportSegments(args as any) };
- src/types/analytics.ts:76-78 (schema)TypeScript interface defining the structure of the response from list analytics report segments.export interface ListAnalyticsReportSegmentsResponse { data: AnalyticsReportSegment[]; }