Skip to main content
Glama

ghostlan_logs

Read stdout/stderr log lines from a background process in a ghost, with tailing, line offset, and regex/substring filtering to inspect recent or matching output.

Instructions

Read stdout/stderr log lines from a background process in a ghost (supports tail, since_line, and regex/substring filter)

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": {
      "lan": "<lan>",
      "ghost": "<ghost>"
    },
    "name": "ghostlan_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
lanYesName of the virtual LAN
tailNoTrailing lines to read (default 100, -1 or 0 for all when filtering)
ghostYesGhost name inside the LAN
filterNoCase-insensitive regex or substring filter
proc_idNoProcess ID (optional if ghost has one process)
since_lineNoSkip the first N lines (1-based offset)

Output Schema

NameRequiredDescriptionDefault
contentYes
total_linesYes
matched_linesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. "Read" plus a stdout/stderr scope conveys a non-mutating snapshot, and the parenthetical discloses defaults and filtering semantics (tail default 100, -1/0 for all, case-insensitive match, 1-based offset). However, it says nothing about blocking behavior, whether the call fails when the process has exited, or truncation limits, which matter for a log-reading tool.

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?

One front-loaded sentence with the verb, resource, and container stated first, followed by supported modifiers. The parenthetical slightly duplicates schema content but is short enough to earn its place as a capability summary.

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?

An output schema exists and all six parameters are documented in the schema, so the description needn't explain returns. What remains unaddressed is the interaction with the wait_log sibling and the failure behavior when the process is missing, which is a real gap for a selection decision.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description adds useful cross-parameter context by grouping tail, since_line, and filter as the supported read-shaping controls. That grouping tells an agent these three interact for pagination and narrowing, a relationship the per-parameter schema text does not state.

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 and resource: "Read stdout/stderr log lines from a background process in a ghost." Scope is narrowed to a single process inside a ghost, which meaningfully separates it from LAN-wide or GUI siblings. It stops short of explicitly naming how it differs from ghostlan_wait_log, which reads/watches the same resource.

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 description implies usage (inspect buffered output) but gives no explicit when-to-use framing, no prerequisites, and no exclusion. The obvious alternative, ghostlan_wait_log, is never mentioned even though an agent must choose between 'read now' and 'wait for a pattern'.

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