Skip to main content
Glama

Get site metrics

get_site_metrics
Read-onlyIdempotent

Summarize daily metrics for a website over the last N days: site totals per source and metric with total, average (total divided by days), latest value and latestDate. Sources include gsc, ga4, uptime, chatgpt_ads (impressions, clicks, spend in EUR, conversions) and google_ads (impressions, clicks, spend in the ad account currency, conversions, conversion_value). The uptime metric ssl_days_left counts the days until the newest certificate issued for the site's host name expires, looked up once a day in Certificate Transparency logs; it does not show which certificate the server serves. Also returns pagespeed (latest PageSpeed lab results per page and device: performance, lcpMs, cls, tbtMs, inpMs, with measuredOn, status and httpStatus; status page_error means the home page answered with HTTP error httpStatus, so no new score was stored) and crux (latest CrUX p75 field data per device: lcpMs, inpMs, cls).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoNumber of days to include (default 30).
site_idYesThe site id, as returned by list_sites.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-open-world), and the description goes well beyond them with operational semantics: the ssl_days_left metric is explained plus its caveat that it 'does not show which certificate the server serves', and the page_error status is defined as the home page answering with an HTTP error so no score was stored. These are non-obvious behavioral details that materially change how results are interpreted.

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?

The core purpose is front-loaded in the first clause, and because there is no output schema, the long enumeration of returned sources and fields earns its place. The second half is one run-on sentence with heavy nested clauses, which is dense but not padded.

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?

With no output schema, the description must carry the return-value burden, and it does so thoroughly for every source including pagespeed and crux. Annotations handle safety, so the only real gap is the absence of usage guidance and any note about permission or rate constraints.

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% and both parameters (days, site_id) are documented in the schema, including the default of 30 and the pointer to list_sites. The description's phrasing 'over the last N days' only loosely echoes the days parameter and adds no format or interaction detail beyond the schema, so the baseline 3 applies.

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

Purpose4/5

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

The description gives a precise verb and resource ('Summarize daily metrics for a website over the last N days') and enumerates exactly which sources and metrics are covered (gsc, ga4, uptime, chatgpt_ads, google_ads, plus pagespeed and crux). That level of detail effectively distinguishes it from siblings, though no sibling is named explicitly, so it falls just short of a 5.

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?

Usage is only implied: 'over the last N days' tells an agent this is the historical daily-metrics summarizer, but there is no when-to-use/when-not-to-use guidance and no pointer to alternatives such as get_pages, get_ai_visibility or get_report. An agent must infer the right context from the enumeration of returned sources.

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