Skip to main content
Glama

browser_console

Capture console output, uncaught exceptions, and browser logs from the current page, including navigation errors, then optionally clear the buffer after reading.

Instructions

Console output, uncaught exceptions and browser log entries from this page — always recording, so nobody has to remember to start it. Includes what happened during navigation, which is where the real errors are. clear: true empties the buffer after reading.

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

Input Schema

NameRequiredDescriptionDefault
clearNoEmpty the buffer after reading
levelNoOnly this level
limitNoNewest N entries (default 100)
sinceNoOnly entries at or after this epoch-ms timestamp

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.5.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose key traits: the buffer is always on, it captures events during navigation, and clear:true empties the buffer after reading (a real side effect worth flagging). It omits buffer capacity/retention limits and whether entries survive restarts or accumulate across sessions, so it is not fully complete.

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 short sentences, front-loaded with the resource and followed by the highest-value behavioral fact (always recording). The clause 'which is where the real errors are' is slightly editorial but justifies the navigation coverage note; otherwise there is no waste.

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?

For a four-optional-parameter read tool with no output schema and no annotations, the description covers invocation and side effects but says nothing about the shape of returned entries or their ordering/limit behavior beyond what the schema states. Adequate to call correctly, but the agent must inspect the schema to understand filters.

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 100%, so level, limit, and since are already fully documented in the schema. The description only restates the clear parameter's behavior ('empties the buffer after reading'), which duplicates the existing schema description rather than adding meaning, so baseline 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?

States a specific resource set — console output, uncaught exceptions, and browser log entries from the current page — which is concrete enough for an agent to recognize it as the logging/telemetry reader. It is implicitly distinguishable from browser_network (network traffic) by resource, but no sibling is named explicitly, so it falls 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?

The 'always recording, so nobody has to remember to start it' line tells the agent it can call this at any time without setup, which is useful. However, there is no explicit when-to-use/when-not guidance and no pointer to an alternative (e.g. browser_network for request failures), leaving the choice to inference.

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