Skip to main content
Glama

read-session-output

Read-only

Read recent output from a background SSH session to inspect ongoing logs or command results without interrupting the running process.

Instructions

Read recent output from a background session (e.g., tail -f logs).

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": {
      "name": "<name>"
    },
    "name": "read-session-output"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesBackground session name
linesNoNumber of recent lines to read
profileNoProfile name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.31.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observedv2.5.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds that output is 'recent' and analogizes to tail -f, hinting at non-blocking, bounded reads, but it does not say whether reads consume/advance a cursor, whether it blocks until output arrives, or what happens when the session has ended.

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?

One front-loaded sentence with the resource first and a useful clarifying example in parentheses; no filler and nothing 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?

For a simple three-parameter read tool with a read-only annotation and full schema coverage, the essentials are present, but the return shape and whether the call blocks or consumes output are left unstated, which matters for a log-tailing tool.

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 name, lines, and profile described in the schema, so the baseline is 3. The description adds no extra meaning about the lines window or what 'profile' selects beyond what the schema already states.

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 (read) and resource (recent output from a background session), which distinguishes it from the sibling 'read-command' by scoping to session output. It does not explicitly name a sibling to route away from, so it stops short of 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?

The parenthetical 'tail -f logs' implies the intended use case — polling output from a running background session — but there is no explicit when-to-use/when-not guidance and no named alternative such as read-command or list-sessions for discovery.

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