Skip to main content
Glama

Get PWA retention

get_pwa_retention
Read-onlyIdempotent

PWA install cohorts & retention: per-cohort day-N (or week-N) retention matrix, aggregate retention/LTV curve, DAU/WAU/MAU, open rate, CPI/ARPU/ARPPU. Cohorts = PWA installs in the period; opens are followed up to today. Cells for days a cohort has not reached yet are null.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_pwa_retention"
  }
}

Input Schema

NameRequiredDescriptionDefault
osNo
ispNo
pwaNoPWA id
cityNo
siteNoPlacement / zone id as passed by the ad network
sub1NoFilter by sub1
sub2NoFilter by sub2
sub3NoFilter by sub3
sub4NoFilter by sub4
sub5NoFilter by sub5
sub6NoFilter by sub6
sub7NoFilter by sub7
sub8NoFilter by sub8
sub9NoFilter by sub9
userNoWorkspace member id(s), comma-separated — the campaign owner at click time (needs the "See statistics per team member" permission; ignored otherwise)
offerNoOffer id
sub10NoFilter by sub10
sub11NoFilter by sub11
sub12NoFilter by sub12
sub13NoFilter by sub13
sub14NoFilter by sub14
sub15NoFilter by sub15
deviceNomobile / tablet / desktop
periodNoReporting period (default 7days). Use 'custom' with date_from/date_to.
sourceNoTraffic source id
browserNo
countryNoCountry ISO alpha-2 code, e.g. ES
date_toNoYYYY-MM-DD (with period=custom)
horizonNoDays/weeks after install to return (default 30 / 12, max 90 / 26)
landingNoLanding id
campaignNoCampaign ALIAS (the short code, not the numeric id)
creativeNoCreative id from the click URL
languageNo
pwa_tagsNoComma-separated tag ids — pwas carrying any of them
referrerNo
utm_termNoExact utm_term value from the click URL
date_fromNoYYYY-MM-DD (with period=custom)
pwa_groupNoPwa group id
smartlinkNoSmartlink id
source_idNoSource id as passed by the ad network
offer_tagsNoComma-separated tag ids — offers carrying any of them
utm_mediumNoExact utm_medium value from the click URL
utm_sourceNoExact utm_source value from the click URL
ad_campaignNoThe ad network's own campaign id (external_campaign_id)
aff_networkNoAffiliate network id
granularityNoCohort granularity (default day)
offer_groupNoOffer group id
source_tagsNoComma-separated tag ids — sources carrying any of them
unique_onlyNoCount unique clicks only
utm_contentNoExact utm_content value from the click URL
exclude_botsNoExclude bot traffic (bots are counted by default)
landing_tagsNoComma-separated tag ids — landings carrying any of them
source_groupNoSource group id
utm_campaignNoExact utm_campaign value from the click URL
campaign_tagsNoComma-separated tag ids — campaigns carrying any of them
landing_groupNoLanding group id
campaign_groupNoCampaign group id
smartlink_tagsNoComma-separated tag ids — smartlinks carrying any of them
connection_typeNo
smartlink_groupNoSmartlink group id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / period / enum
      Previous value: -[
      -  "today",
      -  "yesterday",
      -  "7days",
      -  "30days",
      -  "this_month",
      -  "last_month",
      -  "custom"
      -]New value: +[
      +  "today",
      +  "yesterday",
      +  "7days",
      +  "30days",
      +  "60days",
      +  "90days",
      +  "this_month",
      +  "last_month",
      +  "custom"
      +]
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. Beyond that, the description adds real semantics: cohorts are defined as PWA installs within the period, opens are followed up to today, and cells for days a cohort has not yet reached are null — the last point is the kind of subtle data-shape caveat an agent would otherwise misread as missing data. It does not describe response shape or performance, but the annotations lower that bar.

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?

Three tight sentences, front-loaded with the tool's identity and metric coverage, then cohort definition, then the null-cell caveat. Nothing is wasted, though the metric acronym stack (CPI/ARPU/ARPPU) is dense and some readers may need to parse it.

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

Completeness4/5

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

For a 60-parameter, no-required-parameter tool with no output schema, the description does the important work of stating what the response contains (matrix, curve, DAU/WAU/MAU) and how cohorts are bounded. The main residual gap is that with zero required parameters it never says what the default scope is when no filters are supplied, which is exactly the ambiguity a first-time caller hits.

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 description coverage is 88% across 60 parameters, so the schema already documents individual filters thoroughly (sub1-sub15, utm_*, tag filters, permission notes on 'user'). The description adds domain meaning only implicitly, through the day-N/week-N phrasing that corresponds to horizon and granularity. That matches the baseline-3 expectation when the schema does the heavy lifting.

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 resource (PWA install cohorts and retention) and enumerates the concrete outputs: per-cohort day-N/week-N retention matrix, aggregate retention/LTV curve, DAU/WAU/MAU, open rate, CPI/ARPU/ARPPU. An agent can tell this is a retention-analytics read, distinct from campaign or source lookups. It stops short of naming a sibling such as get_cohorts or get_statistics to draw the boundary explicitly, which keeps it from a 5.

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?

Usage is implied by the metric list — an agent infers it should call this when it needs PWA retention rather than e.g. click counts. However there are no explicit when/when-not statements and no routing to alternatives like get_cohorts or get_statistics, so a caller comparing near-siblings must guess which one to use.

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