Skip to main content
Glama

env_gc

Remove expired test environments by TTL or missing VirtualBox VMs, with a dry-run option to preview cleanup before deleting.

Instructions

Remove environments that have outlived the TTL set at fork time (ttl_seconds), plus any whose VM has vanished from VirtualBox. Environments forked without a TTL are never removed by age. Pass dry_run to see what would go without removing it. Good to call before finishing a session so short-lived envs do not pile up.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNolist what would be removed without removing it

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runYes
removedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explains what gets removed, the age-based exclusion for environments without a TTL, and the dry-run safety path. It could mention whether removal is permanent, but the core destructive behavior and conditions are transparent.

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?

The description is compact and front-loaded: it states the action and criteria first, then the exception, then the dry-run behavior, then the recommended usage. Every sentence adds necessary information without wasted words.

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 one-parameter tool with an output schema, the description is largely complete. It covers what is removed, when to use it, and how to preview. It does not describe return values in detail, but the presence of an output schema reduces that burden.

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?

The schema already covers the single dry_run parameter at 100%, including its meaning. The description reinforces it with 'Pass dry_run to see what would go without removing it,' but adds little beyond the schema. Baseline 3 is appropriate.

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 clearly states the tool removes environments, specifying the exact criteria (TTL expiration or vanished VirtualBox VM). It is scoped and readable, though it does not explicitly contrast itself with the sibling env_rm, so differentiation could be stronger.

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 description gives concrete guidance: call it before finishing a session to prevent short-lived environments from piling up. It also explains the dry_run option. It does not explicitly say when not to use it or when to prefer env_rm, but the context is clear enough for most cases.

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