Skip to main content
Glama
Browser Controller

Browser Controller

by compnew2006

browser_logs

Read console messages and network requests from a browser tab to diagnose errors, filter results, inspect response bodies, and clear logs.

Instructions

Read page console and network requests. Use filter, errors, since, all, requestId or bodies to narrow; clear empties logs and cannot combine with requestId.

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": {
      "tabId": "<tabId>"
    },
    "name": "browser_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoEarlier pages too
kindNo
clearNo
limitNoDefault 50
sinceNoRequest id: only later ones
tabIdYes
bodiesNoResponse body, with requestId
errorsNo
filterNo
requestIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.5.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that clear empties logs and cannot be combined with requestId, but it omits important behavior such as return format, ordering, whether logs are live or snapshotted, and pagination/truncation semantics.

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?

The definition is two dense sentences, front-loaded with purpose followed by operational constraints. It is efficient and has little waste, though the comma-separated parameter list is terse and could be slightly clearer.

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 10 parameters, no annotations, no output schema, and only 40% schema description coverage, the description is thin. It does not explain the return shape or enough of the parameter semantics for an agent to call it correctly without guessing.

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 only 40%, so the description must compensate. It names filter, errors, since, all, requestId, bodies, and clear with some semantics, but leaves kind, tabId, limit, and the exact meaning of filter/errors substantially undocumented in both schema and description.

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 first sentence gives a specific verb and resource: read page console and network requests. It is clear what the tool does, though it does not explicitly distinguish itself from siblings such as browser_evaluate or browser_inspect_element.

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?

The description offers parameter-based narrowing hints and one incompatibility (clear cannot combine with requestId), but it never says when to use browser_logs versus alternatives or what scenario calls for it. Usage is implied by the phrase 'Read page console and network requests,' but no real when-to-use guidance is provided.

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