Skip to main content
Glama

agentanalytics.sh: Analytics Your Agent Can Use

Web vitals

web_vitals
Read-only

Use when you need Core Web Vitals (POST /vitals). Returns p75 and ratings. p75 is the headline. Pro read: 403 PRO_REQUIRED is not metered, and a success is one metered read. The event is page_view, collected with data-track-vitals="true". Thresholds: https://web.dev/articles/vitals. LCP 2500 ms / 4000 ms, INP 200 ms / 500 ms, CLS 0.1 / 0.25, FCP 1800 ms / 3000 ms, TTFB 800 ms. cwv_pass needs good LCP, INP, and CLS p75.

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": {
      "project": "<project>"
    },
    "name": "web_vitals"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoLookback in days. Omit when date_from and date_to are set
limitNoMaximum rows. Defaults to 10 and maxes at 20
date_toNoInclusive end date (YYYY-MM-DD). Optional
projectYesProject name or ID
group_byNoSplit by device or path. Omit for one row.
date_fromNoInclusive start date (YYYY-MM-DD). Optional

Output Schema

NameRequiredDescriptionDefault
dataNo
typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

The annotations only declare it is a safe read; the description goes well beyond them by disclosing the metering model (403 PRO_REQUIRED is not metered, a success costs one metered read), which is critical for how an agent retries or batches calls. It also identifies the underlying event (page_view with data-track-vitals="true"), grounding what the numbers actually measure.

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?

The use clause is correctly front-loaded and no sentence is pure filler, but the body is a run of telegraphic fragments mixing inputs, outputs, metering, event plumbing, and threshold constants. The five threshold pairs and the web.dev link are reference material that crowds out arguments an agent might need at call time.

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 an output schema present and annotations covering safety, the description still adds the metering and pass-criteria context an agent needs to interpret and budget the call. It never addresses the grouping/lookback choices (group_by, days vs. date range) at a conceptual level, leaving those entirely to the schema.

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 coverage is 100%, so days, limit, date_from/date_to, project, and group_by are already documented in the schema, and the description adds nothing to them. The one extra detail, the cwv_pass definition, describes the output rather than any input, so 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?

States the resource unambiguously (Core Web Vitals), names the underlying endpoint (POST /vitals), and says what comes back (p75 and ratings). It does not explicitly contrast with siblings like analytics_overview or compare, so an agent must infer that this is the vitals-specific read rather than a general analytics read.

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

Usage Guidelines4/5

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

"Use when you need Core Web Vitals" gives an explicit triggering condition, and the description clarifies which metric is the headline (p75) so the agent knows what to report. There are no exclusions or named alternatives telling the agent when another tool is the better choice.

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