Skip to main content
Glama

browser_console_messages

Read-onlyIdempotent

Return console.log/warn/error events captured since the last drain. Filter by level ('log'|'info'|'warning'|'error'|'debug') and/or pattern (regex). Buffer caps at 500 entries; oldest are dropped first. Set clear=false to peek without draining.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clearNo
levelNo
page_idYes
patternNo
in_workspaceNoRun this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / in_workspace
      Added value: +{
      +  "description": "Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.",
      +  "type": "integer"
      +}
  2. Added
  3. Removed
  4. Added
  5. Removed
  6. Added
  7. Removed
  8. Added
  9. Removed
  10. First observed

TDQS

A3.8/5.0
Behavior2/5

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

The description is unusually informative about behavior (drains by default, buffer caps at 500 with oldest dropped first, clear=false peeks), which annotations alone would not convey. However, the disclosed default drain makes the call state-modifying and non-repeatable, conflicting with the idempotentHint=true and readOnlyHint=true / destructiveHint=false annotations.

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?

Four tight sentences, front-loaded with the core action and scoping before filters and the drain/buffer caveats. Dense and largely waste-free, though the buffer-cap sentence could sit closer to the drain caveat.

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 no output schema, the description should ideally sketch the returned event shape (level, text, timestamp) or ordering, and note that the buffer is per page/session. It covers buffer behavior well but leaves the return contract and page prerequisite implicit.

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 only 20% (only in_workspace is documented), so the description must compensate. It supplies the level enum values (absent from the schema), the regex nature of pattern, and the default-true/peek semantics of clear, covering the ambiguous parameters well; only page_id is left purely implicit.

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?

States a specific verb (Return), resource (console.log/warn/error events) and scope (captured since the last drain), which clearly separates it from browser siblings such as browser_network_requests. An agent can identify the tool without opening the schema.

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

Usage Guidelines4/5

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

Gives concrete usage context: how to filter (by level and/or regex pattern) and the clear=false option to peek without consuming the buffer. It does not name alternatives or prerequisites (e.g. that an open page via browser_open is required), so it stops short of full when/when-not guidance.

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.