Skip to main content
Glama

console_messages

Read captured browser console output to diagnose page errors, with optional filters for tab, message pattern, error-only results, and result limit.

Instructions

Read console output captured 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": "console_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
tabIdNoTab to act on. Omit for the active tab.
patternNo
onlyErrorsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/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 entire behavioral burden, and it discloses almost nothing. The word 'captured' hints at a buffer, but it never says whether output accumulates from page load, whether reads are destructive, whether results are live or a snapshot, or how errors are represented.

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?

One short, front-loaded sentence with no filler or repetition. It is efficient, though the brevity edges into under-specification rather than tightness.

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?

With four parameters, no annotations, and no output schema, the description should explain the shape of returned console entries and what each filter does. It covers none of that, so an agent can invoke the tool but cannot predict its results or filter behavior.

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 25% — only tabId is documented in the schema. The description says nothing about limit (count cap? default?), pattern (regex or substring? which field does it match?), or onlyErrors (level filter), leaving three of four parameters semantically undefined across both description and 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?

The description states a specific verb and resource: reading console output captured from the page. That is enough to distinguish it from network_requests, get_page_text, and read_page by name alone, though it does not explicitly name or contrast any sibling.

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 network_requests or javascript, and no mention of prerequisites such as needing to navigate first or that only output captured so far is returned. The agent must infer all usage context from the tool name.

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