Skip to main content
Glama

Robot Actions — Remote Device Control

session_console_logs

Read the browser CONSOLE logs for a browser session (DevTools console — JS errors, warnings, console.log output). Captured automatically; returns the most recent entries. Use this to diagnose page errors the user is seeing. Takes the same sessionId as the rest of this family. (Browser sessions only; returns nothing for mobile/native device sessions.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
levelNoFilter to a single level. Pass "error" to see only errors.
limitNoMax entries to return (most recent first-shown). Default 50, max 500.
sessionIdYesBrowser session ID (same id used by the other session_* tools)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the burden. It discloses that logs are 'Captured automatically' and 'returns the most recent entries', implying no side effects and a limited window. It also notes it returns nothing for non-browser sessions. But it does not state what happens with an invalid sessionId, empty logs, or the exact return structure.

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?

The description is compact—four sentences with no filler. It front-loads the core purpose, then gives usage context, family consistency, and scope exclusion. Every sentence contributes value.

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 and the schema covers parameters, but there is no output schema and the description does not describe the return format (e.g., array of objects with message, level, timestamp). It also omits error behavior or pagination details beyond the limit parameter. For a diagnostic tool, this is a notable gap, though not critical given the sibling context.

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 description coverage is 100% for all three parameters, so the schema already documents level, limit, and sessionId thoroughly. The description adds minimal parameter-specific value—it only implicitly ties 'most recent entries' to the limit parameter. Since the schema is complete, baseline 3 is appropriate.

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?

The description clearly states the verb 'Read' and the resource 'browser CONSOLE logs', and specifies it covers JS errors, warnings, and console.log output. It also distinguishes itself from mobile/native sessions and from other sibling tools like ios_safari_console_logs and android_devtools_console_logs by explicitly limiting to browser sessions.

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?

It provides a clear use case: 'Use this to diagnose page errors the user is seeing.' It also gives an explicit exclusion: 'Browser sessions only; returns nothing for mobile/native device sessions.' However, it does not explicitly compare against other console-log tools like web_console_messages or session_network_logs, so it lacks a full when-not-to-use guide.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources