Skip to main content
Glama
Chrome Testing MCP Server

Chrome Testing MCP Server

by prabhubng

Get Console Errors

chrome_get_errors
Read-onlyIdempotent

Collect JavaScript console errors and warnings from a page to debug web UI issues, with optional warning capture and JSON or markdown output.

Instructions

Get JavaScript console errors and warnings from the page.

Collects error messages, warnings, and uncaught exceptions.

Args:

  • includeWarnings (boolean): Include console.warn messages (default: false)

  • response_format ('markdown'|'json'): Output format (default: markdown)

Returns: List of console errors with timestamps and locations.

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

Input Schema

NameRequiredDescriptionDefault
includeWarningsNoInclude console warnings (default: false)
response_formatNoOutput format: markdown or jsonmarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.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, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds that it captures warnings and uncaught exceptions and that results carry timestamps and locations, but it says nothing about whether the buffer accumulates across navigations, whether it is cleared between calls, or how much history is returned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded and short, but the second sentence ('Collects error messages, warnings, and uncaught exceptions') restates the first, and the Args block duplicates the schema verbatim rather than earning its space.

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 two-parameter, no-required-argument read tool with no output schema, the description is nearly sufficient: it explains what is returned and lists parameters with defaults. The only meaningful gap is retrieval semantics across page navigations.

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 both parameters are documented in the schema with defaults, so the Args section largely restates structured data. The description adds no extra semantics such as when warnings are worth including or how response_format changes downstream parsing.

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 opens with a specific verb and resource ('Get JavaScript console errors and warnings from the page') and narrows the scope to console output, which is clearly distinct from sibling tools like chrome_get_network_requests or chrome_get_performance. It does not explicitly name a sibling it is not, 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: an agent can infer this is the tool to call when diagnosing page errors, but there is no statement of when to prefer it over alternatives, no prerequisites, and no guidance on whether it must be called before or after navigation.

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