Skip to main content
Glama

Batfish Upload Snapshot

batfish_upload_snapshot

Upload a base64-encoded Batfish snapshot ZIP, sanitize its name, optionally target a network, and avoid overwriting existing snapshots by choosing a unique name.

Instructions

Upload a Batfish snapshot zip, base64-encoded.

The name is sanitized with safe_snapshot_name (Batfish allows only letters, digits, '-' and '_'). Unless overwrite is true, an existing snapshot of that name is kept and a unique name is chosen (base, base_1, ...). If network is given, the session is pointed at it first. Returns 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": {
      "name": "<name>",
      "zip_base64": "<zip_base64>"
    },
    "name": "batfish_upload_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
networkNo
overwriteNo
zip_base64Yes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the entire disclosure burden. It does well on name sanitization, the overwrite/unique-name collision policy, and the session side effect of 'the session is pointed at it first,' but it says nothing about authentication/permissions, zip validation or size limits, failure modes, or what state a failed upload leaves behind.

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?

It is short and front-loaded, leading with the action before the name/overwrite/network rules. The raw docstring formatting with mid-sentence line breaks and double-backtick markup makes it slightly less scannable than it could be, but no sentence is wasted.

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-value explanation is not required (the closing note about returning the actual name is a bonus). For an unannotated mutation tool, though, the description omits permission requirements, failure/rollback behavior, and payload constraints, leaving meaningful gaps.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate, and it largely does: all four parameters get meaning — name (sanitized to letters/digits/-/_), zip_base64 (base64-encoded payload), overwrite (keeps existing and picks base_1-style suffix unless true), and network (re-points the session first). Detail on edge cases such as size caps or encoding validation is absent.

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 opens with a specific verb and resource: 'Upload a Batfish snapshot zip, base64-encoded,' which clearly separates it from delete/fork/list snapshot siblings. It does not, however, explicitly contrast itself with batfish_fork_snapshot, the other tool that also creates a snapshot, so it falls short of full sibling differentiation.

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 rather than stated: the agent can infer this is the ingestion path for an externally produced zip, and the 'unless overwrite is true' clause explains one branch. There is no explicit when-to-use versus fork_snapshot, no prerequisite or ordering guidance, and no when-not-to-use statement.

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