Skip to main content
Glama

Run Ndiff

run_ndiff

Compare two Nmap XML scan files to identify new open ports, changed service versions, and hosts that went offline between scan intervals.

Instructions

Compare two Nmap XML output files and highlight changes in network state. Tags: network, comparison, enumeration

Usage Guide: Use this to identify new open ports, changed service versions, or hosts that have gone offline between two scan intervals. Requires XML output files (.xml).

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": {
      "file_yesterday": "<file_yesterday>",
      "file_today": "<file_today>"
    },
    "name": "run_ndiff"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_todayYesPath to the more recent Nmap XML file.
file_yesterdayYesPath to the baseline/older Nmap XML file.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/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 discloses that the tool compares two XML files and highlights network-state changes, but it does not explicitly state that it is read-only or describe any permission or file-handling constraints beyond requiring XML output files.

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-loaded with the core comparison behavior, followed by a clear usage scenario and input requirement. The added tags are somewhat extraneous, but overall the content is efficient and well structured.

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 simple two-file comparison tool with complete parameter descriptions and an output schema, the definition covers purpose, usage scenarios, and input format. It does not need to explain return values, but it could be slightly more complete by clarifying safe read-only behavior.

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 100%, so both parameters are already documented in the schema. The description reinforces that the inputs must be Nmap XML output files from two scan intervals, but it adds little beyond the schema's own descriptions of the recent and baseline files.

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: compare two Nmap XML output files and highlight changes in network state. It is clear enough to distinguish file comparison from scanning siblings, but it does not explicitly name or contrast with alternatives such as run_nmap.

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?

The Usage Guide gives concrete scenarios for when to use it: identifying new open ports, changed service versions, or hosts that have gone offline between scans. It also states the XML input requirement, but it does not mention when not to use it or name alternative tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.