Skip to main content
Glama

workspace_delete

Delete a managed Git worktree by workspace ID. Dirty workspaces are refused unless force is true.

Instructions

Remove a managed Git worktree by immutable workspace ID. Dirty workspaces are refused unless force is explicitly true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoDiscard dirty workspace content when true.
workspaceIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.8/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 behavioral burden. It helpfully discloses that dirty workspaces are refused unless force is explicitly true, which is a real guardrail beyond the field names. It says nothing about whether deletion is permanent/irreversible, what permissions are needed, or what happens to in-flight agent/process sessions attached to the workspace.

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?

Two tight sentences with the destructive action and its ID-based scope front-loaded, followed by the one behavioral caveat. No filler.

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 two-parameter delete tool with no output schema and no annotations, the description covers purpose, the key safety gate, and the required identifier. Completeness would improve with a statement about permanence/reversibility or error behavior, but there is no output schema demanding return-value explanation.

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 50%: 'force' is documented in the schema, while 'workspaceId' is only constrained by a regex pattern. The description reinforces the force semantics ('unless force is explicitly true') and characterizes the ID as immutable, but adds no format or constraint detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/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 ('Remove a managed Git worktree') and scopes it by 'immutable workspace ID', which cleanly separates it from siblings like workspace_create and workspace_list. An agent can select it without opening the schema.

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

Usage Guidelines3/5

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

Usage is implied by the verb 'Remove' and the workspace-ID scoping, and the dirty-workspace condition hints at when the call will fail. However, there is no explicit guidance on when to use this versus alternatives (e.g. workspace_create's inverse, or cleanup workflows), nor any stated prerequisites or irreversibility warning.

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