Skip to main content
Glama

Get app stats

get_stats
Read-onlyIdempotent

Performance numbers for one app (the same numbers as the app's Analytics page): e.g. bundle revenue, popup sign-ups, cart upsell sales. Aggregates only, no customer data.

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": "<app>"
    },
    "name": "get_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesWhich EA app: sticky_cart = EA Sticky Add to Cart Drawer (cart drawer, sticky add-to-cart bar, quick buy, cart upsells, rewards / free-shipping goals, every editor setting incl. custom CSS / HTML and templates, cart A/B tests, cart translations, checkout payment / shipping method rules); bundles = EA Bundles & Quantity Breaks (bundle deals, quantity breaks, upsell popups, checkout upsells); popups = EA Email Popup & Spin Wheel (spin-to-win wheel and email / SMS sign-up popup campaigns); translate = EA AI Language Translate (store translation and language selector); accessibility = EA Accessibility ADA WCAG EAA (accessibility widget and store accessibility scans); page_speed = EA SEO & Page Speed Optimizer (speed optimisations and SEO); free_shipping_bar = EA Free Shipping Bar & Upsell (free shipping progress bar); rewards_bar = EA Rewards Bar & Free Gifts (gift and rewards progress bar); announcement_bar = EA Announcement Bar Banner (announcement bar); countdown_bar = EA Countdown Timer Bar (countdown timer bar)
storeNoWhich connected store (its myshopify address, e.g. other-store.myshopify.com). Leave it out for the default store; list_stores shows them.
periodNoDefault 30d. this_month / last_month are calendar months.

Output Schema

NameRequiredDescriptionDefault
appYesThe EA app id (as in the `app` argument).
notesNoHow to read the numbers.
periodNoThe period the numbers cover (label, dates).
metricsNoThe numbers: key, label, value (as on the app's Analytics page).
breakdownNoPer offer / campaign / bar numbers, when the app has them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / app / description
      Previous value: -"Which EA app: sticky_cart = EA • Sticky Cart (cart drawer, sticky add-to-cart bar, quick buy, cart upsells, rewards / free-shipping goals, every editor setting incl. custom CSS / HTML and templates, cart A/B tests, cart translations, checkout payment / shipping method rules); bundles = EA • Bundles & Upsell (bundle deals, quantity breaks, upsell popups, checkout upsells); popups = EA • Email Popups (spin-to-win wheel and email / SMS sign-up popup campaigns); translate = EA • Auto Translate (store translation and language selector); accessibility = EA • Accessibility (accessibility widget and store accessibility scans); page_speed = EA • SEO & Page Speed (speed optimisations and SEO); free_shipping_bar = EA • Free Shipping Bar (free shipping progress bar); rewards_bar = EA • Gift & Rewards Bar (gift and rewards progress bar); announcement_bar = EA • Announcement Bar (announcement bar); countdown_bar = EA • Countdown Bar (countdown timer bar)"New value: +"Which EA app: sticky_cart = EA Sticky Add to Cart Drawer (cart drawer, sticky add-to-cart bar, quick buy, cart upsells, rewards / free-shipping goals, every editor setting incl. custom CSS / HTML and templates, cart A/B tests, cart translations, checkout payment / shipping method rules); bundles = EA Bundles & Quantity Breaks (bundle deals, quantity breaks, upsell popups, checkout upsells); popups = EA Email Popup & Spin Wheel (spin-to-win wheel and email / SMS sign-up popup campaigns); translate = EA AI Language Translate (store translation and language selector); accessibility = EA Accessibility ADA WCAG EAA (accessibility widget and store accessibility scans); page_speed = EA SEO & Page Speed Optimizer (speed optimisations and SEO); free_shipping_bar = EA Free Shipping Bar & Upsell (free shipping progress bar); rewards_bar = EA Rewards Bar & Free Gifts (gift and rewards progress bar); announcement_bar = EA Announcement Bar Banner (announcement bar); countdown_bar = EA Countdown Timer Bar (countdown timer bar)"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "app": {
      +      "description": "The EA app id (as in the `app` argument).",
      +      "enum": [
      +        "sticky_cart",
      +        "bundles",
      +        "popups",
      +        "translate",
      +        "accessibility",
      +        "page_speed",
      +        "free_shipping_bar",
      +        "rewards_bar",
      +        "announcement_bar",
      +        "countdown_bar"
      +      ],
      +      "type": "string"
      +    },
      +    "breakdown": {
      +      "description": "Per offer / campaign / bar numbers, when the app has them."
      +    },
      +    "metrics": {
      +      "description": "The numbers: key, label, value (as on the app's Analytics page)."
      +    },
      +    "notes": {
      +      "description": "How to read the numbers."
      +    },
      +    "period": {
      +      "description": "The period the numbers cover (label, dates)."
      +    }
      +  },
      +  "required": [
      +    "app"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / app / description
      Previous value: -"Which EA app: sticky_cart = EA • Sticky Cart (cart drawer, sticky add-to-cart bar, quick buy, cart upsells, rewards / free-shipping goals, checkout payment / shipping method rules); bundles = EA • Bundles & Upsell (bundle deals, quantity breaks, upsell popups, checkout upsells); popups = EA • Email Popups (spin-to-win wheel and email / SMS sign-up popup campaigns); translate = EA • Auto Translate (store translation and language selector); accessibility = EA • Accessibility (accessibility widget and store accessibility scans); page_speed = EA • SEO & Page Speed (speed optimisations and SEO); free_shipping_bar = EA • Free Shipping Bar (free shipping progress bar); rewards_bar = EA • Gift & Rewards Bar (gift and rewards progress bar); announcement_bar = EA • Announcement Bar (announcement bar); countdown_bar = EA • Countdown Bar (countdown timer bar)"New value: +"Which EA app: sticky_cart = EA • Sticky Cart (cart drawer, sticky add-to-cart bar, quick buy, cart upsells, rewards / free-shipping goals, every editor setting incl. custom CSS / HTML and templates, cart A/B tests, cart translations, checkout payment / shipping method rules); bundles = EA • Bundles & Upsell (bundle deals, quantity breaks, upsell popups, checkout upsells); popups = EA • Email Popups (spin-to-win wheel and email / SMS sign-up popup campaigns); translate = EA • Auto Translate (store translation and language selector); accessibility = EA • Accessibility (accessibility widget and store accessibility scans); page_speed = EA • SEO & Page Speed (speed optimisations and SEO); free_shipping_bar = EA • Free Shipping Bar (free shipping progress bar); rewards_bar = EA • Gift & Rewards Bar (gift and rewards progress bar); announcement_bar = EA • Announcement Bar (announcement bar); countdown_bar = EA • Countdown Bar (countdown timer bar)"
  3. Changed1 schema field changed
    • changedInput schema / properties / app / description
      Previous value: -"Which EA app: sticky_cart = EA • Sticky Cart (cart drawer, sticky add-to-cart bar, quick buy, cart upsells, rewards / free-shipping goals); bundles = EA • Bundles & Upsell (bundle deals, quantity breaks, upsell popups, checkout upsells); popups = EA • Email Popups (spin-to-win wheel and email / SMS sign-up popup campaigns); translate = EA • Auto Translate (store translation and language selector); accessibility = EA • Accessibility (accessibility widget and store accessibility scans); page_speed = EA • SEO & Page Speed (speed optimisations and SEO); free_shipping_bar = EA • Free Shipping Bar (free shipping progress bar); rewards_bar = EA • Gift & Rewards Bar (gift and rewards progress bar); announcement_bar = EA • Announcement Bar (announcement bar); countdown_bar = EA • Countdown Bar (countdown timer bar)"New value: +"Which EA app: sticky_cart = EA • Sticky Cart (cart drawer, sticky add-to-cart bar, quick buy, cart upsells, rewards / free-shipping goals, checkout payment / shipping method rules); bundles = EA • Bundles & Upsell (bundle deals, quantity breaks, upsell popups, checkout upsells); popups = EA • Email Popups (spin-to-win wheel and email / SMS sign-up popup campaigns); translate = EA • Auto Translate (store translation and language selector); accessibility = EA • Accessibility (accessibility widget and store accessibility scans); page_speed = EA • SEO & Page Speed (speed optimisations and SEO); free_shipping_bar = EA • Free Shipping Bar (free shipping progress bar); rewards_bar = EA • Gift & Rewards Bar (gift and rewards progress bar); announcement_bar = EA • Announcement Bar (announcement bar); countdown_bar = EA • Countdown Bar (countdown timer bar)"
  4. Changed1 schema field changed
    • changedInput schema / properties / app / description
      Previous value: -"Which EA app: sticky_cart = EA • Sticky Cart (cart drawer, sticky add-to-cart bar, quick buy, cart upsells, rewards / free-shipping goals); bundles = EA • Bundles & Upsell (bundle deals, quantity breaks, upsell popups, checkout upsells); popups = EA • Email Popups (spin-to-win wheel and email / SMS sign-up popup campaigns); translate = EA • Auto Translate (store translation and language selector); accessibility = EA • Accessibility (accessibility widget and store accessibility scans); page_speed = EA • Page Speed Boost (speed optimisations and SEO); free_shipping_bar = EA • Free Shipping Bar (free shipping progress bar); rewards_bar = EA • Gift & Rewards Bar (gift and rewards progress bar); announcement_bar = EA • Announcement Bar (announcement bar); countdown_bar = EA • Countdown Bar (countdown timer bar)"New value: +"Which EA app: sticky_cart = EA • Sticky Cart (cart drawer, sticky add-to-cart bar, quick buy, cart upsells, rewards / free-shipping goals); bundles = EA • Bundles & Upsell (bundle deals, quantity breaks, upsell popups, checkout upsells); popups = EA • Email Popups (spin-to-win wheel and email / SMS sign-up popup campaigns); translate = EA • Auto Translate (store translation and language selector); accessibility = EA • Accessibility (accessibility widget and store accessibility scans); page_speed = EA • SEO & Page Speed (speed optimisations and SEO); free_shipping_bar = EA • Free Shipping Bar (free shipping progress bar); rewards_bar = EA • Gift & Rewards Bar (gift and rewards progress bar); announcement_bar = EA • Announcement Bar (announcement bar); countdown_bar = EA • Countdown Bar (countdown timer bar)"
  5. First observed

TDQS

A4.3/5.0
Behavior4/5

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

The annotations already declare a safe read-only, idempotent, non-destructive operation. The description adds meaningful behavioral context by specifying aggregate-only data and no customer data, which is important for privacy and scope expectations, though it does not discuss auth or rate limits.

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

Conciseness5/5

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

The definition is one compact sentence with a parenthetical example list, and the core scope is front-loaded. Every phrase contributes to purpose, output scope, or data-privacy expectations.

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?

For a simple read-only analytics tool with rich schema descriptions and an output schema, the description is complete enough to set expectations. It states what the numbers are, gives examples, and clarifies the aggregate/no-customer-data boundary.

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?

The input schema has 100% description coverage and documents the app, store, and period parameters in detail. The description does not add further meaning about parameter usage or interactions, so it sits at the baseline for schema-covered parameters.

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

Purpose5/5

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

The description states a specific resource and action: performance numbers for one app, with examples such as bundle revenue, popup sign-ups, and cart upsell sales. It also distinguishes the output as aggregate analytics rather than configuration or item data, which differentiates it from the setup/item-oriented siblings.

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?

It gives clear usage context by tying the tool to the app's Analytics page and aggregate performance reporting. It does not explicitly name when not to use it or point to a specific sibling alternative, so it stops short of full when/when-not guidance.

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