Skip to main content
Glama

ghostlan_wait_log

Poll a ghost's background process log until a line matches the given pattern or the timeout expires, enabling reliable detection of background output in a virtual LAN.

Instructions

Poll a ghost's background process log until a line matches pattern or timeout expires

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>",
      "pattern": "<pattern>"
    },
    "name": "ghostlan_wait_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
lanYesName of the virtual LAN
ghostYesGhost name inside the LAN
patternYesCase-insensitive regex or substring to wait for
proc_idNoProcess ID (optional if ghost has one process)
since_lineNoOnly match lines after this 1-based line number
timeout_secNoTimeout in seconds (default 10)

Output Schema

NameRequiredDescriptionDefault
log_fileYes
line_numberYes
matched_lineYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description does useful work by disclosing that this is a polling/blocking operation bounded by a timeout, which is the key behavioral trait. It does not say what happens on timeout (error vs. empty result), whether polling intervals matter, or whether the call blocks the caller for up to timeout_sec — gaps that matter for an unannotated 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 tightly written sentence with no filler and the termination condition front-loaded. It is arguably too terse for a 6-parameter blocking tool, but nothing in it is wasted.

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, so return-value explanation is not required, and all parameters are documented in the schema. However, for a blocking wait with no annotations, the description should say what a timeout produces and confirm blocking behavior; those omissions leave the agent guessing about failure modes.

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%, so lan, ghost, pattern, proc_id, since_line, and timeout_sec are all already documented in the schema, including the default of 10 seconds. The description only echoes 'pattern' and 'timeout' without adding semantics such as how since_line interacts with the match, so 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 a specific verb ('Poll') and resource ('a ghost's background process log') plus the termination condition (pattern match or timeout), which is enough to distinguish it from a plain log-reading sibling. It does not explicitly name a sibling for contrast, so it stops short of 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 'until a line matches pattern or timeout expires' clause implies the use case (blocking wait for an expected log line), but there is no explicit when-to-use vs. when-not guidance and no named alternative such as a non-blocking log read.

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