Skip to main content
Glama

shell_close

Idempotent

Close an interactive shell session to release broker resources. Keeps the VM locked until you call vm_unlock, ensuring controlled access.

Instructions

Release broker resources for a completed interactive shell session. VM remains locked by this session; call vm_unlock when finished.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
vm_nameYesUnique VM name configured in WIN98CTL.INI.
session_idYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed2 schema fields changedv1.7.0
    • addedInput schema / properties / vm_name
      Added value: +{
      +  "description": "Unique VM name configured in WIN98CTL.INI.",
      +  "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "session_id"
      -]New value: +[
      +  "session_id",
      +  "vm_name"
      +]
  2. First observedv0.0.0-development

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations (idempotent, non-destructive), the description discloses an important side effect: the VM remains locked after the call and requires a separate vm_unlock. It also identifies that broker resources are released. This adds meaningful behavioral context beyond what annotations already provide.

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 sentences with no filler: the first states the action, the second gives the critical postcondition and next step. The most important information is front-loaded.

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 simple close action with only two parameters and no output schema, the description is complete enough: it explains the cleanup effect, the lock behavior, and the follow-up action. It could be slightly richer by mentioning what happens when called on an already-closed or invalid session, though idempotentHint partially covers that.

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 covers vm_name but leaves session_id undocumented. The description ties session_id to an interactive shell session and to the VM lock, which adds useful context. It does not state where session_id comes from (e.g., shell_start) or its format, so it only partially compensates for the schema gap.

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 uses a specific verb and resource: 'Release broker resources for a completed interactive shell session.' It clearly identifies the tool as a session-close cleanup operation. It doesn't explicitly differentiate from the sibling shell_terminate, but 'completed' and 'release' make the distinction reasonably clear.

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 states when to call the tool: after the interactive shell session is completed, and before the VM lock is released. It also explicitly directs the caller to vm_unlock, giving a clear sequence. It doesn't mention alternatives such as shell_terminate for active sessions, so it lacks explicit exclusions.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ido-pluto/windows98-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server