Skip to main content
Glama

KPIs del periodo

get_stats_overview
Read-onlyIdempotent

KPIs del periodo. Los mismos indicadores que el panel, con su kind (exact/estimated). sessions y visitors solo se miden con la medición ampliada (visitantes que lo aceptan todo): son null (no medido, no cero) si el periodo no tiene ninguna página vista ampliada (measurement.enhanced = 0).

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": {
      "site_id": "<site_id>"
    },
    "name": "get_stats_overview"
  }
}

Input Schema

NameRequiredDescriptionDefault
osNoSistema operativo.
toNoÚltimo día (YYYY-MM-DD, inclusivo). Sin `period` implica `period=custom`; con otro periodo es 400.
cityNoCiudad (nombre en inglés).
fromNoPrimer día (YYYY-MM-DD, inclusivo). Sin `period` implica `period=custom`; con otro periodo es 400.
pageNoSolo vistas de esa ruta (por ejemplo `/precios`).
zoneNoSolo las visitas de una zona de ciudades de la web (id de zona, el `value` de `breakdown?dimension=zones`). Una zona desconocida da un resultado vacío.
entryNoSolo visitas cuya página de entrada es esa ruta.
eventNoSolo ese evento personalizado (no puede empezar por `_`).
metroNoSolo las visitas de un área metropolitana del catálogo global (`cbsa-<n>` o `fua-<n>`, el `value` de `breakdown?dimension=metros`). Un área desconocida da un resultado vacío.
deviceNo`desktop`, `mobile`, `tablet` u `other`.
periodNoPeriodo, en días naturales de la zona horaria de la web. Con `custom` hay que enviar `from` y `to`.30d
regionNoRegión (nombre en inglés).
sourceNoFuente de tráfico (`google`, `newsletter`...).
browserNoNavegador.
compareNoCon `1` añade el periodo anterior de la misma duración.0
countryNoPaís (código ISO 3166-1 alfa-2).
site_idYesId de la web (campo `id` de `/v1/sites`).
utm_mediumNoValor de utm_medium.
utm_sourceNoValor de utm_source.
utm_campaignNoValor de utm_campaign.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already carry the read-only/idempotent safety profile, so the description's job is to add behavioral context, and it does: it discloses that each indicator carries a `kind` of `exact`/`estimated`, and that `sessions`/`visitors` are `null` (unmeasured, not zero) when `measurement.enhanced` is 0. That null-vs-zero rule is a genuinely valuable, non-obvious caveat that prevents invalid interpretation and is not available from annotations or schema.

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 compact sentences with no filler, and the measurement caveat is placed where a caller will read it before invoking. The opening phrase duplicates the title's information, which is a small waste but not damaging.

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?

Missing: no output schema and 20 filter parameters, so the description must at least explain the return's shape and pitfalls, which it does by covering `kind` semantics and the null rule for the two enhanced-measurement metrics. It doesn't enumerate every KPI returned, but for a filter-heavy read tool with full schema coverage this is a solid level of completeness.

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 100% across all 20 parameters, including enum and default documentation for `period` and `compare`, so the schema does the heavy lifting. The description adds no parameter-level meaning (no mention of period defaults, the from/to + custom interaction, or filter combinations), so the baseline 3 applies.

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

Purpose3/5

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

The first sentence 'KPIs del periodo' essentially restates the title, and it is only the follow-up clause ('Los mismos indicadores que el panel') that clarifies the tool returns an aggregate metric snapshot for a period. It never names the concrete metrics (pageviews, bounce rate, duration) nor distinguishes itself from siblings such as get_stats_breakdown or get_stats_timeseries.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance: nothing says to pick this tool for a single aggregate summary versus get_stats_breakdown for per-dimension detail or get_stats_timeseries for a temporal curve. The only conditional guidance is the null-measurement caveat, which is about interpreting output, not about tool selection.

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