Skip to main content
Glama
Playwright MCP Proxy

Playwright MCP Proxy

by noomz

browser_console_messages

Fetch console messages from the browser and optionally return only errors to debug page issues and diagnose JavaScript failures during automation.

Instructions

Get console messages from the browser

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
onlyErrorsNoOnly return error messages

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.4

TDQS

C2.7/5.0
Behavior2/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, and it says nothing about whether returned messages are cleared after reading, whether there is a cap or pagination, whether output is ordered or includes timestamps, or which browser context is queried. For a read tool with zero annotation coverage this leaves meaningful behavioral questions unanswered.

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?

One sentence, front-loaded with the verb and resource, with no filler or repetition. It is efficient, though the brevity is partly the cause of the guidance gaps rather than a virtue in itself.

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?

The tool is simple with one optional boolean parameter and no nested objects, so modest description length is defensible. Still, with no output schema and no annotations, an agent does not learn the return shape or whether a session must already be active, which are the two things it would need to call this confidently.

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 the single parameter onlyErrors is documented in the schema, so the baseline of 3 applies. The description adds no extra meaning such as what counts as an error (console.error only, or warnings too), so it neither helps nor hurts.

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 description has a specific verb and resource ("Get console messages"), so the basic action is clear. However, the sibling set includes get_console_content, and the description offers no distinction between console messages and console content, leaving an agent unable to disambiguate on the description alone. That gap keeps it at the minimum-viable level rather than a clean 4.

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?

There is no statement of when to call this versus get_console_content or get_content, and no precondition such as requiring an active browser session. The only guidance is implicit in the onlyErrors parameter name. No exclusions or alternatives are given.

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