Skip to main content
Glama

console.query

Read-only

Retrieve recorded browser console logs and uncaught exceptions across navigations, then filter by level, text, regex, or time window and limit returned fields to inspect only relevant entries.

Instructions

Console output and uncaught exceptions, recorded continuously and kept across navigations. Filter by level, text, regex and time window rather than dumping everything. Narrow the response with fields (e.g. ["level","text","at"]) and stack:"none" when you only need to see what was logged.

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.query"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoe.g. "error" or ["error","warning"].
limitNo
orderNo
regexNo
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
sourceNo
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.
include_exceptionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds genuinely new behavioral context: the buffer is recorded continuously and survives navigations, and stack defaults to 'top' here. It stops short of describing result size, pagination behavior, or the default time window, which matter for a tool that can return large volumes.

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?

Three tight sentences, front-loaded with what the buffer contains before moving to filtering and then to response shaping. No filler, though the second sentence's advice is somewhat redundant with the schema's own field descriptions.

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

Completeness3/5

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

With 14 parameters, no output schema, and only 50% schema coverage, the description leaves real gaps: how the target_id/browser_id handles interact with the 'active page' default, what include_exceptions adds, and what the response entries look like beyond the fields example. Adequate to start querying, not complete for confident use.

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 50% across 14 parameters, so the description should be compensating more than it does. It usefully reinforces 'fields' with a matching example and explains when to set stack:"none", but says nothing about limit, offset, order, source, target_id, browser_id, or include_exceptions, leaving half the surface undocumented.

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 names the resource precisely: 'Console output and uncaught exceptions, recorded continuously and kept across navigations.' That tells an agent exactly what corpus is being queried, though the verb is implicit and it never distinguishes itself from the sibling console.exceptions, whose scope it partially overlaps.

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?

'Filter by level, text, regex and time window rather than dumping everything' is guidance on how to query efficiently, not on when to choose this tool over console.exceptions or console.export. An agent can infer reasonable usage, but there are no explicit exclusions or alternative-selection rules.

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