Skip to main content
Glama

browser_console_messages

Retrieve browser console logs, warnings, and errors for a session to debug web page issues. Filter by severity level and optionally clear buffered messages after reading.

Instructions

Retrieve captured browser console messages (logs, warnings, errors) for the target session.

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": "browser_console_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
clearNoClear buffered console messages after reading.
levelNoMinimum log severity level to return (default: 'info').info
sessionIdNoOptional target browser session ID. If omitted, uses the currently active session (or auto-launches one).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does communicate that messages are 'captured' (i.e., buffered beforehand, not fetched live) and scoped to a session, which is real behavioral context. It says nothing about buffer size or retention, whether reads are non-destructive, or how the default 'info' threshold trims output, leaving those gaps for the schema to cover.

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?

A single front-loaded sentence with no filler or repetition; the resource and its scope come first. It is efficient, though rather terse for an unannotated tool that could have used one more clause of behavioral framing.

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?

For a zero-required-parameter read tool with full schema coverage, an agent has enough to invoke it correctly. The absence of an output schema and of annotations means return shape (message objects, timestamps, levels) and buffer behavior are undocumented, which is a modest gap rather than a blocking one.

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 description coverage is 100% and all three parameters (clear, level, sessionId) are documented in-schema, including the enum values and the auto-launch fallback. The description adds no parameter detail beyond what the schema already states, so the baseline of 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?

The description names a specific verb and resource: 'Retrieve captured browser console messages (logs, warnings, errors)'. The parenthetical enumerates the message types, so an agent knows this is the console-log reader and not the network reader (browser_network_requests). It does not explicitly contrast itself with any sibling, so it stops short of a 5.

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?

Usage is only implied: 'captured' and 'for the target session' hint that the tool reads already-buffered output from a live session, which an agent can infer for debugging. There is no explicit when-to-use, when-not-to-use, or named alternative such as browser_network_requests for network errors or browser_evaluate for on-demand inspection.

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