Skip to main content
Glama

herdr_cleanup

Detects and closes orphaned, dead, or completed Herdr worker panes and prunes stale worker records, with dry-run and force options to clean up multi-agent workflows.

Instructions

Detects and closes orphaned, dead, or completed worker panes in Herdr, and prunes stale worker records.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "herdr_cleanup"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNo
dryRunNo
includeIdleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/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, and it does disclose the mutating nature of the tool: panes get closed and records get pruned, so the agent knows state is destroyed. However, it says nothing about irreversibility, whether confirmation or force is needed, or what safety posture applies, leaving a meaningful gap for a destructive sweep.

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 tightly built sentence with the detection step and the pruning consequence front-loaded and no filler. It is appropriately short, though the brevity is part of why the parameter and safety context is absent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a destructive, three-parameter tool with zero annotations, zero schema documentation, and no output schema, so the description needed to do considerably more. It omits parameter behavior, safety semantics, and expected effects, covering only the high-level purpose.

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

Parameters2/5

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

Schema description coverage is 0% for all three parameters, and the description never mentions force, dryRun, or includeIdle. The names are largely self-explanatory, but the definition adds no meaning about what force overrides, whether dryRun is safe-by-default, or what counts as "idle".

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 pairs specific verbs ("detects and closes", "prunes") with a precisely scoped resource ("orphaned, dead, or completed worker panes", "stale worker records"). An agent can tell this is a maintenance/sweep operation rather than a general worker stop, though it never explicitly names herdr_stop as the contrasting tool.

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?

It implies the operating condition (orphaned/dead/completed panes) but gives no explicit when-to-use trigger, no exclusions, and no routing to alternatives such as herdr_stop for terminating live workers. The agent must infer that this is a periodic housekeeping call rather than a targeted shutdown.

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