Skip to main content
Glama

控制台日志

browser_console
Read-onlyIdempotent

Read recent console messages from the active tab to debug web pages, with filtering by level and entry limits.

Instructions

Read recent console messages of the active tab (useful for debugging pages).

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

Input Schema

NameRequiredDescriptionDefault
levelNoFilter level (default all)
limitNoMax entries (default 50)
tabIdNoTab id (default: active tab)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds that it targets the active tab, but says nothing about how far back 'recent' reaches, whether the buffer is consumed, or whether messages logged before the call are included — meaningful gaps for a log-reading tool.

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?

A single compact sentence with the core action front-loaded. The parenthetical usage hint earns its place, though slightly more structure (separating scope from purpose) would help.

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 three-optional-parameter read tool with no output schema, the definition omits what a console entry contains and whether results are cumulative or incremental. Adequate to invoke, but not complete enough to interpret the response confidently.

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%, so level, limit and tabId are already documented in the schema with defaults. The description only echoes the 'active tab' default for tabId and adds no filtering or pagination nuance beyond the schema, so the baseline 3 applies.

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 specific verb and resource: 'Read recent console messages of the active tab'. An agent can distinguish this from browser_network_requests or browser_page_state by the resource named. It stops short of explicitly contrasting with a named sibling, so not a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'useful for debugging pages' implies the usage context but gives no when-not guidance and names no alternative sibling (e.g. browser_network_requests for network failures). The agent must infer the debugging scenario itself.

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