Skip to main content
Glama

Validate the snapshot

snapshot_validate
Read-onlyIdempotent

Re-reads the repository and reports whether the on-disk snapshot still matches it, so you can confirm earlier context is current before use or after configuration changes.

Instructions

Re-read the repository and report whether the snapshot on disk still matches it. Use it before trusting context that came from an earlier session, or after changing the config.

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

Input Schema

NameRequiredDescriptionDefault
onlyNoGlobs to include: replaces the config allow-list for this run.
rootNoRepository root. Defaults to the directory this server was started in.
sarifNoAlso write reports/audit.sarif beside reports/audit.md, for CI code scanning.
ignoreNoGlobs to exclude, added to the config deny-list for this run.
outDirNoSnapshot directory, relative to the root, and it must resolve inside the served repository. Defaults to the project configuration's outDir.
stagedNoOnly files staged in the git index.
skeletonNoReplace every function body with `{ /* ... */ }`, keeping signatures, imports and exports. Applies to TypeScript, JavaScript and JSX.
changedSinceNoOnly files changed since this git ref, for example "main" or "HEAD~3".
maxPartTokensNoToken ceiling per part, for example 32000 or "32k". Narrower than maxPartBytes; it converts at four bytes per token.
withDependentsNoWith staged or changedSince, also include the files that import the changed ones (one hop).

Output Schema

NameRequiredDescriptionDefault
currentNo
manifestPresentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered without prose. The description adds the meaningful fact that it re-reads the whole repository (implying non-trivial cost), but leaves open what a mismatch report contains, whether it repairs anything, and whether the report artifacts implied by the sarif/outDir parameters are written during validation. That ambiguity matters given 10 parameters.

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 short sentences with zero filler; the operation is stated first and the usage conditions follow. Every clause earns its place.

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?

An output schema exists, so return-value detail is rightly omitted, and annotations cover safety. However, with 10 optional parameters that overlap snapshot-generation options, the description should clarify whether validation only compares or also rewrites/refreshes the snapshot; that gap leaves an agent uncertain about side effects.

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%, so every parameter is already documented in the schema and the baseline of 3 applies. The description contributes nothing about parameters, and notably does not explain why a 'validate' operation accepts generation-style options such as skeleton, maxPartTokens and sarif.

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?

States a concrete verb+resource pair: re-read the repository and report whether the on-disk snapshot still matches. This clearly separates it from generation/query siblings like snapshot_generate or snapshot_status, though it never names a sibling explicitly to draw the line for the agent.

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?

Gives two concrete trigger conditions: before trusting context from an earlier session, and after changing the config. Both are actionable and specific. It lacks any when-not guidance (e.g., no need to run when the snapshot was just generated in-session) and names no alternative tool.

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