Skip to main content
Glama
concavegit

App Store Connect MCP Server

by concavegit

list_analytics_reports

Retrieve available analytics reports for a specific report request in App Store Connect, filtering by category and controlling result quantity.

Instructions

Get available analytics reports for a specific report request

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reportRequestIdYesThe ID of the analytics report request
limitNoMaximum number of reports to return (default: 100)
filterNo

Implementation Reference

  • The main handler function that implements the core logic for the 'list_analytics_reports' tool. It validates inputs, builds query parameters, and calls the App Store Connect API to retrieve the list of analytics reports.
    async listAnalyticsReports(args: {
      reportRequestId: string;
      limit?: number;
      filter?: {
        category?: AnalyticsReportCategory;
      };
    }): Promise<ListAnalyticsReportsResponse> {
      const { reportRequestId, limit = 100, filter } = args;
      
      validateRequired(args, ['reportRequestId']);
    
      const params: Record<string, any> = {
        limit: sanitizeLimit(limit)
      };
    
      Object.assign(params, buildFilterParams(filter));
    
      return this.client.get<ListAnalyticsReportsResponse>(`/analyticsReportRequests/${reportRequestId}/reports`, params);
    }
  • TypeScript interface defining the response structure for the listAnalyticsReports API call, used in the handler's return type.
    export interface ListAnalyticsReportsResponse {
      data: AnalyticsReport[];
    }

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description lacks behavioral details such as whether the operation is read-only, required permissions, pagination behavior, or rate limits. With no annotations provided, the description carries full burden but fails to disclose these traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, concise sentence that effectively states the core purpose. It is front-loaded and avoids unnecessary words, making it easy to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no output schema and three parameters, the description is too brief. It does not explain the return format, pagination, or what 'available' means, leaving significant gaps in understanding.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 67% (only two out of three top-level parameters have descriptions; 'filter' lacks a top-level description). The description adds no additional meaning beyond the schema, repeating only the requirement of reportRequestId implicitly.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool lists available analytics reports, specifying it is for a specific report request. The verb and resource are clear, but it does not explicitly differentiate from the sibling tool 'list_analytics_report_segments', which lists segments rather than reports.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives like 'create_analytics_report_request' or 'download_analytics_report_segment'. There is no mention of prerequisites or context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.