Skip to main content
Glama

Restore an archived post

restore_post

Undo archive_post: bring an archived post back into the active list. Only an ARCHIVED post can be restored (anything else is refused with the reason). Check the result's status and scheduledAt before assuming it will publish.

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": {
      "postId": "<postId>"
    },
    "name": "restore_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
postIdYesThe post ID (from list_posts)
organizationIdNoOrganization to act in — an id from list_organizations. Required when this connection was authorized for more than one organization; omit it when there is only one.

Output Schema

NameRequiredDescriptionDefault
postNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare the tool is a non-read-only, open-world, non-idempotent, non-destructive mutation. The description adds real value beyond that: the state gate on ARCHIVED posts, the refusal-with-reason failure mode, and the warning that a restored post's status/scheduledAt should be checked rather than assumed to publish. It stops short of covering permissions or repeat-call behavior, which keeps it at 4 rather than 5.

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 compact sentences, front-loaded with the action and its inverse relationship, then the precondition, then the post-call caveat. No filler or repetition of the title.

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?

An output schema exists, yet the description still calls out the two result fields (status, scheduledAt) that an agent most needs to interpret, which is exactly the kind of pointer that complements a structured return. For a two-parameter mutation with full annotation coverage, nothing material 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% and both parameters (postId, organizationId) carry their own descriptions, including the multi-organization condition. The description adds no parameter-level detail, so the baseline 3 is right — the schema does the heavy lifting.

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 ('bring an archived post back into the active list') and explicitly frames itself as the inverse of the named sibling archive_post, so an agent can distinguish it from archive_post, cancel_post, or reschedule_post without opening a schema.

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

Usage Guidelines5/5

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

Gives the triggering condition (undo an archive), the strict precondition (only an ARCHIVED post can be restored), and the failure behavior for anything else (refused with the reason). The only mild gap is that it doesn't say what to do instead if the post isn't archived, but the precondition and refusal semantics cover the practical decision.

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