Skip to main content
Glama

get_console_logs

Read-only

Retrieves recent console log lines by briefly connecting to a server WebSocket console and disconnecting cleanly, enabling log inspection without a persistent session.

Instructions

Connect briefly to the server WebSocket console, retrieve recent console output lines, and disconnect cleanly.

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": {
      "server_id": "<server_id>"
    },
    "name": "get_console_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_linesNoMaximum number of trailing log lines to return (default 100)
server_idYesShort server identifier
strip_ansiNoStrip ANSI terminal color sequences to reduce token usage (default true)
timeout_msNoMaximum wait window in ms before disconnecting (default 2500)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds real behavioral context the annotations do not: a WebSocket connection is opened, held briefly, and closed, so the call has connection-lifecycle side effects even though it does not mutate server state. It does not disclose auth requirements (e.g., whether WebSocket credentials must already exist) or what happens when the timeout expires with no output, which keeps it below 5.

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?

A single sentence in clear chronological order (connect, retrieve, disconnect) with zero redundant wording. Front-loaded with the connection action so the agent grasps the mechanism first.

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?

For a four-parameter read tool with no output schema, the description covers the mechanism and the kind of data returned (console output lines), and the schema carries all parameter detail. Minor gaps remain around failure modes (timeout with no output, offline server) and the exact shape of returned lines beyond the strip_ansi hint.

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%, with each of max_lines, strip_ansi, timeout_ms and server_id fully documented in the schema including defaults and bounds. The description adds only 'recent console output lines', which loosely maps to max_lines but contributes no syntax or format detail beyond the schema, 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 specific verbs and a specific resource: connect to the server WebSocket console, retrieve recent console output lines, disconnect. An agent immediately knows this is a log-fetch tool rather than a command-send tool like send_console_command. It stops short of naming that sibling to sharpen the boundary, so not a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the 'connect briefly ... disconnect cleanly' framing signals a transient, read-only snapshot fetch, which hints at when this is appropriate. There is no explicit when-to-use or when-not-to-use guidance, and no mention of alternatives such as send_console_command or get_websocket_credentials.

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