Skip to main content
Glama

get_console

Read a browser tab's recent console messages (errors, warnings, logs) collected since load to inspect page issues; optionally clear the buffer after reading.

Instructions

Read recent console messages of a tab (errors/warnings/logs) collected since load.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clearNoClear the buffer after reading
limitNoMax messages to return (default 50)
tabIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses that the buffer accumulates from page load (so pre-load messages are unavailable) and which severities are captured. It does not disclose rate limits, whether reads are non-destructive by default, or that a 'clear' flag can mutate the buffer.

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 compact sentence that front-loads the verb and resource and packs the scope constraint ('since load') efficiently. Nothing is wasted, though the parenthetical list is slightly dense.

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 read tool with no output schema and no annotations, the description is adequate but leaves gaps: it does not state that all three parameters are optional, what happens when tabId is omitted, or that the buffer can be cleared. An agent can call it correctly but not optimally.

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 67%: 'clear' and 'limit' are documented in the schema, while 'tabId' has no description. The description only implies the tab scoping ('of a tab') and adds nothing about the limit or clear semantics, so it neither compensates for the gap nor adds value over the schema.

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 recent console messages of a tab') and enumerates the message types (errors/warnings/logs), so the agent knows exactly what data comes back. The resource is unique among siblings (snapshot, get_html, evaluate), so no explicit sibling differentiation is strictly needed, though it is not called out.

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 named alternatives among the many siblings (e.g., evaluate or snapshot for other diagnostic data). The phrase 'collected since load' hints at the data's scope but does not tell the agent when this tool is the right choice.

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