Skip to main content
Glama

get_histogram

Read-only

What is the shape of one metric? Returns histogram buckets (count + share) plus summary stats.

Metric: one of lcp, inp, cls, fcp, ttfb (field CWV), or a scalar technique path when available.

Filter: same as get_metrics (device, cms, framework, cdn, provider). No group_by — call get_metrics with group_by to compare segments, then get_histogram per segment if needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filterNoAND filters. Omit for all sites in the dataset. Keys: device (all|phone|desktop), cms, framework, cdn, provider (key), provider_category (e.g. analytics — use with provider or alone is not enough; prefer group_by for rankings).
metricYeslcp | inp | cls | fcp | ttfb, or a contract scalar path.

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false. The description adds that the tool returns histogram buckets and summary stats, which is consistent and provides incremental context about output behavior. No contradictions.

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

Conciseness5/5

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

Three sentences, front-loaded with the core question. Every sentence adds distinct value: purpose, metric options, and usage guidelines. No redundancy or fluff.

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?

Given the tool's simplicity (2 parameters, 1 required) and no output schema, the description adequately explains what the tool returns and how to use it. A brief mention of the exact structure of histogram buckets or summary stats would improve completeness, but current level is sufficient.

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 baseline is 3. The description adds value by clarifying that metric includes 'field CWV' or a 'scalar technique path when available,' and that filter keys are the same as get_metrics. This reinforces and slightly expands on schema descriptions.

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

Purpose5/5

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

Description uses 'What is the shape of one metric?' to clearly state the unique purpose of the tool. It specifies exactly what is returned (histogram buckets plus summary stats) and lists the allowed metrics and filter options, differentiating it from sibling tool get_metrics.

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

Usage Guidelines5/5

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

Explicitly states when not to use group_by and directs the agent to call get_metrics with group_by for comparing segments, then use get_histogram per segment. This provides clear guidance on tool selection and workflow.

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.

TDQS

A4.6/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: get_histogram returns histogram buckets for one metric, get_metrics returns aggregate stats with optional grouping, and list_options provides metadata. No confusion possible.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern (get_histogram, get_metrics, list_options) using snake_case, which is predictable and clear.

Tool Count5/5

Three tools is well-scoped for a web vitals query API. Each tool earns its place: data retrieval, histogram analysis, and options discovery. No unnecessary bloat.

Completeness5/5

The tool set covers all necessary operations for the domain: aggregate metrics, detailed distribution (histogram), and parameter discovery. No obvious gaps like missing time-series or comparison features, but the stated purpose is sufficiently served.