Skip to main content
Glama

Batfish List Assertions

batfish_list_assertions

Lists available Batfish assertions from the curated registry and installed pybatfish, including grouped names and parameter specs for building assertion calls.

Instructions

List the assertions available (registry + live pybatfish names).

Returns {snapshot, answer, specs}:

  • snapshot / answer: assertion names available in the installed pybatfish, grouped by how they are called (session-bound vs answer-based).

  • specs: the curated registry {type: {label, description, group, phase, call, needs_question, params}} — each param is {name, type, optional, hint}, where hint describes complex types (e.g. HeaderConstraints) so you can build params.

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_assertions"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It makes clear this is a read-only listing and explains the returned structure, but says nothing about whether the registry can be absent, whether live pybatfish names always appear, or any failure conditions.

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 front-loaded with the purpose and then breaks the return shape into a compact bulleted list. Some of that return-shape detail overlaps with the output schema, but the explanation of nested ``specs`` and ``hint`` semantics is genuinely non-obvious and earns its space.

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 zero-parameter, read-only listing tool with an output schema, the description supplies the missing conceptual glue about what each returned field means and how to use the params hints. The main gap is the absence of any statement about how this relates to the run/list-questions siblings.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate at the input level. Baseline 4 applies; the description correctly adds no fake parameter guidance.

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 first sentence states a specific verb and resource: 'List the assertions available (registry + live pybatfish names)', and the following lines explain the two sources. It does not explicitly distinguish itself from siblings like batfish_list_questions, so an agent must infer that 'assertions' and 'questions' are different concepts.

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 only implied: the closing clause 'so you can build ``params``' hints that this is a discovery step preceding batfish_run_assertion, but there is no explicit 'use this before X' or 'do not use this for Y' statement. No alternative sibling is named.

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