Skip to main content
Glama

browser_console_logs

Read captured console logs from a browser tab to debug issues, including log, info, warn, error, and uncaught exceptions.

Instructions

Read captured console logs (log/info/warn/error, uncaught exceptions) from a tab — for debugging.

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

Input Schema

NameRequiredDescriptionDefault
levelNo
sinceNo
tabIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/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 behavioral burden. The word 'captured' hints that logs are buffered rather than fetched live, but the description does not say how far back the buffer goes, whether logs persist across navigations, whether results are truncated, in what order they return, or whether any setup is required before logs exist.

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 sentence that front-loads the resource, then the covered message types, then the use case. There is no filler and nothing an agent must read past.

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?

For a tool with zero annotations, no output schema, and fully undocumented parameters, the description is too thin — an agent knows what it reads but not the shape of the return, the units of 'since', or how 'tabId' defaults when omitted. The enumerated log levels are the only real completeness win.

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 description coverage is 0% with three parameters, and the description only loosely hints at one of them by listing the severity values, never stating that 'level' filters results. The 'since' numeric parameter (presumably a time cursor) and 'tabId' get no explanation at all, leaving two of three parameters undocumented in both places.

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 verb and resource — 'Read captured console logs ... from a tab' — and enumerates the severity levels plus uncaught exceptions, which lets an agent tell it apart from siblings like browser_snapshot or browser_screenshot. It stops short of naming any alternative tool, but the resource 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The trailing clause 'for debugging' implies the context in which to reach for this tool, but there is no explicit when-to-use versus when-not guidance and no mention of alternatives such as browser_snapshot for DOM inspection. Usage is inferable but not stated.

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