Skip to main content
Glama

screen_destroy

Closes a created virtual screen, including its applications, mirror window, and compositor, to clean up the agent's isolated GUI session.

Instructions

Close a screen you created: its applications, its mirror window and its compositor.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "screen_destroy"
  }
}

Input Schema

NameRequiredDescriptionDefault
screenNoscreen name; optional when the session owns exactly one screen

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description must carry behavioral disclosure, and it does the most important part: it names exactly what is destroyed (applications, mirror window, compositor). It stops short of stating irreversibility, whether applications are force-terminated or gracefully closed, or any permission/lifecycle requirements.

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?

One sentence, front-loaded with the action and immediately followed by the affected resources. No filler and nothing that could be cut without losing meaning.

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 teardown tool with no output schema, the description covers the action, the ownership constraint, and the destruction scope. The remaining gap is error and irreversibility behavior, which is minor given the tool's simplicity.

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 single parameter is fully documented in the schema, including the optional-when-one-screen condition, so the schema already does the work. The description adds no format or naming detail beyond what the schema provides, making 3 the correct baseline.

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?

"Close a screen you created" gives a specific verb and resource, and the clause enumerating applications, mirror window and compositor makes the blast radius explicit. It does not name a sibling such as app_close as the narrower alternative, so differentiation is implicit 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 Guidelines3/5

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

The phrase "a screen you created" encodes an ownership precondition, implying this is for tearing down session-owned screens rather than arbitrary ones. There is no explicit guidance on when to prefer app_close or screen_list, and no statement of what happens if the screen does not exist.

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