Skip to main content
Glama

Batfish Get Question

batfish_get_question

Retrieve full metadata for one catalog question, including output columns, inputs, tags, and descriptions, to understand and correctly query its results.

Instructions

Return full metadata for one question, including output columns.

fun is a catalog question name (see batfish_list_questions).

Returns {category, category_description, fun, name, description, long_description, tags, synonyms, supports_differential, differential_only, output_columns, inputs, type?}:

  • output_columns is a list of {name, type, description} objects describing the answer table.

  • each input includes its catalog type and required flag plus template details when available: description, display_name, default, allowed_values (strings, or {value, description} objects), field_specs for structured values, and min_length.

  • TYPE_HINTS add hint/fields/placeholder/example for complex values such as HeaderConstraints.

Raises ValueError for an unknown fun, listing the known names.

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": {
      "fun": "<fun>"
    },
    "name": "batfish_get_question"
  }
}

Input Schema

NameRequiredDescriptionDefault
funYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose a concrete failure mode: 'Raises ValueError for an unknown `fun`, listing the known names.' That is genuinely useful pre-call knowledge. It stops short of stating that the operation is a side-effect-free read or describing any permission requirements, so it is strong but not complete.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose sentence is well front-loaded, but the bulk of the text enumerates return fields (category, tags, synonyms, supported_differential, etc.) even though an output schema already exists, making much of the list redundant. The parameter explanation is buried after the return-value block rather than placed before it.

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 single-parameter read tool with an output schema, the description covers purpose, parameter source, output enrichment (TYPE_HINTS, field_specs), and error behavior — enough to call it correctly. The only real omissions are any statement of read-only safety and an example of a valid `fun` value.

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 coverage is 0% — the schema gives only `fun: string` with no description — so the description must compensate, and it does: '`fun` is a catalog question name (see ``batfish_list_questions``).' That establishes the value domain and a discovery path. It does not show a concrete example of a question name or its naming conventions, which would fully close the gap.

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?

The description opens with a specific verb and resource: 'Return full metadata for one question, including output columns.' The scope (single question vs. catalog listing) is explicit, and the sibling batfish_list_questions is named as the source of valid `fun` values, so an agent can distinguish it from batfish_run_question or the list variants without opening 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?

It clearly states the use case (inspect one question's full metadata/output columns) and routes the agent to batfish_list_questions to discover valid `fun` names, with the ValueError fallback as a second discovery path. It gives no explicit when-not-to-use guidance versus batfish_run_question or batfish_find_questions, which keeps it below a 5.

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