Skip to main content
Glama

shell_exec

Destructive

Run commands in a Windows 98 VM and capture ordered stdout and stderr output. If an error occurs, receive a screenshot to diagnose issues, then unlock the VM when done.

Instructions

Run a command to completion with captured ordered stdout+stderr output; error results may include a screenshot. VM remains locked by this session; call vm_unlock when finished.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNo
commandYes
vm_nameYesUnique VM name configured in WIN98CTL.INI.
timeout_msNo
screenshot_on_errorNo

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: -[
      -  "command"
      -]New value: +[
      +  "command",
      +  "vm_name"
      +]
  2. First observedv0.0.0-development

TDQS

A4.3/5.0
Behavior5/5

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

The description discloses several important behaviors beyond the annotations: ordered stdout+stderr capture, possible screenshot on error, and the critical fact that the VM remains locked until vm_unlock is called. This is meaningful context that the annotations do not provide, and it contradicts nothing.

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 two concise sentences with no filler. The primary action and output behavior are front-loaded, and the VM lock warning is placed at the end where it serves as an important operational note.

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?

Given the lack of an output schema, the description provides a solid behavioral contract: ordered output capture, error screenshots, and VM lock lifecycle. It does not detail timeout/cwd defaults or exit-code semantics, but those are parameter-level details rather than major gaps in the tool's overall context.

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 only 20%, so the description needed to compensate for the undocumented parameters. It mentions captured output and screenshot-on-error, but it does not explain cwd, timeout_ms, or the screenshot_on_error parameter directly, and command semantics are only implicit in 'Run a command'. Most parameters are left to be inferred from their names.

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 states a specific action ('Run a command to completion') and a clear resource (a command on a VM), and it specifies behavioral details: captured ordered stdout+stderr and possible screenshots on error. This distinguishes it from interactive shell tools like shell_start and shell_read by emphasizing one-shot execution to completion.

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 clearly communicates the execution model: run to completion, capture output, and handle the VM lock by calling vm_unlock when finished. It does not explicitly name alternatives or exclusion criteria, but the 'to completion' wording provides enough context to separate it from interactive or streaming shell commands.

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