Skip to main content
Glama

App Sales (App Store Connect)

sonar_app_sales
Read-onlyIdempotent

App Store Connect sales for one of your own iOS apps: daily first-time downloads, redownloads, in-app purchase units and approximate USD proceeds (proceeds_usd_approx, converted with a static FX table — present it as approximate), window totals, and a per-country breakdown sorted by downloads. Same numbers as the Performance page. iOS only. Requires the Indie or Agency plan AND an App Store Connect connection at /settings/connections. Always check status: anything other than ready (not_connected, not_ios, app_not_in_account, pending, key_lacks_analytics) means there's no data and message says how to fix it — never read an empty series as zero. Days Apple hasn't reported yet have reported: false and null metrics.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "app_id": "<app_id>"
    },
    "name": "sonar_app_sales"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoLast day of the window (YYYY-MM-DD, inclusive). Default yesterday (UTC) — Apple posts a day the next morning at the earliest.
daysNoWindow length in days (1-366) when `start` is omitted. Default 30.
startNoFirst day of the window (YYYY-MM-DD, inclusive). Omit to count `days` back from `end`.
storeNoOnly needed when `app_id` is a store id tracked in both stores. App Store Connect data is iOS-only.
app_idYesSonar app UUID of one of your own tracked iOS apps — the `id` returned by sonar_list_apps or sonar_create_product. The app's store id (bundle id) also works; pass `store` if it exists in both stores.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already establish readOnly/idempotent/non-destructive, and the description goes well beyond them: it discloses the static-FX approximation of proceeds and mandates presenting it as approximate, enumerates the failure status values (not_connected, not_ios, app_not_in_account, pending, key_lacks_analytics), and warns that unreported days carry `reported: false` with null metrics. The "never read an empty series as zero" warning is a real behavioral trap being pre-empted.

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?

Front-loaded with purpose and metrics, then prerequisites, then the status-handling rule — a sensible order with no filler sentences. It is dense and runs long in places (the parenthetical FX caveat and the status enumeration are packed into single sentences), but essentially every clause contributes operational value.

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

Completeness5/5

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

There is no output schema, and the description compensates fully by documenting the response shape: the `status` discriminator, `message` for remediation, per-day `reported` flags, null semantics, and the country breakdown sort order. Combined with the authentication prerequisites, an agent has everything needed to call it and interpret the result correctly.

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

Parameters3/5

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

Schema coverage is 100%, so every parameter is already documented with format, defaults, bounds and enum. The description adds no new syntax or constraint for app_id/start/end/days/store beyond what the schema states. It contributes meaning about the response shape (status, message, reported) rather than about input parameters, so the baseline 3 applies.

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 names a specific verb and resource — App Store Connect sales for one of your own iOS apps — and enumerates the exact metrics returned (first-time downloads, redownloads, IAP units, approximate USD proceeds, country breakdown). It clearly bounds scope with "iOS only" and "one of your own" apps. It stops short of naming a sibling (e.g. sonar_app_revenue) to contrast with, so an agent must still infer the boundary from metrics alone.

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

Usage Guidelines4/5

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

Concrete preconditions are given: Indie or Agency plan plus an App Store Connect connection at /settings/connections, and iOS-only scope. The instruction to always check `status` and treat non-`ready` values as "no data" rather than zero is exactly the kind of usage guidance that prevents wrong calls. No explicit when-to-use-this-vs-alternatives routing is offered, which keeps it below a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.