Skip to main content
Glama

lab_diff

lab_diff
Read-onlyIdempotent

Compare before and after snapshots to return readable differences in devices, links, interfaces, and CLI configurations, helping diagnose changes non-destructively.

Instructions

Return a readable diff of device, link, interface, and CLI config changes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lab_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
after_snapshotNo
before_snapshotNo
timeout_secondsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and closed-world scope, so the safety profile needs no restating. The description adds the useful fact that the diff is human-readable and spans device, link, interface, and CLI config categories, but says nothing about what happens when snapshots are omitted or how large diffs are handled. That extra behavioral context is the missing piece.

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?

A single front-loaded sentence with no filler, and the content scope is stated up front. It is efficient, though the terseness is part of why other dimensions are thin.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return shape need not be described, and annotations cover the safety profile. However, for a three-parameter diff tool with zero schema documentation, the description should at minimum explain what supplying or omitting the before/after snapshots does; that gap keeps it at merely adequate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across three parameters, so the description must carry the meaning and it carries none. It never mentions before_snapshot, after_snapshot, or timeout_seconds, and the critical ambiguity of both snapshot params defaulting to null is left completely unexplained.

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 names a specific verb (return a diff) and a specific resource set (device, link, interface, and CLI config changes), so an agent can tell what it produces without opening the schema. It stops short of distinguishing itself from snapshot-oriented siblings such as lab_snapshot, which is the only reason it is not a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to call this versus lab_snapshot or grade_lab, no stated prerequisites (e.g., whether snapshots must exist first), and no exclusions. The sentence describes output only, leaving the agent to infer the workflow context.

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