Skip to main content
Glama

guard_preflight

Idempotent

Validates configured tool presence and versions and checks git repository status before an agent proceeds with work.

Instructions

Tool presence/versions for configured tools + git-repo check.

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

The annotations already declare idempotent, non-destructive, closed-world, and not read-only behavior, so the description only needs to add domain context. It adds the scope of what is checked, but does not explain side effects, failure behavior, or what 'configured tools' means; the apparent inspection framing sits somewhat awkwardly with readOnlyHint=false without explicitly contradicting it.

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?

The description is a single compact fragment with no wasted sentences and the scope is front-loaded. However, the telegraphic phrasing ('Tool presence/versions... + git-repo check') is terse enough to reduce immediate clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Because there are no parameters, an output schema exists, and annotations cover safety traits, the description does not need to explain return values. Still, with many sibling guard tools and no guidance on when preflight should be invoked or what it gates, the definition is only minimally complete.

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 parameter semantics are largely moot and the baseline is 4. The description appropriately does not waste space documenting nonexistent inputs.

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 names the resources being checked: configured tools, their presence/versions, and a git-repo check. This is clear enough to understand the tool's purpose, but it does not explicitly distinguish it from siblings such as guard_status or guard_verify.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit guidance on when to use this tool versus alternatives, nor any stated prerequisites or exclusions. The word 'preflight' implies an early check, but the description does not operationalize that for an agent choosing among many guard_* siblings.

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