Skip to main content
Glama

console.exceptions

Read-only

Retrieve uncaught browser exceptions with stack traces to diagnose script failures, and filter results by time window, order, or search terms.

Instructions

Uncaught exceptions only, with stack traces.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "console.exceptions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
orderNo
sinceNoRelative ("5m", "90s") or absolute ISO timestamp.
stackNoStack detail per entry. Default "top" (one frame) for console.query, "full" for console.exceptions.
untilNoUpper bound of the time window.
fieldsNoReturn only these fields, e.g. ["level","text","at"]. Cuts payload dramatically.
offsetNo
searchNo
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior3/5

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

Annotations already establish readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds real value by disclosing the filtering semantics — uncaught only, stack traces included — which is behavior no annotation conveys. It stops short of describing default time window, pagination, or volume, which matter for a 10-parameter log query.

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?

Seven words with the scope constraint front-loaded — nothing is padded. But the terseness crosses into under-specification: a single clause is doing the work of purpose, contrast, and return-shape disclosure, and there is no structure beyond one fragment.

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?

With ten optional parameters, no output schema, and a sibling (console.query) that overlaps heavily, the description is far too thin to let an agent call this confidently. It omits the default time window, whether results are capped or paginated, and how it relates to console.query, all of which the definition must supply.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

None of the ten parameters are mentioned in the description; the agent must rely entirely on the schema, which only documents about 60% of them (for example limit, order, offset, and search carry no description). The one notable behavior — that 'stack' defaults to 'full' here but 'top' in console.query — is buried in the schema rather than surfaced in the description, which is exactly where a cross-tool difference belongs.

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 phrase 'Uncaught exceptions only, with stack traces' identifies the resource (exceptions) and a distinguishing scope (uncaught, not all console output), which implicitly separates it from console.query. However, there is no verb and no explicit mention of the sibling it filters, so the agent must infer that this is a retrieval tool rather than, say, a subscription or a filter setter.

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?

'Only' hints that console.query covers the broader case, but the description never names that alternative or states when to prefer one over the other. There is no guidance on prerequisites (target/browser selection), time-window defaults, or whether this is a one-shot read versus a live tail.

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

Deploy Server

Other Tools