Skip to main content
Glama

console_logs

List captured browser console messages and page errors, filterable by error, warning, log, or pageerror levels, to diagnose page issues; attaches a CDP listener on first use.

Instructions

List captured browser console messages and page errors (filter by comma-separated level: 'error,warning,log,pageerror'). Attaches CDP console listener on first call.

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
tabNo
clearNo
levelNo
limitNo
max_lengthNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.3/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 and does contribute real behavior: 'Attaches CDP console listener on first call' warns that logs are only captured from the first invocation onward. However, it says nothing about the effect of clearing the buffer, whether limits truncate or drop, or what permissions/state the call requires.

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, front-loaded with the purpose, then the filter syntax, then the capture caveat. No filler and no repetition of schema defaults.

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?

The output schema covers return values, so that omission is fine, and the filter syntax is covered. But for a tool with no annotations and four undocumented parameters, the definition leaves too much – notably the meaning of clear and limit – for an agent to call correctly on the first try.

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 description coverage is 0% across five parameters, and the description only explains 'level' (comma-separated values with the 'pageerror' pseudo-level spelled out). The semantics of tab, clear, limit, and max_length are left entirely to bare property names and defaults, which is a significant gap for a 5-parameter tool.

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?

Specific verb and resource: 'List captured browser console messages and page errors' clearly separates it from siblings like network_requests or evaluate_js. It does not explicitly name an alternative, but the resource is unambiguous enough that an agent would not confuse it.

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

Usage Guidelines3/5

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

Usage is only implied by the resource name – an agent infers 'call this to inspect console output,' but the description never states when to prefer it over snapshot, network_requests, or evaluate_js, nor any preconditions such as whether a page must already be loaded.

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