Skip to main content
Glama

restore_post_version

Restore an earlier post version, saving the current text to history first; it returns to its original variant if present, otherwise the main post.

Instructions

Put an old version back (into its variant if it still exists, else the main post). The current text is saved to history first.

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": {
      "session": "<session>",
      "version": "<version>"
    },
    "name": "restore_post_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionYesSession: 'Project/folder', an absolute path or its id (from get_session). Old paths still work.
versionYesVersion id from the history list.
platformNoWhich post of the session: linkedin (default, posts/linkedin.md), x (posts/x.md), youtube (the long wide video: title + description, posts/youtube.md) or vertical (one vertical video and caption for TikTok, Instagram Reels and YouTube Shorts, posts/vertical.md).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2026.11.11
    • changedInput schema / properties / session / description
      Previous value: -"Session as 'Project/folder', an absolute path, or its id (from get_session). An old path still works after a rename or move."New value: +"Session: 'Project/folder', an absolute path or its id (from get_session). Old paths still work."
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only give the generic safety profile (readOnly=false, destructive=false); the description adds the genuinely useful behavioral detail that the current text is saved to history before the overwrite, which explains why this mutation is non-destructive and recoverable. It also discloses the non-obvious targeting rule (variant vs main post) that determines where the write lands. What it omits is what the call returns and whether the restored variant's status changes.

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 action and its target-resolution rule come first, and the safety behavior (history backup) follows immediately, so the reader gets the two facts that matter in reading order.

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 three-parameter mutation with full schema coverage, no output schema, and annotations covering the safety profile, the description supplies the two things structured data cannot: where the restore lands and that the prior text is preserved. The remaining gap is modest — no note on return value or on what happens if the version id is stale.

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 three parameters are already documented, including the platform enum values and file mappings; the baseline is therefore 3. The description adds only a light gloss that 'version' is an old version to be put back, without extra format or validation detail beyond the schema.

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 specific verb (put back / restore) and a specific resource (an old version of a post), and clarifies the resolution rule: restored into its variant if that variant still exists, otherwise the main post. This is more than a restatement of the name. It stops short of naming the sibling it differs from (e.g. restore_script_version or use_post_variant), so an agent must infer that boundary.

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 phrase 'old version' plus the schema note that 'version' is a 'version id from the history list' points at post_history as the prerequisite source, but the description never says so explicitly. There is no statement of when to prefer this over use_post_variant or create_post_variants, and no exclusions or prerequisites.

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