Skip to main content
Glama
atengk
by atengk

ssh_job_clean

Remove expired or finished background job workspace directories (~/.mcp_jobs/) on remote SSH hosts, for a specific job or in bulk by inactivity age.

Instructions

清理远程主机上已结束或过期的后台作业工作空间目录 (~/.mcp_jobs/)

Input Schema

NameRequiredDescriptionDefault
jobIdNo若指定则清理特定作业的工作空间;若未指定则批量清理过期作业
maxAgeDaysNo若批量清理,超过指定天数无活动的作业将被物理删除,默认 7 天
connectionIdNo目标连接标识符,缺省时使用当前默认连接

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.1

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses what gets removed (finished or expired job workspaces) and where (~/.mcp_jobs/), but does not state irreversibility, that deletion is physical, or any permission requirements — the '物理删除' detail lives only in the schema.

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?

A single compact sentence that front-loads the action and its scope, with the target path appended. No wasted clauses, though it is terse enough to leave behavioral gaps.

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, zero-required-parameter destructive tool with no annotations and no output schema, the description covers purpose and target directory but omits irreversibility and permission context, leaving meaningful gaps.

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 all three parameters are already well documented (jobId targeting, maxAgeDays threshold with default 7, connectionId defaulting to current). The description adds no parameter-level detail beyond that baseline.

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?

Specific verb (清理) plus resource (后台作业工作空间目录) and scope (已结束或过期), with the concrete location ~/.mcp_jobs/ named. It is distinguishable from ssh_job_kill and ssh_job_status, though it does not explicitly reference those siblings.

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

Usage Guidelines2/5

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

The description states no when-to-use conditions or alternatives. The choice between targeted cleanup (jobId) and bulk expiry cleanup is only visible in the schema, not in the description. No exclusions or prerequisites are given.

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