Skip to main content
Glama

save_version

Saves a NAMED version of the current state, to BOUND a burst of writes: save_version("before the overhaul") → writes → save_version("Q3 overhaul"). Without it, every call produces a version with a generic label and the history becomes unreadable — hence unrestorable, since you no longer know what to go back to. The label is shown as is to the user: a label, in the user's language, that states the INTENT.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "label": "<label>"
    },
    "name": "save_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelYesThe label, short and in the user's language, as it will appear in the history. It states the INTENT, not the mechanics: a generic label such as "Add block" does not let you find any version.
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / label / description
      Previous value: -"The label, short and in the user's language, as it will appear in the history (e.g. \"Before Q3 overhaul\"). It states the INTENT, not the mechanics: a generic label such as \"Add block\" does not let you find any version."New value: +"The label, short and in the user's language, as it will appear in the history. It states the INTENT, not the mechanics: a generic label such as \"Add block\" does not let you find any version."
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  3. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  4. Changed2 schema fields changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID du projet visé par CET appel. Cible RÉELLEMENT ce projet au lieu du projet de session. Refusé sans rien modifier si l'accès n'est pas accordé."New value: +"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."
    • changedInput schema / properties / label / description
      Previous value: -"Le libellé, EN FRANÇAIS et court, tel qu'il s'affichera dans l'historique (ex : « Avant refonte Q3 »). Il dit l'INTENTION, pas la mécanique : « Ajout bloc » ne permet de retrouver aucune version."New value: +"The label, short and in the user's language, as it will appear in the history (e.g. \"Before Q3 overhaul\"). It states the INTENT, not the mechanics: a generic label such as \"Add block\" does not let you find any version."
  5. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare non-read-only, non-destructive, closed-world. The description adds real behavior beyond that: every write also generates a version, so unlabelled history becomes unreadable and effectively unrestorable, and the label is surfaced verbatim to the user. It does not explain what the call returns or any permissions, but the essential side-effect model is disclosed.

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?

Front-loaded with the core action and the motivating workflow example, with no filler sentences. The heavy capitalization and em-dash emphasis are stylistically noisy, and the final label sentence largely restates the schema property description.

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?

For a two-parameter, non-destructive tool with annotations and no output schema, the definition covers purpose, the workflow it enables, the consequence of omitting it, and the label's user-facing contract. Nothing an agent needs to invoke it correctly is missing.

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 both parameters are already documented in the schema, including the intent-not-mechanics rule for label. The description reinforces the user-visible consequence of the label but adds little new semantics, and expectedProjectId is not mentioned at all. 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 ('Saves a NAMED version of the current state') plus the scope of what is captured. The contrast with the implicit generic-labelled versions makes it distinguishable from a plain content edit and from the get_version/restore_version siblings.

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 a concrete when-to-use pattern: call before and after a burst of writes to bracket it. It does not name when NOT to use it or point to restore_version for rolling back, so the routing guidance stops short of exhaustive.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.