Skip to main content
Glama

console_log

Get captured browser console messages and JavaScript errors since the last call. Use options to clear the buffer or set a maximum number of entries for streamlined debugging.

Instructions

Captured browser console + JS errors since last call (console.log/warn/error/info/debug + window.…

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clearNoClear the buffer after returning (defaul…
maxEntriesNoMax entries to return (default 100)
Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. It usefully reveals that the tool returns buffered logs accumulated since the last call and enumerates captured log types. However, it does not explain default clearing behavior, whether calling resets the buffer, or what the response format looks like, leaving side effects partially opaque.

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?

The description is a single compact sentence that front-loads the core function and details. It is reasonably sized, but the truncation at 'window.…' makes it feel incomplete and slightly unpolished, preventing a higher score.

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 tool with two optional parameters and no output schema, the description covers the basic purpose but omits important operational context: buffer lifecycle, default clear behavior, and when to prefer console_log over network_log. These gaps matter for an agent deciding whether and how to call it.

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 the parameters clear and maxEntries are already documented in the schema. The description adds no additional semantic detail beyond what the schema provides, so it meets the baseline but does not exceed it.

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 identifies the resource (browser console + JS errors) and the log types (console.log/warn/error/info/debug), making it distinct from sibling network_log. It clearly conveys that this tool retrieves captured console output since the previous call, though the truncated 'window.…' leaves part of the description incomplete.

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?

No explicit guidance on when to use this tool versus alternatives like network_log or evaluate. The phrase 'since last call' implies it is for inspecting console activity after browser actions, but there are no stated exclusions, prerequisites, or comparison to sibling tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/spliffspliff70-wq/websense-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server