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

mcp-server-visual-stack-browser

by cadivus

get_console_log_stacktrace

Retrieve the stack trace for a specific browser console log entry by its ID, enabling debugging of where console messages originate in Chrome sessions.

Instructions

Get the stack trace for a specific browser console log entry by its ID. Only available for entries that include CDP stack trace data (Chrome).

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>",
      "log_id": "<log_id>"
    },
    "name": "get_console_log_stacktrace"
  }
}

Input Schema

NameRequiredDescriptionDefault
log_idYesLog entry ID returned by get_console_logs.
session_idYesSession ID returned by start_browser.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description bears the full burden. It discloses the Chrome/CDP precondition, which is genuinely useful behavioral context, but is silent on what happens when an entry lacks stack trace data (empty result vs. error) and on the shape of the returned trace.

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?

Two short sentences, purpose first and the availability caveat second. Nothing is redundant and nothing is buried.

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?

The tool is simple (2 required params, no nesting) and the precondition is covered, but with no annotations and no output schema the description leaves the return value and failure mode unexplained. That is a real gap for an agent deciding whether the result will be usable.

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% and both parameters are documented in the schema, including which tools produce each ID. The description's 'by its ID' adds nothing beyond that, 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 (get) and resource (stack trace) scoped to a single console log entry identified by ID. It is functionally distinguishable from get_console_logs, which enumerates entries, though it never names that sibling explicitly.

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 a concrete availability constraint: only entries carrying CDP stack trace data, i.e. Chrome. That tells the agent when the call will fail or be meaningless, but there is no explicit routing guidance such as 'call get_console_logs first to obtain the ID' or what to do for non-Chrome sessions.

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