Skip to main content
Glama

pt_ui_close

Closes a specified device window in Packet Tracer, or all open device windows when no device is specified.

Instructions

Closes a device's window in PT, or all of them if device is empty.

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": "pt_ui_close"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.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 carries the full burden; it does disclose the scope behavior (single window vs. all windows) which is the key behavioral fact. However, it says nothing about side effects an agent would care about for a close operation — whether unsaved configuration in the window is discarded, whether a confirmation prompt can appear, or what happens with an unknown device name.

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?

A single tight sentence, front-loaded with the primary action and immediately followed by the important edge case. No filler, no repetition of the tool name.

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 UI tool with an output schema, the description covers the purpose and the only non-obvious parameter behavior. An agent can call it correctly; only the error/unsaved-changes behavior is unaddressed, which is a modest gap 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?

Schema description coverage is 0%, so the description must compensate for the single 'device' parameter. It does explain the semantic meaning of the empty default (target all windows vs. one), which is real added value, but it never states whether the value is a device name, ID, or model, so the agent cannot reliably construct a valid value from the description alone.

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 ("Closes a device's window in PT") and adds the no-argument case ("or all of them if device is empty"), which makes the tool distinguishable from pt_ui_open and pt_ui_capture. It does not explicitly reference any sibling, but the purpose itself is unambiguous.

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 one usage rule it gives — omit 'device' to close all windows — is genuinely useful and covers the main branching decision. There is no explicit guidance on when to prefer this over alternatives or on prerequisites (e.g., whether the window must already be open), leaving usage only implied beyond that single case.

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

Deploy Server

Other Tools