Skip to main content
Glama

Prune

prune

Delete idle worker and shared sessions that have run no job for a configurable number of hours, while preserving sessions with running or queued jobs. This action cannot be undone.

Instructions

Delete your worker sessions, and the shared ones, that ran no job for older_than hours, such as the sessions of a main session that ended. A session with a running or queued job stays. It cannot be undone.

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": "prune"
  }
}

Input Schema

NameRequiredDescriptionDefault
workerNo
older_thanNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the whole burden, and it does substantial work: it declares the operation irreversible ('It cannot be undone'), names what is protected (sessions with running or queued jobs), and clarifies that shared sessions are in scope as well as the caller's own. Gaps remain on permission requirements, what happens to session artifacts/results, and whether any dry-run or preview exists.

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?

Three short sentences, front-loaded with the action and the eligibility rule, then the safety carve-out, then the irreversibility warning last for emphasis. No filler and no repetition of schema fields.

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

Completeness4/5

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

For a destructive, zero-annotation tool this is close to complete: the caller learns scope, eligibility, the preservation rule, and irreversibility, and an output schema exists so return values need no explanation. The remaining shortfall is the unexplained `worker` parameter and the absence of any permission or blast-radius note.

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 0%, so the description must explain both parameters. It does define `older_than` in units of hours since the last job, which is genuinely useful, but it says nothing about what `worker` does — whether it narrows the prune to a single worker or is merely a display/filter hint — leaving half the parameters undocumented everywhere.

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 names a specific verb (delete) and a precise resource (worker sessions plus shared ones) with a scoping predicate — sessions that ran no job for `older_than` hours. That is far more informative than the bare name 'prune'. It does not, however, contrast itself with a sibling like `delete` or `archive`, so an agent must infer the boundary itself.

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?

It clearly states the condition that makes a session eligible (idle for `older_than` hours, e.g. children of an ended main session) and the condition that excludes one (a running or queued job). What is missing is any explicit pointer to an alternative tool for cases the caller might actually want, such as `archive` or `delete`, so the when-not guidance is partial.

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