download_analytics_report_segment
Download analytics report segment data from App Store Connect to analyze app performance metrics and user engagement patterns.
Instructions
Download data from an analytics report segment URL
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| segmentUrl | Yes | The URL of the analytics report segment to download |
Implementation Reference
- src/handlers/analytics.ts:83-91 (handler)The handler function that validates the segmentUrl input and delegates the download to AppStoreConnectClient.downloadFromUrl(segmentUrl). Returns download metadata including data, contentType, and size.async downloadAnalyticsReportSegment(args: { segmentUrl: string; }): Promise<{ data: any; contentType: string; size: string }> { const { segmentUrl } = args; validateRequired(args, ['segmentUrl']); return this.client.downloadFromUrl(segmentUrl); }
- src/index.ts:820-832 (schema)Tool schema definition specifying the name, description, and input schema (requiring segmentUrl string). Used in tool listing.name: "download_analytics_report_segment", description: "Download data from an analytics report segment URL", inputSchema: { type: "object", properties: { segmentUrl: { type: "string", description: "The URL of the analytics report segment to download" } }, required: ["segmentUrl"] } },
- src/index.ts:1397-1398 (registration)MCP tool call dispatch: Maps the tool name to the invocation of analyticsHandlers.downloadAnalyticsReportSegment method.case "download_analytics_report_segment": return { toolResult: await this.analyticsHandlers.downloadAnalyticsReportSegment(args as any) };