Skip to main content
Glama

save_partial_snapshot

Persist each batch's partial concept map to .mason/partial-snapshots/ for later merging, passing batchId and offset from batch generation.

Instructions

Persist the partial concept map you derived for one batch. Call this once per batch, with the batchId from the generate_snapshot_batch response. Partials accumulate in .mason/partial-snapshots/ and are merged in the reduce step.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dirYesAbsolute path to the project root directory
flowsYesPartial flows whose entire chain is in this batch. Cross-batch flows are reconstructed in reduce.
offsetYesThe `offset` returned by `generate_snapshot_batch`. Used to order partials in the reduce step.
batchIdYesThe `batchId` returned by `generate_snapshot_batch`.
featuresYesPartial features for this batch only — files outside the batch will be added by other partials.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.17.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the key behavioral traits: a persistence side effect, the destination path ('.mason/partial-snapshots/'), and the fact that partials are merged later in reduce. It does not cover overwrite/re-run semantics or error behavior if called twice for the same batch.

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, zero filler, with the core action and cadence front-loaded ahead of the storage/merge detail.

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?

For a five-parameter mutation with nested objects, no output schema, and no annotations, the description adequately covers what the tool does, when to call it, and where the data goes. It leaves the return value and re-invocation behavior unspecified, which is a minor gap.

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 the schema already documents all five parameters, including the nested features/flows structure. The description adds only the sourcing of batchId from generate_snapshot_batch, which the schema description also states. Baseline 3 is appropriate.

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 resource ('Persist the partial concept map') and scopes it precisely to 'one batch'. The sibling relationship to the full-snapshot flow is implied by 'partial' and 'merged in the reduce step', which separates it from save_snapshot.

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 an explicit cadence ('Call this once per batch') and tells the agent where the batchId value originates ('from the generate_snapshot_batch response'). It positions the tool in the generate -> save -> reduce pipeline without naming explicit when-not conditions or alternate siblings by name.

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