Skip to main content
Glama

diff_results

Compares two saved iotaudit JSON audits to report new or removed destinations, countries, open ports, grade or verdict changes, and unencrypted flows.

Instructions

Compare two saved iotaudit JSON audits.

Matches devices by MAC, then by IP. Reports new and gone destination domains and IPs, new countries, new open ports, grade and verdict changes, newly seen unencrypted traffic, and new UPnP forwards when the JSON contains them. security_relevant is true, and exit_code is 1, when a device, destination, country, open port, worse grade, unencrypted flow, or UPnP forward appeared.

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": {
      "old_path": "<old_path>",
      "new_path": "<new_path>"
    },
    "name": "diff_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
new_pathYes
old_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/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 burden and does a fair job: it discloses the join logic (MAC then IP), the exact categories of change reported, and the meanings of security_relevant=true and exit_code=1. It omits the read-only nature of the operation and what happens on missing or malformed paths, which are the residual gaps for an unannotated tool.

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 with the core action, followed by matching semantics and then reporting/exit-code details in a logical order. The final sentence is a dense run-on list, but every clause carries information the agent needs.

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 two-path diff tool with no output schema and no annotations, the definition covers matching logic, reported deltas, the security_relevant flag, and exit_code semantics. The main omission is any notion of the returned structure or of failure handling, both of which the agent must guess.

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 coverage is 0% — the schema only exposes bare titles 'Old Path' and 'New Path'. The description partially compensates by framing both arguments as saved iotaudit JSON audits, implying file paths of a specific format, but it adds no accepted path syntax, relative-vs-absolute rules, or error behavior.

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?

The opening sentence names a specific verb (compare) and a specific resource (two saved iotaudit JSON audits), which is immediately distinguishable from capture/scan/analyze_pcap siblings. The follow-on sentence clarifies the comparison key (MAC, then IP), so the agent knows exactly what class of operation this is.

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 implied: the input is two already-saved audit JSON files, so it is a post-capture step. However, it never states when to prefer this over analyze_pcap or what prerequisites exist (e.g., that audits must be generated first), leaving the agent to infer routing.

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