Skip to main content
Glama

Serie temporal

get_stats_timeseries
Read-onlyIdempotent

Serie temporal. Un punto por intervalo, con ceros incluidos. week empieza en lunes (ISO) y quarter es trimestre natural, ambos en la zona de la web; los intervalos de los extremos pueden ser parciales. hour admite como máximo 31 días.

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_timeseries"
  }
}

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`).
intervalNoIntervalo de agrupación.day
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 declare readOnlyHint, idempotentHint, non-destructive and a closed world, so the safety profile is covered. The description adds genuinely new behavioral facts beyond that: zero-filled series, ISO Monday week start and natural quarters resolved in the site timezone, partial intervals at the extremes, and a hard 31-day ceiling for hourly series.

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?

Two short sentences, front-loaded with the return shape before the interval caveats, and each clause carries information. The only waste is the leading 'Serie temporal.', which duplicates the title without adding anything.

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 21 parameters and no output schema, the description should carry more of the return-value burden; it covers shape (one point per interval, zeros included) but never says which measurement the points represent, nor does it mention the `compare` overlay effect. Given the tool's complexity, it is adequate but leaves important gaps.

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 earns above that by defining the semantics of the `interval` enum ('week' = ISO Monday start, 'quarter' = natural quarter, both in the site timezone) that the schema only labels as 'Intervalo de agrupación'. It also states the `hour` maximum span, a real constraint not present in 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?

The opening 'Serie temporal' merely restates the title, and nowhere does the description say which metric is being returned (visits, visitors, pageviews) or how this differs from get_stats_overview or get_stats_breakdown. The second sentence does clarify output shape ('un punto por intervalo, con ceros incluidos'), which lifts it above a pure tautology but still leaves the resource under-specified.

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 guidance on when to pick a timeseries over the sibling breakdown/overview/compare_periods tools. The only conditional information concerns the `interval` parameter (hour capped at 31 days) and partial boundary intervals, which is parameter semantics rather than tool selection 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