Skip to main content
Glama

Metadata MCP Connector

Get Demographic Country Statistics

demographic_country_stats
Read-only

Performance metrics grouped by Country.

USE FOR: Performance by country/geography, country-level spending/conversions, geographic comparison, international campaign effectiveness, regional ROI/pipeline. NOT FOR: Account-level aggregates (use account_level_stats), campaign-level details (use experiment_performance_stats), ingredient-level (use performance_metrics).

CHANNELS: FACEBOOK, LINKEDIN, GOOGLE_ADS, INSTAGRAM (comma-separated for multiple)

TIMEFRAME: Supports standard (this/last quarter/month/week/year), period-based (today, yesterday), custom ranges ("last two months", "last 20 days"). ISO 8601 format. Default: current month.

METRICS: spent, impressions, clicks, leads, mqls | ctr, cpl, cpc, cpm, conversionRate, formConversionRate, mqlRate | totalOpps, totalTriggered, oppsAmount, triggeredAmount | cpMql, cpOppInfluenced, cpOppTriggered | channel, lastConvertedDate

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number for pagination (0-based). Example: page=0 for the first page.
sizeNoNumber of results per page. Default: 250; raise it (up to 10000) to pull every country in one call.
sortNoSorting criteria. Examples: 'spend,desc' (default), 'leads,desc', 'cpl,asc', 'impressions,desc'. Format: field,direction where direction is 'asc' or 'desc'.spend,desc
toMonthNoEnd date in ISO 8601 format (YYYY-MM-DDTHH:mm:ss.sssZ). Example: 2025-01-31T23:59:59.999Z. Required for custom date ranges.
channelsNoComma-separated channel names (e.g., 'LINKEDIN,FACEBOOK,INSTAGRAM,GOOGLE_ADS'). Leave empty for all channels.
fromMonthNoStart date in ISO 8601 format (YYYY-MM-DDTHH:mm:ss.sssZ). Example: 2025-01-01T00:00:00.000Z. Required for custom date ranges.
groupTypeNoGrouping type - currently only COUNTRY is supported for geographic breakdown.COUNTRY

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description supplements this with useful behavioral context: supported channels, timeframe shorthand and default (current month), and the full set of exposed metrics, all beyond what annotations provide.

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 description uses compact labeled sections (USE FOR, NOT FOR, CHANNELS, TIMEFRAME, METRICS), front-loads the core grouping behavior, and contains no filler. The longer METRICS list is justified because it informs both sortable fields and expected return dimensions.

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 read-only stats tool with no required parameters, this is largely complete: grouping, channels, timeframes, defaults, metrics, and sibling routing are all covered. The only notable gap is that no output schema exists and the description does not describe the exact response envelope, though the metric list substantially mitigates this.

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 description coverage is 100%, so the baseline is 3, but the description adds real value by enumerating valid channels, documenting timeframe variants like 'last two months' and 'last 20 days', listing available metrics, and noting the default current month. This goes beyond the schema without contradicting it.

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 opens with 'Performance metrics grouped by Country', giving a specific verb, resource, and grouping dimension. It also explicitly distinguishes itself from sibling tools: account-level aggregates should use account_level_stats, campaign-level details use experiment_performance_stats, and ingredient-level uses performance_metrics.

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

Usage Guidelines5/5

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

The USE FOR section enumerates concrete scenarios: performance by country/geography, country-level spending/conversions, geographic comparison, international campaign effectiveness, and regional ROI/pipeline. The NOT FOR section names the exact alternatives to use instead, leaving no ambiguity about when to choose a sibling tool.

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