Skip to main content
Glama

list_console_messages

Read-only

Retrieve all console messages for a target page since its last navigation, with optional filters by type, service worker, pagination, and stack traces.

Instructions

List all console messages for the target page since the last navigation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typesNoFilter messages to only return messages of the specified resource types. When omitted or empty, returns all messages.
pageIdYesTargets a specific page by ID.
pageIdxNoPage number to return (0-based). When omitted, returns the first page.
pageSizeNoMaximum number of messages to return. When omitted, returns all messages.
serviceWorkerIdNoFilter messages to only return messages of the specified service worker.
includeStackTracesNoSet to true to include the stack trace for each message when available. Increases the response size.
includePreservedMessagesNoSet to true to return the preserved messages over the last 3 navigations.

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?

Annotations already establish readOnlyHint=true, so the safety profile is covered. The description usefully adds the temporal boundary ('since the last navigation') that defines what the list contains, but says nothing about pagination or preserved-message behavior beyond what the schema already documents.

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, front-loaded sentence with no filler. It is efficient and readable, though it does not exploit the space to add routing or behavioral context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only listing tool with 100% schema coverage and a readOnlyHint annotation, the description covers the essential purpose and scope. No output schema exists, yet the temporal scope gives the agent enough to call it correctly; only the sibling relationship is omitted.

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 coverage is 100%, so all seven parameters (types, pageId, pageIdx, pageSize, serviceWorkerId, includeStackTraces, includePreservedMessages) are documented in the schema itself. The description adds no parameter detail, which is acceptable given full coverage — baseline 3.

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 (List) and resource (console messages) with an explicit temporal scope ('since the last navigation'). This is clearly distinguishable from the singular get_console_message by scope, though that sibling relationship is not called out in the text.

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?

The description gives no when-to-use guidance, no prerequisites, and does not name the alternative get_console_message for retrieving a single message. The temporal scope is stated but that is a filter, not usage guidance.

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