Skip to main content
Glama

Objetivos y conversiones

get_goals
Read-onlyIdempotent

Objetivos y conversiones. Objetivos de la web con sus conversiones y tasa sobre las visitas.

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

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

C2.5/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. Beyond that the description only hints that results carry conversions and a conversion rate over visits; it says nothing about filtering behavior, the 30d default period, the from/to vs period constraints, or how empty results arise.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with no filler, and the topic is front-loaded. However, the first sentence duplicates the title verbatim, so one of the two sentences earns no information.

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

Completeness2/5

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

This is a 20-parameter, filter-heavy read tool with no output schema, and the description is two short sentences. It does not cover the output shape (beyond mentioning conversions and rate), defaults, or how it relates to list_goals, leaving significant gaps for an agent to guess at.

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 enums for period and compare and detailed from/to semantics, so the schema carries the full burden. The description adds no parameter meaning of its own; 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 text names the resource and the metrics returned ('Objetivos de la web con sus conversiones y tasa sobre las visitas'), which tells the agent roughly what comes back. But it opens with 'Objetivos y conversiones', a near-verbatim restatement of the title, and no verb (fetch/list) is used. It also fails to distinguish this tool from the sibling list_goals, which an agent would likely consider equivalent.

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 when-to-use guidance at all: nothing says whether to call this instead of list_goals, get_stats_breakdown, or get_stats_overview, nor what the required site_id context implies. The agent must infer the tool's role purely from the name and sibling set.

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