Skip to main content
Glama

console_logs

Read browser console logs and filter by log level or regex pattern; optionally clear the captured buffer to manage output.

Instructions

Read collected browser console logs; filter by level (info/warning/error/debug) and/or regex; optionally clear the buffer after reading.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clearNoClear the buffer after reading
levelNoFilter by log level
patternNoRegex matched against log text

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed4 schema fields changedv2.10.5
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / clear / description
      Previous value: -"Clear the log buffer after returning results"New value: +"Clear the buffer after reading"
    • changedInput schema / properties / pattern / description
      Previous value: -"Regex pattern to match against log text"New value: +"Regex matched against log text"
  2. First observedv2.7.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are present, so the description must carry the full disclosure burden. It does so by explicitly labeling the operation as 'Read' and prominently disclosing the optional destructive side effect of clearing the buffer. It could add more detail about buffer source or retention, but the key side effect is clearly exposed.

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?

A single well-structured sentence packs the main action, the filtering options, and the optional side effect without wordiness. It is front-loaded with the most important information and every phrase earns its place.

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?

The tool has only three optional parameters, no output schema, and no annotations, so the description adequately covers purpose, filters, and the clear flag. Minor gaps around return format and where the logs come from remain, but they are not critical for a tool this simple.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description goes beyond the schema by explaining that 'level' and 'pattern' can be used together as filters ('and/or regex') and that 'clear' is an optional post-read action, which clarifies parameter relationships and intent.

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?

States a specific verb ('Read') and resource ('collected browser console logs'), then adds filter behavior and an optional clearing side effect. This clearly distinguishes it from the other browser automation siblings by emphasizing a read-only diagnostic purpose.

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?

The purpose is obvious: read logs, apply filters, optionally clear. It doesn't explicitly name alternatives or exclusion conditions, but the context is sufficient because this tool serves a unique diagnostic function among the sibling browser tools.

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

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/Silbercue/public-browser'

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