Skip to main content
Glama

close-workspace

DestructiveIdempotent

Close a workspace's dedicated iTerm2 windows and viewers without touching GLM processes or protected logs. Refuses closure if unrelated sessions were added.

Instructions

Close only registered dedicated windows and viewers. Refuses closure if unrelated sessions were added. Leaves GLM processes and protected logs intact. Idempotent.

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": {
      "workspaceId": "<workspaceId>"
    },
    "name": "close-workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspaceIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, readOnlyHint=false and openWorldHint=false, so the safety profile is covered structurally. The description does add genuinely useful behavior beyond that: what is left untouched (GLM processes, protected logs) and the refusal condition when unrelated sessions exist. However, restating 'Idempotent' duplicates the annotation and nothing is said about what a successful close returns or what state the workspace is left in.

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?

Four short sentences, front-loaded with the scope before the side-effect guarantees. Only the trailing 'Idempotent.' is wasted space since the annotation already declares it.

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 single-parameter, no-output-schema, destructive tool, the description covers what is destroyed, what is protected, and the failure mode, which is close to sufficient. The remaining gap is the meaning of workspaceId, which neither the schema nor the description supplies.

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 the single parameter, so the description carries the full burden and does not meet it. It never explains that workspaceId is the UUID of a registered workspace, nor what 'registered' means in this context, leaving the only required argument entirely uncharacterized.

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 gives a specific verb ('Close') and a scoped resource ('only registered dedicated windows and viewers'), so an agent knows this targets a workspace's windows/viewers rather than an agent pane. It does not explicitly name or contrast with the sibling 'close-agent-pane', so the differentiation is inferred rather than stated.

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?

There is no explicit 'use this when' statement and no routing to alternatives such as close-agent-pane. The only operational hint is the refusal precondition ('Refuses closure if unrelated sessions were added'), which tells the agent a call may fail but not when to prefer this tool.

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