Skip to main content
Glama

Restore project version

restore_project_version
DestructiveIdempotent

Republish a retained prior graph version as the next version. Requires a changeNarrative with four plain-language sections written by the caller.

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": {
      "projectId": "<projectId>",
      "expectedProjectVersion": "<expectedProjectVersion>",
      "restoreVersion": "<restoreVersion>",
      "idempotencyKey": "<idempotencyKey>",
      "changeNarrative": "<changeNarrative>"
    },
    "name": "restore_project_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectIdYesOwned Brain Scanner project ID from the account's project list; not a local path or repository URL.
sessionIdNoID of this project's active agent session, returned when the session was started. Not needed for read-only calls.
idempotencyKeyYesCaller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.
restoreVersionYesSaved graph version selected for restoration.
changeNarrativeYesWrite four short, privacy-filtered summaries: added, updated, removed and relationships. Describe what changed in the graph; use a plain statement when a section has no changes.
expectedProjectVersionYesCurrent hosted project version from the latest project status read; guards against overwriting a newer graph publication.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / expectedProjectVersion / description
      Previous value: -"Current hosted project version from get_project_status; guards against overwriting a newer graph publication."New value: +"Current hosted project version from the latest project status read; guards against overwriting a newer graph publication."
    • changedInput schema / properties / projectId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Owned Brain Scanner project ID from the account's project list; not a local path or repository URL."
    • changedInput schema / properties / sessionId / description
      Previous value: -"Active session record.id from start_agent_session for this project. Pass it on later project calls after starting the session."New value: +"ID of this project's active agent session, returned when the session was started. Not needed for read-only calls."
  2. Changed3 schema fields changed
    • addedInput schema / properties / changeNarrative / description
      Added value: +"Write four short, privacy-filtered summaries: added, updated, removed and relationships. Describe what changed in the graph; use a plain statement when a section has no changes."
    • addedInput schema / properties / restoreVersion / description
      Added value: +"Saved graph version selected for restoration."
    • changedInput schema / properties / sessionId / description
      Previous value: -"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."New value: +"Active session record.id from start_agent_session for this project. Pass it on later project calls after starting the session."
  3. Changed4 schema fields changed
    • addedInput schema / properties / expectedProjectVersion / description
      Added value: +"Current hosted project version from get_project_status; guards against overwriting a newer graph publication."
    • addedInput schema / properties / idempotencyKey / description
      Added value: +"Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action."
    • addedInput schema / properties / projectId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
    • addedInput schema / properties / sessionId / description
      Added value: +"Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL."
  4. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description adds real value beyond that by clarifying that the restore republishes the old graph as the *next* version — i.e., history is appended, not truncated — and that a caller-authored four-section narrative is mandatory, which the annotations cannot convey.

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, front-loaded with the core semantics and followed by the hard requirement. No redundant restatement of the title and nothing that could be cut without losing meaning.

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 destructive, idempotent mutation with a nested-object parameter and no output schema, the description covers the essential semantics (forward-append restore, mandatory narrative) while the rich schema handles parameter detail. It stops short of describing failure modes such as a stale expectedProjectVersion rejection or concurrency behavior, which would have made it complete.

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 all six parameters (including the nested changeNarrative sections and the expectedProjectVersion guard) are already documented in the schema. The description only restates the changeNarrative obligation without adding format or content guidance beyond what the schema provides, so the baseline 3 applies.

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?

The description uses a specific verb+resource pair ('Republish a retained prior graph version as the next version') and clarifies the restore semantics — it appends forward rather than rolling back. It does not name or contrast with a sibling such as list_project_versions or patch_project_graph, so differentiation is left to the reader.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the mention of 'a retained prior graph version' signals this is for reverting to an earlier saved version, but there is no explicit when-to-use, when-not-to-use, or named alternative. The one prerequisite stated ('Requires a changeNarrative with four plain-language sections') is a call requirement rather than a selection guideline.

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.

Resources