Skip to main content
Glama

pt_fix_plan

Automatically repair Packet Tracer plan errors by fixing cables, upgrading routers without ports, and reassigning ports.

Instructions

Tries to fix the plan's errors automatically. Fixes cables, upgrades routers that lack ports, reassigns ports.

Parameters:

  • plan_json: JSON of the plan to fix

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": {
      "plan_json": "<plan_json>"
    },
    "name": "pt_fix_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
plan_jsonYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

B3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It does disclose the mutation classes (cable fixes, router upgrades, port reassignment) and the word 'tries' signals a best-effort, non-guaranteed outcome, but it never says whether plan_json is mutated in place or a new plan is returned, whether the operation is idempotent, or what happens to unfixable errors.

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?

Two short sentences plus a parameter block; the core purpose is front-loaded and nothing is padded. The 'Parameters:' section is mildly redundant with the input schema but is brief enough not to be wasteful.

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

Completeness3/5

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

The single-parameter shape and the presence of an output schema lower the bar substantially. Still, for a mutation tool with zero annotations the definition omits the origin of plan_json and any precondition (must the plan be validated first?), leaving notable gaps an agent must guess at.

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

Parameters2/5

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

Schema description coverage is 0%, so the description was the only place to add meaning and it merely restates the schema ('plan_json: JSON of the plan to fix'). It adds no format details, no indication of where the plan JSON comes from (e.g. pt_estimate_plan or pt_validate_plan output), and no notes on what shape is required.

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 opens with a specific verb+resource ('fix the plan's errors') and enumerates the concrete remediations ('Fixes cables, upgrades routers that lack ports, reassigns ports'), which lets an agent distinguish it from read-only siblings like pt_validate_plan or pt_explain_plan without opening the schema. It stops short of naming those siblings explicitly, so it does not reach 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?

Usage is only implied: 'Tries to fix the plan's errors automatically' suggests calling it when a plan has errors, presumably after pt_validate_plan surfaces them. There is no explicit when-to-use statement, no condition for when-not to call it (e.g. plan already valid), and no named alternative.

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