Skip to main content
Glama

Get Release JS Errors and Vitals

get_js_errors
Read-onlyIdempotent

List release-grouped client JavaScript exceptions with occurrence counts and P75 Core Web Vitals (LCP, INP, CLS) to triage frontend regressions by release.

Instructions

List release-grouped client JavaScript exceptions with occurrence counts alongside P75 Core Web Vitals (LCP, INP, CLS). Use for frontend regression triage; for a single visitor trace, use get_session_timeline. Read-only via read token; HTTP 404 if unknown site_id.

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

Input Schema

NameRequiredDescriptionDefault
periodNoLookback window relative to now (default "7d").7d
site_idYesPrismUV site slug identifier (e.g. "prismuv-abc123") returned by list_sites.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.1
    • addedInput schema / properties / period / default
      Added value: +"7d"
    • addedInput schema / properties / period / description
      Added value: +"Lookback window relative to now (default \"7d\")."
    • addedInput schema / properties / site_id / description
      Added value: +"PrismUV site slug identifier (e.g. \"prismuv-abc123\") returned by list_sites."
  2. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, but the description adds context annotations cannot carry: read-token auth, an explicit HTTP 404 failure mode for an unknown site_id, and a summary of what is returned (occurrence counts plus P75 vitals). That is real behavioral value beyond the structured metadata.

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 compact clauses: what it returns, when to use it (with the alternative), and its operational constraints. Nothing is redundant and the core output definition is front-loaded.

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

Completeness5/5

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

For a two-parameter read tool with no output schema, the description covers the return contents, the triage use case, the sibling alternative, auth scope and the principal error condition. An agent has everything needed to select and invoke it correctly.

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 description coverage is 100%, so both parameters are already documented and the baseline is a 3. The description adds a small but useful semantic detail by tying site_id to a concrete failure behavior (HTTP 404 on unknown site_id); period is left entirely to the schema and its enum/default.

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?

The description opens with a specific verb and resource: 'List release-grouped client JavaScript exceptions with occurrence counts alongside P75 Core Web Vitals (LCP, INP, CLS)'. It also names the sibling it is not (get_session_timeline), so an agent can distinguish the two without opening either schema.

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?

It states the intended use case explicitly ('Use for frontend regression triage') and gives the alternative route for a different need ('for a single visitor trace, use get_session_timeline'). Both the when-to-use and the when-to-use-something-else conditions are present.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.