Skip to main content
Glama
admob-mcp

admob-mcp

by oleksandrtry

Compare two periods

compare_periods
Read-onlyIdempotent

Compare AdMob KPIs against a previous-period or custom baseline to explain revenue changes, ranking apps, ad units, countries, formats, platforms, or versions by volume or eCPM contribution.

Instructions

Compares AdMob Network KPIs between a period and a baseline (previous period, same period last year, or custom), overall and per app / ad unit / country / format / platform / version. Rows are ranked by their absolute contribution to the change, and show whether it came from volume (impressions) or price (eCPM). Use for 'why did revenue change?'.

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": "compare_periods"
  }
}

Input Schema

NameRequiredDescriptionDefault
top_nNo
rank_byNoearnings
baselineNoprevious_period = the same number of days immediately before.previous_period
dimensionNoAPP
account_idNoAdMob publisher ID, e.g. pub-1234567890123456. Optional: defaults to ADMOB_ACCOUNT_ID or the only account.
date_rangeNoCurrent period. Defaults to last_7_days.
baseline_end_dateNoYYYY-MM-DD, for baseline=custom.
baseline_start_dateNoYYYY-MM-DD, for baseline=custom.

Output Schema

NameRequiredDescriptionDefault
groupsYes
currentYes
baselineYes
currencyYes
warningsYes
account_idYes
total_groupsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so safety is covered. The description adds real behavioral context beyond them: rows are ranked by absolute contribution to the change and decomposed into volume (impressions) versus price (eCPM), which tells the agent what the output means analytically. No mention of auth, quotas, or result size 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?

Two dense sentences, front-loaded with the comparison semantics and finished with the concrete question it answers. No filler, no repetition of the title.

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?

With three enums, a nested date_range object, and all 8 parameters optional, the description covers the core knobs (baseline type, dimensions, ranking, decomposition) and an output schema exists to explain returns. Minor gaps remain around top_n semantics and default account resolution, but nothing an agent would likely get wrong.

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 63%, above the midpoint, and the schema itself documents baseline, account_id, date_range, and the custom baseline dates. The description's list of baseline types and breakdown dimensions largely restates enum values, though the 'ranked by absolute contribution' phrasing does illuminate what rank_by/top_n control. It adds meaning but not a lot.

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?

Names a specific operation (compares KPIs between a period and a baseline) and enumerates the supported breakdowns (app, ad unit, country, format, platform, version), which is far more than a restatement of the name. An agent can distinguish this analytical comparison tool from reporting siblings like run_network_report on scope 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?

The closing line 'Use for "why did revenue change?"' gives an explicit trigger condition that a raw report tool would not satisfy. It stops short of naming alternatives or stating when not to use it, so it gets a 4 rather than a 5.

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