Skip to main content
Glama
Browser MCP Server

Browser MCP Server

get_console_logs

Retrieve auto-captured browser console messages since page load, filtered by level or page, to diagnose errors and inspect runtime behavior.

Instructions

Get captured browser console messages (auto-captured since page load).

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

Input Schema

NameRequiredDescriptionDefault
levelNo
pageIdNo
maxEntriesNoMax entries (default: 50)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden. It does disclose a genuinely useful behavior — messages are auto-captured since page load, so no capture needs to be started — but says nothing about buffer size, retention across navigations, or whether reading clears the log.

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

Conciseness5/5

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

A single front-loaded sentence with no filler; the scoping qualifier is placed immediately after the core statement where an agent will read it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, no annotations, and only one of three parameters is documented, so the description should be doing more work. It omits the return shape (entry fields, ordering), the default target page when pageId is omitted, and truncation behavior under maxEntries.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33%, so the description needs to compensate but adds no parameter detail at all. The meaning of 'level' (only partially obvious from its enum), what 'pageId' resolves to when omitted, and the interplay with 'maxEntries' default of 50 are left entirely undocumented.

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 names a specific verb and resource ('Get captured browser console messages'), which clearly separates it from data-retrieval siblings like get_network_log or get_page_html. It does not explicitly name an alternative, but the resource type is unambiguous.

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 guidance on when to reach for this tool versus get_network_log or evaluate_javascript, and no exclusions or prerequisites. The parenthetical hints at the common debugging use case but never states it as guidance.

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