Skip to main content
Glama

Restore deleted Wiki page

wiki_recovery_recover

Undo a page delete: redeem a recovery_token and bring the page back.

Instructions

Undo a page delete: redeem a recovery_token and bring the page back.

pages_delete returns the token — it is the only handle to the deleted page. Returns the restored page's numeric id and permanent slug, and pages_count, how many pages came back (the page and those under it). No request body; the token in the path is the whole request.

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": {
      "token": "<token>"
    },
    "name": "wiki_recovery_recover"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesUUID4 ``recovery_token`` returned by ``pages_delete``.
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.142.2
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "default": false,
      +  "description": "Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).",
      +  "type": "boolean"
      +}
  2. Addedv0.122.1

TDQS

A4.4/5.0
Behavior4/5

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

With annotations only declaring the safety profile, the description adds real behavior: the restore is cascading (``pages_count`` reports the page plus those under it), and it returns the restored page's numeric ``id`` and permanent ``slug`` — output shape that matters since there is no output schema. It also notes no request body is needed, clarifying the call mechanics. It does not address token expiry or what happens on a second call with the same token, which is why this isn't a 5.

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 action and the key precondition, then the return values, with no filler sentences. The reST double-backtick markup is slightly noisy in prose but does not impede comprehension or cost length.

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 mutation with no output schema, the description covers what it does, what it needs, what it returns (id, slug, pages_count), and the cascade semantics of the restore. The annotations already carry the safety hints, so 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.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds provenance and meaning the schema doesn't: the token comes specifically from ``pages_delete``, it is the sole handle to the deleted page, and it travels in the path rather than a body. The ``dry_run`` parameter is left entirely to the schema, but that is adequately documented there.

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?

"Undo a page delete: redeem a recovery_token and bring the page back" gives a specific verb (undo/restore) and resource (deleted Wiki page), and it explicitly links to the sibling ``pages_delete`` that produced the token, so an agent can tell this apart from the other restore-flavored 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?

It states the precondition clearly: you must hold a ``recovery_token`` from ``pages_delete``, and that token is "the only handle to the deleted page." It doesn't spell out when recovery is impossible (e.g., expired token) or name an alternative path, but the entry condition is unambiguous.

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

Deploy Server

Other Tools