Skip to main content
Glama
concavegit

App Store Connect MCP Server

by concavegit

list_analytics_report_segments

Retrieve segmented analytics data for App Store reports to analyze performance across different dimensions with downloadable content.

Instructions

Get segments for a specific analytics report (contains download URLs)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reportIdYesThe ID of the analytics report
limitNoMaximum number of segments to return (default: 100)

Implementation Reference

  • The handler function that lists analytics report segments by calling the App Store Connect API with the provided reportId and optional limit.
    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)
      });
    }
  • JSON schema defining the input parameters 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 registration in the CallToolRequestSchema handler switch statement, binding the tool name to the AnalyticsHandlers.listAnalyticsReportSegments method.
    case "list_analytics_report_segments":
      return { toolResult: await this.analyticsHandlers.listAnalyticsReportSegments(args as any) };
  • TypeScript interface defining the response structure for list analytics report segments.
    export interface ListAnalyticsReportSegmentsResponse {
      data: AnalyticsReportSegment[];
    }

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/concavegit/app-store-connect-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server