Skip to main content
Glama

console_logs

Retrieve browser console logs, warnings, errors, and uncaught exceptions to verify JavaScript after code changes. Filter by type or clear after reading.

Instructions

Get browser console output: logs, warnings, errors, uncaught exceptions. Use this to check for JS errors after making changes.

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
urlNoPage URL. Opens page to start collecting if not open yet.
typeNoFilter by type. Default: all.
clearNoClear log after reading. Default: false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It discloses the collected categories and implies a read-only retrieval, but says nothing about whether logs are cumulative across page loads, whether buffer limits apply, or how stale entries are handled — and it mentions uncaught exceptions, a category not present in the type enum, without clarifying how that maps to filtering.

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, zero filler. The capability statement is front-loaded and the usage hint follows immediately, which is the right order for an agent scanning candidates.

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 zero-required-parameter read tool with a fully documented schema, this covers what the tool returns (console entry categories) and when to call it. The only real gap is that, with no output schema, nothing describes the shape or ordering of returned entries or volume expectations.

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 url, type, and clear are already documented with defaults and enum values. The description adds no format or behavior detail beyond what the schema states, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ("Get browser console output") and enumerates exactly what is captured: logs, warnings, errors, uncaught exceptions. That is enough to separate it from siblings like dom_inspect, page_outline, or screenshot without opening any schema.

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 a concrete triggering scenario: check for JS errors after making changes. That is clear context for when to reach for this tool, but it names no alternatives or exclusions (e.g., when to prefer a network or DOM tool instead), so it stops short of full routing guidance.

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