Skip to main content
Glama

Snapshot status

snapshot_status
Read-onlyIdempotent

Check whether a repository snapshot exists, when it was built, and what it covers by reading the manifest, so you can decide if a new snapshot is needed.

Instructions

Report whether a snapshot exists for this repository, when it was built, and what it covers. Reads the manifest rather than the repository, so it is cheap. Call it before deciding whether a snapshot needs to be generated.

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_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.

Output Schema

NameRequiredDescriptionDefault
rootNo
outDirNo
presentNo
partCountNo
fingerprintNo
generatedAtNo
skippedFilesNo
warningCountNo
includedFilesNo
generatorVersionNo
generatorVersionMatchesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so safety is covered. The description adds value beyond them by explaining why it is cheap — it reads the manifest rather than the repository — which tells the agent it can call this frequently without cost.

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?

Three short sentences: purpose first, then cost rationale, then usage trigger. No filler, and each sentence carries distinct information.

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 carry the safety profile. For a two-optional-parameter read tool, the description supplies purpose, cost model, and calling context — everything needed to invoke it correctly.

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%, and the schema already explains defaults for root and outDir including the must-resolve-inside-the-repository constraint. The description mentions neither parameter, so it adds no meaning beyond the schema; baseline 3 applies.

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 object: report whether a snapshot exists, its build time, and its coverage. Among siblings like snapshot_generate, snapshot_history, and snapshot_validate, this reads unambiguously as a lightweight existence/build-state check.

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?

Explicitly says 'Call it before deciding whether a snapshot needs to be generated,' which gives a clear trigger tied to the generate workflow. It stops short of naming the alternative tool or stating when not to bother, so it is a strong 4 rather than a 5.

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