Skip to main content
Glama

Snapback

preflight

BEFORE running: get known failure patterns for a given agent setup so you can avoid them. Returns a ranked list of {failure_class, root_cause, fix_suggestion} from Snapback's library. Call this before executing a plan and self-correct.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNotask facets, e.g. [tool_calling, retrieval] (optional)
limitNomax cards (default 10)
agent_stackNoe.g. openclaw, langchain (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It states the return format (ranked list of {failure_class, root_cause, fix_suggestion}) and implies a non-destructive read operation. It does not mention edge cases like empty results or ranking criteria, but the core behavior is transparent enough for an agent to call it safely.

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

Conciseness5/5

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

Two sentences with zero waste. The critical 'BEFORE running' instruction is front-loaded, and the return structure is stated compactly. Every word contributes to the tool's purpose and usage.

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 read-only tool with three optional parameters and no output schema, the description provides the return structure, usage timing, and purpose. It does not explain how the optional parameters influence the ranking or what happens when no patterns match, but these are minor gaps. The description is sufficiently complete for an agent to decide when and how to invoke it.

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

Parameters3/5

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

Schema coverage is 100%, so each parameter (tags, limit, agent_stack) is documented. The description does not add extra meaning beyond the schema; it only refers to 'agent setup', which loosely maps to agent_stack but without further detail. Baseline 3 is appropriate when the schema already handles parameter documentation.

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 uses a specific verb ('get') and resource ('known failure patterns for a given agent setup'), and explicitly frames the tool as a pre-execution step with 'BEFORE running'. This clearly differentiates it from reactive diagnostic siblings like diagnose_trace and diagnose_batch, which focus on post-hoc analysis.

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?

The description gives explicit timing guidance: 'Call this before executing a plan and self-correct.' This is clear when-to-use advice. It does not explicitly mention alternatives or exclusions, but the 'BEFORE running' instruction and the sibling names (e.g., diagnose_*) make the intended context unambiguous. A small deduction for not naming an alternative directly.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.