Skip to main content
Glama

Desglose por dimensión

get_stats_breakdown
Read-onlyIdempotent

Desglose por dimensión. Filas ordenadas por la métrica principal. Las filas con menos de 3 se omiten (data.omitted). next_pages exige el filtro page. zones agrupa por las zonas de ciudades de la web (una ciudad cuenta en todas sus zonas; share es sobre el total de visitas del periodo). metros agrupa por área metropolitana del catálogo global (cada ciudad pertenece como mucho a un área; las áreas con menos de 5 visitas se omiten, sin fila (other)).

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>",
      "dimension": "<dimension>"
    },
    "name": "get_stats_breakdown"
  }
}

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 `_`).
limitNoMáximo de filas.
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`).
dimensionYesDimensión a desglosar.
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

A3.5/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive behavior, so the bar is lower, yet the description still adds real substance: rows below 3 are dropped into `data.omitted`, metro areas below 5 visits are dropped with no `(other)` row, and a city counts in every zone it belongs to while `share` is relative to total period visits. These data-shaping rules materially affect interpretation of results and are not derivable from the annotations.

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?

Dense but efficient: five short sentences, each carrying a distinct rule about ordering, omission thresholds, or grouping. The only waste is the opening sentence, which merely echoes the title instead of front-loading the aggregation scope.

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

Completeness3/5

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

With 22 parameters and no output schema, the description covers the trickiest grouping semantics well but leaves the response shape mostly unexplained (`data.omitted`, `share`, `next_pages` are named without describing structure), and omits tool-selection guidance against overview/timeseries. It is adequate, not complete, for a tool of this complexity.

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 coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: the hidden dependency that `next_pages` requires `page`, and the double-counting/filtering semantics of the `zones` and `metros` dimension values. The remaining parameter explanations are left to the schema.

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?

"Desglose por dimensión" essentially restates the title, and the first sentence only adds that rows are sorted by the main metric. The zones/metros sentences reveal that this aggregates traffic statistics, but the description never explicitly distinguishes itself from get_stats_overview or get_stats_timeseries, leaving the agent to infer that this is the per-dimension aggregation variant.

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?

It gives conditional guidance tied to parameters: `next_pages` requires the `page` filter, and the zones vs metros choice is explained by their different grouping rules and minimum thresholds. However, there is no explicit statement of when to pick this tool over its siblings, so usage is implied rather than directed.

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