Skip to main content
Glama

Diff Node Versions

diff_node_versions
Read-onlyIdempotent

Compare two configuration versions of a network node and see the unified diff, highlighting exactly what changed. Defaults to showing the most recent modification.

Instructions

Show what changed in a node's configuration between two versions.

Returns a unified diff from 'base_oid' (older) to 'oid' (newer). With no arguments besides the node it shows the most recent change.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
oidNoNewer version oid (full or prefix); defaults to the latest version
nodeYesNode name or IP address (e.g. 'core-sw01')
groupNoNode group; looked up automatically when omitted
base_oidNoOlder version oid to compare against; defaults to the version before 'oid'
max_linesNoMaximum diff lines to return (0 = whole diff)
context_linesNoUnchanged lines of context around each change

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already indicate a safe read-only, idempotent operation. The description adds meaningful behavioral detail: output is a unified diff with a defined ordering, and default behavior when only the node is supplied. This goes beyond the annotation-provided safety profile.

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?

Two concise sentences deliver the core purpose and defaults with no filler. The most important information is front-loaded, and every sentence earns its place.

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 read-only diff tool with full schema coverage, an output schema, and safety annotations, the description covers the essential behavior and default invocation. There is no critical information an agent needs to call it correctly that is missing.

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 the schema already documents all six parameters, including defaults and meanings. The description reinforces the base_oid-to-oid direction, but does not add significant meaning beyond what the schema provides, so the baseline score of 3 is appropriate.

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 description clearly identifies the operation: showing what changed in a node's configuration between two versions, specifically via a unified diff. It distinguishes itself from siblings like get_node_version and get_node_config by focusing on comparison rather than retrieval.

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 description provides clear context for use, including the diff direction (base_oid older to oid newer) and the no-argument behavior of showing the most recent change. It does not explicitly name alternatives or exclusion cases, but the usage context is unambiguous.

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