Skip to main content
Glama

browser_console_messages

Retrieve browser console messages to diagnose errors, warnings, and logs, filtering by severity level for targeted debugging and monitoring.

Instructions

Get console messages from the browser. Each level includes more severe levels.

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
levelNoinfo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose one genuinely non-obvious behavior: level filtering is cumulative in severity. It does not say whether messages are captured since navigation, whether buffers are cleared, whether results are truncated/paginated, or whether each call re-reads or consumes messages.

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?

Two short sentences with the core action front-loaded and zero padding. The second sentence is slightly awkwardly worded ('Each level includes more severe levels'), which costs a little clarity.

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 (one optional parameter) and has an output schema, so return values need no explanation. However, key operational facts for a browser-diagnostics tool — capture window, volume limits, and per-tab vs. per-page scope — are absent, leaving the agent to discover them by trial.

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 0% with one optional, enum-typed parameter, so the schema supplies only the allowed values and default. The second sentence adds real meaning by explaining that selecting a level includes more severe levels, which resolves the otherwise ambiguous filter semantics. It still does not state what the default 'info' excludes or whether 'debug' returns everything.

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 ('Get console messages from the browser'), which is unambiguous and clearly distinct from siblings like browser_network_requests. It stops short of naming or contrasting with any sibling, so an agent must infer the boundary itself.

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 when-to-use guidance, no prerequisites, and no mention of alternatives for related diagnostics (e.g., network requests vs. console output). The only hint at usage is the implicit debugging context carried by the tool name.

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