Skip to main content
Glama

Robot Actions — Remote Device Control

Session console logs

session_console_logs
Read-onlyIdempotent

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

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the description only needs to add context. It does: capture is automatic, only the most recent entries are returned, and it silently yields nothing on mobile/native sessions — a non-obvious empty-result behavior worth flagging.

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?

Four tight sentences, front-loaded with the core verb+resource before use case and caveats. Every sentence adds information; nothing is redundant with the title or annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description still conveys the return shape (most recent console entries) and filtering behavior. Combined with the fully documented schema and rich annotations, an agent has everything needed to call it correctly.

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%, with level and limit fully documented (including defaults and max) in the schema itself. The description only adds that sessionId is shared across the session_* family, so the schema does the heavy lifting — baseline 3.

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?

States a specific verb (read) and resource (browser console logs), then clarifies the artifact is the DevTools console covering JS errors, warnings, and console.log output. The mention of network logs' sibling territory and 'the rest of this family' lets an agent place it without confusion.

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 use case ('diagnose page errors the user is seeing') and an explicit exclusion ('Browser sessions only; returns nothing for mobile/native device sessions'). It does not name a specific alternative sibling (e.g. session_network_logs) for the non-console case, so it falls just short of a 5.

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