Skip to main content
Glama

Batfish Fork Snapshot

batfish_fork_snapshot

Create a fork of a Batfish snapshot with selected nodes or interfaces deactivated, so you can diff it against the base and test failure scenarios.

Instructions

Fork a snapshot, optionally failing (deactivating) nodes/interfaces.

  • base_name: the snapshot to fork.

  • name: the fork's name (sanitized with safe_snapshot_name); defaults to <base>_Fail. Unless overwrite is true, an existing name is kept and a unique one is chosen (name, name_1, ...).

  • failed_nodes: node names to deactivate in the fork.

  • failed_interfaces: interfaces to deactivate, each as a node[interface] string (for example "r1[Gi0/0]") or as a {"hostname": "r1", "interface": "Gi0/0"} mapping. Bare node names are rejected; use failed_nodes for those.

  • The failure-testing flow is: fork, then diff the fork against the base with a differential question.

  • network: the network both snapshots live in, if given.

Returns {name, base_name} — the name actually used.

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": {
      "base_name": "<base_name>"
    },
    "name": "batfish_fork_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
networkNo
base_nameYes
overwriteNo
failed_nodesNo
failed_interfacesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.5/5.0
Behavior4/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 well: it discloses the default fork name, the safe_snapshot_name sanitization, the collision behavior (name, name_1, ...), the overwrite override, and the returned {name, base_name}. It does not state whether the base snapshot is untouched, whether forks consume storage, or any permission requirements, leaving some mutation side effects unaddressed.

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?

Front-loaded with a one-line summary, then a tight bullet per parameter with zero filler. The format example for failed_interfaces earns its place given the undocumented schema, and the workflow note is a single sentence.

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 six-parameter mutation tool with no annotations and an output schema (so return values need not be re-explained), the description covers naming, defaults, input formats, and follow-up workflow. The remaining gap is side-effect scope — what a fork does or does not do to the base snapshot and its resource cost.

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 coverage is 0%, so the description must compensate and it does: every parameter is explained, including the exact accepted shapes for failed_interfaces ("r1[Gi0/0]" or a {hostname, interface} mapping), the explicit rejection of bare node names, and the naming/overwrite interaction for name. This adds meaning well beyond the bare 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?

States a specific verb and resource ("Fork a snapshot") plus the distinguishing capability of deactivating nodes/interfaces in the fork. This clearly separates it from sibling operations like upload, delete, and list snapshots without needing to open a schema.

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?

Gives an explicit workflow: "fork, then diff the fork against the base with a differential question," which tells the agent when this tool is the right entry point. It lacks an explicit when-not statement or a named sibling (e.g. batfish_run_question) for the diff step, but the intended context is clear.

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