Skip to main content
Glama

kb_revisions_restore

Idempotent

Promote a past revision to a new current revision. The body is copied forward — historical rows are never mutated (ADR-0027).

Input Schema

NameRequiredDescriptionDefault
revision_idYesRevision id to restore from
tenant_slugNoTenant slug to target. Required when your token grants several workspaces; omit when it grants one. If you omit it with several, the refusal names your default workspace; call kb_tenants_list to see every workspace the token grants.
include_bodyNoInclude the full document body_md (default false; off keeps the response small - the promoted body is already readable via kb_revisions_get, and the returned current_revision_id confirms the landing).

Output Schema

NameRequiredDescriptionDefault
documentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=true. The description adds valuable behavioral context by clarifying that historical rows are never mutated, directly reinforcing the non-destructive nature beyond what the annotations provide. It does not cover permissions or response details, but the added immutability guarantee is meaningful.

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 no wasted words. The core action is front-loaded, and the immutability guarantee follows immediately, making it easy to scan and understand.

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?

Given the rich annotations, full schema descriptions, and the presence of an output schema, the description covers the essential operation and adds an important behavioral guarantee. It does not need to explain return values because the output schema exists, but it could have included a brief usage condition to be fully 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 the schema already fully documents all three parameters. The description does not add any new parameter-level semantics beyond what the schema provides; the baseline score of 3 is appropriate when 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?

The description uses a specific verb ('Promote') and resource ('past revision to a new current revision'), making the operation unambiguous. It clearly distinguishes itself from read-only siblings like kb_revisions_get and kb_revisions_list by describing a state-changing promotion.

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?

The description implies when to use the tool by stating its effect, but it does not explicitly name alternatives or when not to use it. There is no guidance such as 'use instead of kb_revisions_get when you need to roll back to an earlier version' or any prerequisite context.

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.