Skip to main content
Glama

console

Capture browser tab log messages, uncaught exceptions, and failed loads. Start first to begin recording; read returns entries since the last read.

Instructions

Capture the tab's console messages, uncaught exceptions and failed loads. start first; read (default) returns what arrived since the last read.

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

Input Schema

NameRequiredDescriptionDefault
maxNo
tabNoTab id. Default: your own target tab (each agent session gets its own)
actionNo
browserNochrome, edge, ... (only when several browsers are connected)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.9/5.0
Behavior4/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 well: it discloses that reads are incremental deltas since the last read and that start must precede reading. Gaps remain around buffer lifetime, whether start resets or appends, and what stop does to captured data.

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 short sentences with zero filler; the capture scope is front-loaded and the workflow constraint follows immediately. Nothing is redundant or padded.

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?

For a 4-parameter tool with no annotations and no output schema, the definition covers the core workflow but omits several things an agent needs: the meaning of 'max', the effect of 'stop', and whether the buffer survives across calls. Adequate but with clear holes.

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?

At 50% schema coverage, the description adds real meaning for action (start vs. read default) but leaves 'max' entirely unexplained and never mentions the 'stop' enum value or what it does. tab and browser are already documented in the schema, so the description only partially compensates for the coverage gap.

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 concrete verb ('capture') and three specific resources (console messages, uncaught exceptions, failed loads) scoped to a tab, which is far more than a restatement of 'console'. It does not explicitly differentiate itself from siblings like network or watch, leaving the console-vs-network boundary 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?

Gives a clear operational sequence: 'start first; read (default) returns what arrived since the last read', which tells the agent the required call order and the default behavior. It stops short of exclusions, e.g., it never says when to use network or watch instead of this tool.

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