Skip to main content
Glama
AIops-tools

io.github.AIops-tools/network-aiops

config_diff

Preview configuration changes with a dry-run diff, redacting credentials and supporting merge or full-replace modes.

Instructions

[READ] DRY-RUN: stage a candidate, return the diff, then discard it.

Nothing is committed. This is the dry-run primitive for previewing a change.

The diff is credential-redacted like config_backup, and for the same reason: a diff that ADDS 'snmp-server community X' contains X, and one that removes a line quotes the credential the device already had. The result carries a "redaction" block with the count.

Args: config_text: The configuration snippet (merge) or full config (replace). replace: True to diff as a full-config replacement; False (default) to merge. include_secrets: True to return the verbatim diff — use when verifying that the literal key you are pushing is the one that will land. target: Device name from config.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNo
replaceNo
config_textYes
include_secretsNo
Behavior5/5

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

With no annotations, the description carries full burden. It discloses it is a dry-run, nothing is committed, diff is credential-redacted with a redaction block, and include_secrets provides verbatim output.

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 well-structured with a bold summary, behavioral explanation, and parameter list. It is thorough but slightly verbose; could be tightened slightly.

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?

Given no annotations and no output schema, the description covers behavioral traits and all parameters adequately. It explains the redaction block but does not detail the diff format or error handling, yet is sufficient for a preview tool.

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 description coverage is 0%, but the description provides detailed explanations for all four parameters: config_text (merge vs replace), replace (toggle), include_secrets (verbatim), and target (device name), adding significant meaning beyond the schema.

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 labels it as a [READ] DRY-RUN operation, states it stages a candidate, returns the diff, and discards it with 'Nothing is committed.' This distinguishes it from sibling tools like config_merge and config_replace.

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 explains it is the 'dry-run primitive for previewing a change' and contrasts redaction with config_backup. It implies use before committing but does not explicitly list when not to use or compare with all siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AIops-tools/Network-AIops'

If you have feedback or need assistance with the MCP directory API, please join our Discord server