Skip to main content
Glama

console_logs

Capture console messages, uncaught errors and browser log entries for a tab; first run starts capture, then reload or repeat the action and run again to read new entries.

Instructions

Console messages, uncaught errors and browser log entries (failed loads, CSP, deprecations) for a tab. The first call starts capture; reload or repeat the action, then call again to see new messages.

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_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
clearNoClear the buffer after reading.
levelNoMinimum level.
limitNoMost recent N (default 100).
tabIdNoTab ID from tabs_list. Omit for the active tab.
profileNoChrome profile: folder ("Profile 3"), nickname, or unique display name. Omit to use the current profile.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden, and it discloses the most important non-obvious trait: the tool is stateful and the first invocation only begins capture rather than returning prior history. The mention of buffered messages and the clear parameter's implied buffer reset reinforce this. It does not state whether capture persists across navigations or whether it requires DevTools to be open, which leaves some behavioral gaps.

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?

Two sentences, no waste. The resource definition is front-loaded and the capture workflow follows immediately, so an agent gets purpose and the critical usage constraint in one read.

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 five-parameter read tool with no output schema and no annotations, the description covers purpose, the capture lifecycle, and the buffer concept, which is enough to call it correctly. The return shape (message list with levels and sources) is not described, and the interaction between level and limit filtering is left to the schema.

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 all five parameters (clear, level, limit, tabId, profile) are already documented in the schema, and the baseline of 3 applies. The description adds only indirect context — the notion of a buffer that clear empties — without elaborating on level filtering or limit semantics beyond what the schema states.

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 names a specific resource — console messages, uncaught errors, and browser log entries (failed loads, CSP, deprecations) — scoped to a tab. That is clearly a log-reading tool rather than an action tool. It does not, however, distinguish itself from the adjacent network_requests sibling, so the boundary between console and network capture is left implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit two-step workflow: the first call starts capture, then you reload or repeat the action and call again to see new messages. That is real when-to-use guidance and prevents the common mistake of expecting logs on the first call. It stops short of saying when to prefer this over network_requests or devtools_watch, so alternatives are not addressed.

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