Skip to main content
Glama

Batfish Find Questions

batfish_find_questions

Find catalog questions from plain-language queries by matching names, descriptions, tags, synonyms, inputs, and outputs, returning ranked results with categories and relevance scores.

Instructions

Find catalog questions from a plain-language query.

query is the user's own wording, e.g. "standby gateway", "traffic going in circles", or "which firewall rule is blocking". It is matched against question names, descriptions, categories, tags, synonyms, input names/descriptions/allowed values, and output columns.

Returns {query, count, total_matches, results} where each result is {fun, name, category, description, tags, synonyms, supports_differential, differential_only, score, matched_on}. Results are ranked by relevance and capped at limit (default 5).

Use batfish_get_question(fun) for full input/output details. This tool uses checked-in metadata and does not contact Batfish.

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": {
      "query": "<query>"
    },
    "name": "batfish_find_questions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so well: it discloses rank-by-relevance ordering, the ``limit`` cap with a default of 5, and critically that it "uses checked-in metadata and does not contact Batfish" — a non-obvious, load-bearing behavioral fact. It also enumerates the exact result fields.

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?

Front-loaded with purpose, then examples, then matching scope, then return shape, then the sibling hint — a sensible order. The enumerated result-field list is slightly redundant since an output schema already exists, but it stays readable and short.

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?

For a two-parameter, read-only search tool this covers everything an agent needs: what is searched, how results are ranked and capped, what comes back, that no server contact occurs, and where to go for full question details. The presence of an output schema makes the field listing a bonus rather than a gap-filler.

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: ``query`` is defined as the user's own wording with three examples and the full list of fields it is matched against, and ``limit`` is explained as the cap on ranked results with a default of 5. Both parameters gain meaning not present in 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 ("Find catalog questions") plus the exact mechanism: a plain-language query matched against names, descriptions, categories, tags, synonyms, inputs and output columns. That matching semantics distinguishes it from a plain enumeration tool like batfish_list_questions without needing to name it.

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 three concrete example queries illustrating the intended input style and explicitly routes the agent onward ("Use batfish_get_question(fun) for full input/output details"). It does not state when to prefer batfish_list_questions over this tool, so the alternative routing is only half covered.

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