Skip to main content
Glama

Preview a snapshot

snapshot_plan
Read-onlyIdempotent

Preview a repository snapshot without writing files: see file and part counts, exclusion reasons, and pick a part budget before generation.

Instructions

Preview a snapshot without writing anything: how many files and parts it would contain, and why every excluded file was excluded. Use it to choose a part budget before generating.

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

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".
maxPartBytesNoByte budget per part, for example 307200 or "300k". Defaults to the project configuration.
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
filesNo
partsNo
presetNo
skippedNo
sourceBytesNo
emittedBytesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint=false, so "without writing anything" mostly reinforces structured data. What the description genuinely adds is behavioral content the annotations cannot express: the response includes counts and the reason each excluded file was dropped. It does not address the tension that the `sarif` parameter explicitly writes reports/audit.sarif.

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, zero filler, with the no-side-effects guarantee and the returned information front-loaded before the usage hint. Every clause carries distinct information.

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?

With an output schema present, the description need not enumerate return values, and it still summarizes them usefully; all 11 optional parameters are schema-documented. The one gap is that it claims nothing is written while the `sarif` flag writes a report file, leaving an agent to reconcile that on its own.

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 all 11 parameters are already documented in the schema, making 3 the baseline. The description only indirectly touches parameter meaning ("part budget" gestures at maxPartBytes/maxPartTokens, and "excluded file" gestures at ignore/only) without adding syntax, defaults, or interaction rules beyond what the schema states.

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?

"Preview a snapshot" is a specific verb+resource, and the description goes further by stating the deliverable: file/part counts plus per-file exclusion reasons. It distinguishes itself from the generator implicitly via "before generating" rather than naming snapshot_generate, so it falls just short of the explicit sibling differentiation a 5 requires.

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?

"Use it to choose a part budget before generating" gives a concrete decision point that maps to the maxPartBytes/maxPartTokens parameters. There are no explicit when-not conditions or named alternative (e.g., snapshot_generate, snapshot_budget), so the guidance is clear but not exhaustive.

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