Skip to main content
Glama

Get attribution, install and KPI reporting

get_attribution_report
Read-only

Where installs and revenue came from, on the same definitions as the dashboard and the API. An install is a device's first SDK launch (install_at) in the range; server-only users are never installs. Non-organic = installs with an attribution that is exact (store referrer, Apple Ads, claimed or opened link, clipboard, code, product page, ad id), weak (UTM only) or modelled (Android/web IP match within 60 minutes; never iOS), not retargeting and not fraud-flagged; organic = installs − non_organic − fraud_flagged. Installs from test sources are left out (count in test_installs) unless include_test is true. summary: totals, exact_installs / weak_installs / modelled_installs, exact_match_rate, fraud_flagged, reinstalls, CVR (installs whose winning touch is a /l click ÷ unique non-bot /l clicks), weighted D1/D7 retention, revenue by PAYMENT date (revenue, per currency), by_platform, rules_changed_at (when the current counting rules began; numbers before it were counted under the old rules and are not recomputed) and time_zone. kpis: the same split per source / campaign / link / day / platform, with spend, cohort revenue (paid in the range by installs from the range) and ROAS = net cohort revenue ÷ spend; revenue_by_payment_date is the separate payment-date figure. installs: individual installs with match_type, match_kind, confidence, fraud_rule and is_reinstall. accuracy: exact-match rate by day, platform and link, and how often a modelled guess was later replaced by an exact match. Money is micros in the currency named beside it; never add amounts of different currencies. Default range: the last 28 days (until − 27 days through today) in the app's time zone.

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": {
      "view": "<view>"
    },
    "name": "get_attribution_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
viewYesWhich report to return
limitNoFor view=installs (default 100)
sinceNoYYYY-MM-DD, first day (default: until − 27 days)
untilNoYYYY-MM-DD, last day (default: today in the app's time zone)
group_byNoFor view=kpis (default source)
include_testNoKeep installs from test sources (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / group_by / enum
      Previous value: -[
      -  "source",
      -  "campaign",
      -  "link",
      -  "day"
      -]New value: +[
      +  "source",
      +  "campaign",
      +  "link",
      +  "day",
      +  "platform"
      +]
    • addedInput schema / properties / include_test
      Added value: +{
      +  "description": "Keep installs from test sources (default false)",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / since / description
      Previous value: -"YYYY-MM-DD (default 28 days ago)"New value: +"YYYY-MM-DD, first day (default: until − 27 days)"
    • changedInput schema / properties / until / description
      Previous value: -"YYYY-MM-DD (default today)"New value: +"YYYY-MM-DD, last day (default: today in the app's time zone)"
    • changedInput schema / properties / view / enum
      Previous value: -[
      -  "summary",
      -  "kpis",
      -  "installs"
      -]New value: +[
      +  "summary",
      +  "kpis",
      +  "installs",
      +  "accuracy"
      +]
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare a safe read (readOnlyHint=true, destructiveHint=false), so the bar is lower, yet the description adds substantial behavior: exact/weak/modelled match definitions, that modelled matching never applies to iOS, how organic is derived, test-source exclusion, and the critical rules_changed_at caveat that pre-change numbers are not recomputed. It also warns money is in micros and must not be summed across currencies.

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 the purpose, then structured by backtick-quoted view name so an agent can scan for its target section. It is dense and long, but nearly every clause carries decision-relevant semantics (matching tiers, currency, date basis) rather than filler.

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?

With no output schema and four distinct return shapes, the description carries the full burden and meets it by describing what summary, kpis, installs, and accuracy each return, including the payment-date vs cohort-revenue distinction and ROAS formula. An agent can call this correctly without additional context.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: the default range is restated with its exact arithmetic (until − 27 days through today), the app time zone matters, and include_test is tied to the test_installs counter. It does not spell out limit behavior beyond what the schema already says.

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?

Clearly states this returns attribution/install/KPI reporting and enumerates the four views (summary, kpis, installs, accuracy) with what each contains. It never names or contrasts itself with plausible siblings like get_acquisition_report, get_appsflyer_attribution_summary, or get_analytics, so an agent must infer which reporting tool to pick.

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

Usage Guidelines3/5

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

The four view names and their contents imply when each view is appropriate, and the default 28-day range is stated. However, there is no explicit when-to-use / when-not-to-use guidance versus the acquisition, AppsFlyer, or analytics siblings, so tool selection is left to inference.

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.

Resources