Skip to main content
Glama
Packet Tracer MCP — Node.js port

Packet Tracer MCP — Node.js port

pt_apply_bgp

Configures and verifies BGP on a Packet Tracer router via IOS CLI, setting ASN, neighbors, and network advertisements with optional dry-run validation.

Instructions

Configures BGP on a router through IOS CLI, each line verified (router bgp, neighbor <ip> remote-as, network <net> mask <mask>). Measured on a 2911 in PT 9.

  • router: router name in PT.

  • asn: local AS, 1-65535 (4-byte ASNs were not measured).

  • neighbors: [{"ip": "10.0.0.2", "remote_as": 65002}]; remote_as == asn is iBGP. With PT connected, a neighbor off every connected subnet is a warning.

  • networks: CIDR list, host bits zero, e.g. ["192.168.1.0/24"]. BGP only advertises a network that is in the routing table with that exact mask. show running-config prints a classful one without mask.

  • dry_run: validate and return the CLI/payload without sending.

Example: pt_apply_bgp(router="R1", asn=65001, neighbors=[{"ip": "10.0.0.2", "remote_as": 65002}], networks=["192.168.1.0/24"]) Check: pt_cli(device="R1", commands=["show ip bgp summary"]).

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": {
      "router": "<router>",
      "asn": "<asn>"
    },
    "name": "pt_apply_bgp"
  }
}

Input Schema

NameRequiredDescriptionDefault
asnYes
routerYes
dry_runNo
networksNo
neighborsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.5/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 each CLI line is verified, that behavior was measured on a 2911 in PT 9, that a neighbor off every connected subnet produces a warning, and that BGP only advertises networks present in the routing table with the exact mask. It omits failure/rollback semantics and whether re-application is idempotent, which keeps it from a 5.

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?

Front-loaded with the action and the emitted CLI, then a tight bulleted parameter list, then a concrete example and a verification call. Every sentence adds information; nothing is padding.

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 5-parameter mutation tool with no annotations and no output schema, the description covers purpose, all parameters, behavioral caveats, and a verification path. The remaining gap is what the tool returns and how partial failures are reported, which an agent would need to interpret results.

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: asn is bounded 1-65535 with a note that 4-byte ASNs were not measured, neighbors documents the object shape and the iBGP condition (remote_as == asn), networks requires CIDR with host bits zero and explains the classful-mask caveat, and dry_run is defined as validate-and-return-without-sending.

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?

States a specific verb and resource ('Configures BGP on a router through IOS CLI') and enumerates the exact CLI lines it emits, so an agent knows precisely what the tool does. It also distinguishes itself from the generic sibling by pointing to pt_cli for verification rather than configuration.

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

Usage Guidelines4/5

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

Usage context is clear: apply BGP config, use dry_run to validate without sending, and verify afterwards with pt_cli(device=..., commands=['show ip bgp summary']). It does not explicitly say when to prefer a sibling apply tool or what to do if BGP is already configured, so it stops short of full when/when-not guidance.

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