Skip to main content
Glama

Batfish List Snapshots

batfish_list_snapshots

Lists snapshots for a Batfish network, optionally switching the session to a given network first; uses the current network when none is specified.

Instructions

List snapshots of a Batfish network.

If network is given, the session is pointed at it first (set_network); otherwise the session's current network is used.

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": "batfish_list_snapshots"
  }
}

Input Schema

NameRequiredDescriptionDefault
networkNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations at all, the description carries the full disclosure burden, and it flags a genuinely non-obvious side effect: supplying network silently re-points the session via set_network before listing. That is exactly the kind of hidden state mutation an agent needs to know. It stops short of stating what happens when the session has no current network or whether listing is scoped to the session's network only.

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?

Two short sentences, front-loaded with the core purpose and followed by the one conditional that matters. The only noise is the reStructuredText markup (double backticks and the ``set_network`` reference), which adds nothing for an agent reader.

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?

An output schema exists, so return values need not be described, and the sole parameter's semantics are fully covered including the null case. For a one-parameter listing tool with a disclosed session side effect, nothing essential to correct invocation is missing.

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% for the single optional network parameter, so the description must compensate, and it does: it explains both the supplied case (session pointed at that network first) and the omitted case (falls back to the session's current network). The default-null behavior is effectively described. Only format expectations for the string value are unstated.

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+resource: "List snapshots of a Batfish network." An agent can immediately tell this is the read-side listing tool, distinct from siblings like batfish_delete_snapshot or batfish_upload_snapshot. It does not explicitly name a sibling it should be preferred over, which keeps it from 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 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 tool is for enumerating snapshots, and the second sentence describes what happens when the optional network is supplied. There is no explicit when-to-use/when-not guidance, no prerequisite about needing an active session, and no routing to alternatives such as batfish_list_questions for other inventory.

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