Skip to main content
Glama

Close Workspace

workspace_close
Destructive

Close a workspace and terminate every pane process inside it to clean up terminal coding sessions you created or the user named.

Instructions

Close a workspace and terminate all pane processes inside it. Only close workspaces you created or the user named.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workspace_id": "<workspace_id>"
    },
    "name": "workspace_close"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspace_idYesWorkspace ID to close.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the description need only add the blast radius — and it does by stating that all pane processes inside are terminated. The ownership/consent constraint adds useful authorization context. It does not say whether termination is graceful or whether the action is reversible, which is the remaining gap.

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 short sentences, zero filler, with the destructive consequence stated up front before the safety constraint. Nothing is redundant with the title.

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 destructive tool with full annotation coverage and no output schema, the description covers purpose, side effects, and consent constraints adequately. A note on irreversibility or what happens to the workspace object afterward would make it complete.

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% with a single, self-evident workspace_id parameter, so the schema carries the parameter meaning. The description adds no format or sourcing detail beyond 'the workspace to close'.

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?

States a specific verb and resource ('Close a workspace') and adds the cascade scope ('terminate all pane processes inside it'), which distinguishes it from a single-pane or tab close without naming the sibling. The scope is unambiguous, though no sibling tool is named explicitly.

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?

'Only close workspaces you created or the user named' is a real precondition/exclusion that constrains when this tool may be invoked. It does not route the agent to alternatives (e.g., pane_close for a single pane), so it stops short of full when-to-use guidance.

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