Skip to main content
Glama

pt_activity_set_instructions

Writes custom HTML into the first instruction page of a Packet Tracer activity using the Wizard's Import Page, then reads it back to confirm the content is preserved.

Instructions

Writes the HTML of the first instruction page, with the Wizard open.

Goes through Import Page (a temporary file and PT's file dialog), the only way PT keeps the HTML, and reads it back with getInstructionSource(0). Reply: html_preserved, identical (apart from whitespace).

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": {
      "html": "<html>"
    },
    "name": "pt_activity_set_instructions"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the burden well: it discloses the temporary-file and file-dialog mechanism, the readback via getInstructionSource(0), and the expected preservation behavior. It still omits permissions, overwrite semantics for an existing first instruction page, and error behavior.

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?

The description is short and front-loads the action, then explains the mechanism and reply. It is dense with PT-specific jargon such as getInstructionSource(0) and PT's file dialog, but most sentences earn their place.

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 mutation with an output schema, the description is reasonably complete: it explains the hidden import/readback process and the expected reply. It still leaves some operational gaps around overwrite behavior and failure when the Wizard is not open.

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 html parameter. It adds that the HTML is written to the first instruction page and is expected to be preserved identically apart from whitespace, but it does not specify document completeness, encoding, size limits, or formatting requirements.

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 states a specific verb and resource: writing the HTML of the first instruction page. It also names the required Wizard-open context. It does not explicitly distinguish this tool from sibling activity tools, so it stops short of a 5.

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 Wizard-open prerequisite implies when the tool can be used, and the Import Page mechanism gives useful context. However, it does not say when to choose this over sibling tools such as pt_activity_build_initial or pt_activity_check, nor does it state failure conditions if the Wizard is closed.

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