Skip to main content
Glama

pt_activity_open

Opens a .pka activity in Packet Tracer, replacing the currently open one. Supply the instructor password to unlock the API on protected activities.

Instructions

Opens a .pka activity in Packet Tracer; it replaces what is open.

Parameters:

  • path: full path to an existing .pka (relative = inside the working directory).

  • password: only for a protected activity, the instructor's password. It goes to PT's confirmPassword and is neither stored nor echoed. Without it a protected activity opens but its API stays locked.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "pt_activity_open"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
passwordNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.1/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 that opening destroys the currently open state, that the password is passed to PT's confirmPassword and is neither stored nor echoed, and that omitting it leaves the API locked even though the activity opens. It does not cover error/failure behavior for a bad path or wrong password.

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 front-loaded sentence states the action and its destructive effect, followed by a compact parameter list where each entry adds distinct information. No filler or repeated schema content.

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 two-parameter tool with an output schema, the definition covers the mutation risk, password handling, and path resolution. The remaining gap is behavior on failure (missing file, incorrect password), which an agent might need before retrying.

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

Parameters5/5

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

Schema coverage is 0%, so the description must compensate, and it does: it defines 'path' as a full path to an existing .pka with relative paths resolved inside the working directory, and scopes 'password' to protected activities only, naming the destination (confirmPassword) and the consequence of omitting it.

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 gives a specific verb and resource ('Opens a .pka activity in Packet Tracer') plus the key side effect ('it replaces what is open'). It does not explicitly contrast with pt_open_project or pt_ui_open, but the '.pka activity' qualifier implicitly separates it from generic project opening.

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?

Usage is implied by file type: this is the tool for .pka activities, with the caveat that it replaces the current session. There is no explicit when-not or named alternative (e.g., 'use pt_open_project for .pkt files'), so the agent must infer sibling boundaries.

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