Skip to main content
Glama

read_console_messages

Retrieve console log, info, warning, error, and debug messages from a page, optionally filtering to errors or clearing messages after reading.

Instructions

Get console output (log, info, warn, error, debug) from the 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": "read_console_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
clearNoClear console messages after reading.
tabIdNoTab ID to target. Omit to act on the current tab.
onlyErrorsNoOnly return errors.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/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 burden, yet it does not say whether output is a snapshot or a stream, whether messages persist across reads, or what the clear flag destroys beyond the schema's one-line hint. A read-only tool is low-risk, but the agent gets no behavioral context beyond the return type list.

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 the resource and the return contents stated immediately; the level enumeration is informative rather than filler. Nothing is wasted.

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?

For a simple three-optional-parameter read tool with no output schema, the description covers purpose but not the shape of the returned data or ordering/volume behavior. Since no output schema exists, a brief note on what a message record contains would have closed the remaining gap.

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%, so clear, tabId, and onlyErrors are already documented in the schema; the description adds no further meaning for any of them. It does not clarify, for example, whether clear applies before or after the read, nor how onlyErrors interacts with level filtering. Baseline 3 is appropriate.

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?

"Get console output ... from the page" names a specific verb and resource, and the parenthetical enumeration of levels (log, info, warn, error, debug) tells the agent exactly what data comes back, distinguishing it from read_network_requests or read_page. It stops short of explicitly naming a sibling, so it is clear but not fully differentiated.

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 statement of when to reach for this tool versus read_network_requests or javascript_tool, and no mention of prerequisites such as an attached/active tab. The intended use (debugging page behavior via the console) is only implied by the tool name and the word "console".

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