Skip to main content
Glama
mcp-server-visual-stack-browser

mcp-server-visual-stack-browser

by cadivus

get_console_logs

Retrieve browser console log entries accumulated since the session started, optionally filtered by severity, to debug web app issues.

Instructions

Fetch browser console log entries accumulated since the session started. Each entry has a unique time-based ID (unix timestamp in ms). Use get_console_log_stacktrace to retrieve the stack trace for a specific entry.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "session_id": "<session_id>"
    },
    "name": "get_console_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoMinimum severity level to include (default: ALL).
session_idYesSession ID returned by start_browser.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose real behavior: logs accumulate from session start and each entry carries a unix-ms timestamp ID, which the agent needs to chain into the stacktrace tool. It omits retention/truncation limits and whether fetching clears the buffer, so it is strong but not complete.

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?

Three short sentences, front-loaded with what is fetched and scoped, then the ID detail needed for chaining, then the routing pointer. No filler and nothing buried.

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?

A simple two-parameter read tool with no output schema, so return-value documentation is not required. The description covers scope, entry identity, and the natural next step; only edge behavior (log caps, ordering) is left unstated.

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 both parameters, including the level enum and its ALL default, are already documented in the schema. The description adds no further meaning about filtering behavior or ordering, so the baseline 3 applies.

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?

Specific verb ('Fetch') plus resource ('browser console log entries') plus scope ('accumulated since the session started'). It also explicitly distinguishes itself from the sibling get_console_log_stacktrace, so an agent can pick correctly without opening either schema.

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 an explicit follow-up path: use get_console_log_stacktrace for a specific entry's trace. It does not state exclusions or alternatives for the log-fetching case itself (e.g., when console logs are the wrong signal vs. a screenshot), so it stops short of full when/when-not guidance.

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