Skip to main content
Glama

ssh_exec_poll

Retrieve current output and status of a background command started via ssh_exec by job ID, with optional stdout offset.

Instructions

Read the current output and status of a background command started with ssh_exec background=true.

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": {
      "job_id": "<job_id>"
    },
    "name": "ssh_exec_poll"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesJob ID returned by ssh_exec
stdout_offsetNoReturn stdout starting at this character offset

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. 'Current output' hints at a non-blocking snapshot, but it never says whether the call waits for completion, whether reading consumes or advances output, whether the job is left running, or how status/exit state is reported — all critical for a polling tool.

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 front-loaded sentence with no filler; the prerequisite ('started with ssh_exec background=true') follows the action and every word earns its place.

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 two-parameter read tool with no output schema, the definition covers the essential link back to ssh_exec. However, with no annotations and no output schema, the description should have explained the shape of the returned status (e.g., running/finished/failed), which an agent needs to poll 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%, so both job_id and stdout_offset are already documented in the schema. The description adds no meaning about the offset's purpose (incremental polling) or how job_id relates to ssh_exec's return, 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?

The description gives a specific verb and resource ('Read the current output and status of a background command') and pins the tool to jobs started via 'ssh_exec background=true', which separates it from ssh_exec itself and from ssh_exec_cancel. It stops short of a full sibling contrast, but the scope is unambiguous.

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?

The condition for use is explicit: only for background commands launched with ssh_exec background=true. It does not state when-not to use it or point at ssh_exec_cancel for termination, but the positive context is clear enough to select the tool.

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