Skip to main content
Glama

pt_apply_netflow

Configures or removes a NetFlow exporter on a Packet Tracer device, validating the payload first with a dry run. Associates monitors and verifies the exporter was applied.

Instructions

Configures a NetFlow exporter on a PT device.

Unlike the rest of the advanced features, NetFlow does NOT go through CLI: it is configured directly and read back to verify it was applied. If the name already exists, it is reconfigured instead of duplicated. The exported FLOWS are not read: no way to read them was measured on PT 9 (the exporter manager has no exporter or monitor count either).

Parameters:

  • device: router where the exporter lives.

  • name: exporter name (e.g. "COLLECTOR-1").

  • destination_ip: the collector's IP. Without it the exporter is inert.

  • udp_port: the collector's UDP port (default 2055).

  • version: 9 (templates, recommended) or 5 (fixed format).

  • source_port: source interface; empty = PT picks it.

  • monitors: names of the monitors to associate.

  • remove: if True, deletes the exporter name instead of creating it.

  • dry_run: if True, only validates and returns the payload without touching PT.

Example: export to a collector at 192.168.0.50: pt_apply_netflow(device="R1", name="COLLECTOR-1", destination_ip="192.168.0.50")

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": {
      "device": "<device>",
      "name": "<name>"
    },
    "name": "pt_apply_netflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
deviceYes
removeNo
dry_runNo
versionNo
monitorsNo
udp_portNo
source_portNo
destination_ipNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does substantial work: idempotent-by-name behavior, a post-apply read-back verification, the destructive effect of remove=True ("deletes the exporter"), dry_run's no-touch guarantee, and the measured limitation that flows and exporter/monitor counts are unavailable. It stops short of saying how auth is handled or whether reconfiguring replaces or merges an existing monitors list.

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 purpose sentence followed by a behavior note, a semicolon-delimited parameter list, and a worked example – well structured and mostly economical. The parenthetical about the exporter manager having no exporter or monitor count is a slightly tangential justification that could be trimmed.

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?

For a nine-parameter mutation tool with no annotations, the definition covers application behavior, idempotency, deletion, validation mode, per-parameter meaning, and a concrete usage example; an output schema exists so return values need not be explained. Nothing an agent needs in order to call it correctly appears to be missing.

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 does so for all nine parameters: destination_ip is called out as required for the exporter to be functional, version 9 is tied to templates and 5 to fixed format, source_port empty means PT picks it, monitors names the associations, and remove/dry_run are given precise semantics. This adds genuine meaning beyond the bare schema titles and defaults.

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 a NetFlow exporter") and immediately marks the mechanism that separates it from the pt_apply_acl/bgp/qos family: it does not go through CLI but is applied directly and read back. An agent can identify it against siblings without opening the schema.

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?

Clear context for use plus explicit operational guidance: reconfiguring an existing name instead of duplicating, remove=True to delete rather than create, dry_run to validate only. It also warns that exported flows cannot be read on PT 9, steering the agent away from a read path that does not exist. No named alternative tool is offered, so it falls short of a 5.

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