Skip to main content
Glama
Pagewright (browser-mcp)

Pagewright (browser-mcp)

by zamansheikh

browser_console

Read-only

Read console messages, uncaught errors, browser warnings, and auto-handled dialogs for a page; filter by level/search and clear or limit results to debug web apps.

Instructions

Read console messages, uncaught errors, browser warnings (CSP, mixed content, failed loads) and auto-handled dialogs for the current page.

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
clearNo
levelNoMinimum level.
limitNoDefault 100 (most recent).
tabIdNoTab to act on. Defaults to the tab last opened/selected by an agent, else the active tab.
searchNo
currentPageOnlyNoOnly messages since the last navigation (default: recent history across pages, separated by NAV lines).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, and the description genuinely adds context: it discloses that auto-handled dialogs are included in the output and that failed loads and CSP/mixed-content warnings surface here rather than elsewhere. It does not say whether reading consumes/clears the buffer, whether logs persist across navigations, or what 'clear' does at read time, which keeps it from a 5.

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 dense sentence with the core resource ('console messages') front-loaded and supporting detail trailing. No filler or redundancy. Slightly list-heavy phrasing ('CSP, mixed content, failed loads') but every item earns its place by clarifying scope.

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 carry the return shape: ordering (newest first?), format per entry, how NAV lines appear, and whether the buffer is bounded or cleared on read. It hints at NAV separation only indirectly via the schema, not the description, so an agent knows what to fetch but not what it will get back.

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 67%, and the schema already documents level, limit (default 100 most recent), tabId defaulting, and currentPageOnly with NAV-separated history. The description adds only the loose notion of 'current page' scoping and says nothing about clear, search, or how level interacts with the enumerated message types. Minimum-viable given the schema does most of the work.

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?

Specific verb 'Read' paired with an explicit, enumerated resource set: console messages, uncaught errors, CSP/mixed-content warnings, failed loads, and auto-handled dialogs. That inventory clearly separates it from browser_network and browser_handle_dialogs. It stops short of naming a sibling or stating the read-vs-act distinction outright, so it lands at 4 rather than 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 by 'for the current page' and by the nature of the content listed; there is no explicit when-to-use, no when-not-to-use, and no pointer to alternatives such as browser_network for request-level failures or browser_handle_dialogs for interception. An agent must infer that this is the debugging-context tool.

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