Skip to main content
Glama
ohaoz
by ohaoz

get_console_logs

Retrieve recent browser console log messages from the active tab to debug JavaScript errors, warnings, and runtime output. Specify a limit for maximum entries or a tab ID to filter results.

Instructions

Return recent console log messages captured for the active tab.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax entries (default 50).
tab_idNoOptional tab id.
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It doesn't mention that capturing logs requires an attached/claimed tab, whether logs are cleared, what happens when no active tab exists, or the format of returned messages (severity levels, sources, etc.).

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 sentence, zero wasted words. Immediately states the function and default scoping.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no annotations and no output schema, this is thin. Given the sibling context (browser automation suite with tab management, eval_js, cdp tools), a richer description would clarify how console logs relate to evaluated JS, whether logs persist across navigations, and what the return shape looks like.

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 coverage is 100%, meaning the schema already documents both parameters (limit with default, optional tab_id). The description adds minimal value beyond what the schema provides—it confirms 'active tab' as the default target when tab_id is omitted, but adds no additional format or behavior details.

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 states a clear verb ('Return') plus a specific resource ('console log messages') scoped to 'the active tab'. It's clear what the tool does, though it doesn't explicitly differentiate from siblings like cdp_events or snapshot which could overlap conceptually.

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 guidance on when to use this tool vs alternatives. It mentions 'active tab' implying usage context, but doesn't explicitly state when to choose this over eval_js or cdp_send, nor any prerequisites like needing a claimed/active tab.

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/ohaoz/chrome-use-mcp'

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