Skip to main content
Glama

Snapshot health audit

snapshot_health
Read-onlyIdempotent

Audit a generated snapshot against its repository: verify manifest shape, part hashes, artifacts, unmasked secrets, host paths, token count and freshness. Returns a score per check.

Instructions

Audit the generated snapshot against the repository: manifest shape, part hashes, the artifacts it claims, unmasked secrets anywhere in the written text, values from files that were excluded as sensitive, host paths, the recorded token count and freshness. Returns a score and one entry per check. Read-only; it never regenerates anything.

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": "snapshot_health"
  }
}

Input Schema

NameRequiredDescriptionDefault
deepNoReplay every full body against the source on disk. Slower, and catches a generator that wrote the wrong bytes.
rootNoRepository root. Defaults to the directory this server was started in.
outDirNoSnapshot directory, relative to the root, and it must resolve inside the served repository. Defaults to the project configuration's outDir.
maxScanBytesNoCap on the text the secret and host-path scans read (default 8 MB).

Output Schema

NameRequiredDescriptionDefault
scoreNo
checksNo
countsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real substance beyond that: the exact check surface, including secret scanning of written text and leakage of excluded-file values, plus the fact that nothing is regenerated and a score is produced. It does not discuss cost, failure modes, or what a failing check looks like, which keeps it off a 5.

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 check inventory is front-loaded into a single dense sentence, followed by a short safety clause; nothing is padded or repeated. The enumeration is long but each item names a distinct check, so the length is buying information rather than wasting it.

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?

An output schema exists, so return values need not be spelled out, and the annotations cover the safety and idempotency profile. The description supplies the remaining gap an agent needs: what the audit actually inspects, that it is non-destructive to the snapshot, and that it yields a score plus per-check entries.

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 description coverage is 100%, and each of the four parameters carries its own explanatory text in the schema, including the deep-replay cost tradeoff and the outDir containment constraint. The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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?

Uses a specific verb (Audit) plus a specific resource (the generated snapshot against the repository) and then enumerates the check families: manifest shape, part hashes, claimed artifacts, unmasked secrets, excluded-sensitive values, host paths, token count and freshness. That is far more than a restatement of the name. It stops short of naming a sibling such as snapshot_validate or snapshot_status, so the boundary with adjacent read-only inspection tools is left implicit.

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?

The closing clause 'Read-only; it never regenerates anything' implicitly tells the agent this is the safe inspection path when it does not want a rebuild. However, there is no explicit when-to-use framing and no comparison to snapshot_validate, snapshot_status, or snapshot_generate, which is the decision an agent actually faces in this catalog.

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