Skip to main content
Glama

pt_ui_mode

Switches Packet Tracer device-panel tools between headless API execution and visible UI tabs, or reports the current mode, so actions can run in the background or be watched and captured.

Instructions

Headless vs UI: decides whether the device-panel tools also SHOW what they do in Packet Tracer's window.

  • "headless" (default): everything through the API, no window opens.

  • "ui": pt_cli, pt_host_command, pt_host_ip_config, pt_server_*... open the device's window on the matching tab/app (CLI, Desktop > Command Prompt, Desktop > IP Configuration, Services > DHCP...) so it can be watched or captured.

  • "status": shows the current mode.

The mode is saved and survives server restarts. Every tool also accepts show=True/False for a single call. Use it when the user says "show it in PT", "I want screenshots", "use the tabs" (→ "ui") or "do it in the background" (→ "headless").

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_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNostatus

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the default (headless), that the setting persists across server restarts, that ui mode opens windows on specific tabs/apps, and that a per-call show flag overrides it. It stops short of noting any cost of ui mode (e.g. slower execution or window focus side effects) or what happens to calls already in flight.

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?

Front-loaded with the core distinction, then bulleted mode definitions, then persistence and the override flag, then usage triggers. Well organized and mostly tight, though the "pt_server_*..." ellipsis and the long trigger-phrase sentence add a little bulk.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the status return value needn't be spelled out. Combined with the default, persistence, affected tools, and per-call override, an agent has everything needed to set or query the mode correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the schema has no enum, so the description must supply value semantics - and it does, defining all three accepted strings and their effects. One small ambiguity remains: the schema defaults mode to "status" while the description calls headless the default, which could confuse an agent about what a no-argument call does.

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 opening line states a specific effect: it controls whether the device-panel tools also display their actions in Packet Tracer's window. The three modes (headless, ui, status) are enumerated with concrete consequences, and the tool is clearly distinguished from siblings like pt_ui_open, pt_ui_close and pt_ui_capture.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

It gives explicit trigger phrases mapping to each mode ("show it in PT", "I want screenshots", "use the tabs" -> ui; "do it in the background" -> headless) and names the per-call show=True/False alternative for one-off cases. When-to-use and when-to-use-the-alternative are both covered.

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