Skip to main content
Glama

Restore a View layout revision

restore_view_revision
Destructive

Put an earlier revision's layout code back as a new revision, keeping everything after it in history. A View since switched to another layout becomes generated again; its name, filters, sort, and properties stay as they are. expectedVersion is the View's current version.

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": {
      "workspaceId": "<workspaceId>",
      "pageId": "<pageId>",
      "viewId": "<viewId>",
      "revisionId": "<revisionId>",
      "expectedVersion": "<expectedVersion>"
    },
    "name": "restore_view_revision"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdYes
viewIdYes
revisionIdYes
workspaceIdYes
expectedVersionYesThe View's current version.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description adds real substance: the restore is non-destructive to history ('keeping everything after it in history'), it creates a NEW revision, and name/filters/sort/properties are preserved while only layout code is replaced. It does not cover failure behavior when expectedVersion is stale or permission requirements, which keeps it from 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?

Three tight sentences, front-loaded with the core action and its history-preserving consequence before the edge case and the version parameter. No filler, though the layout-switch sentence is dense enough to require a second read.

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?

An output schema exists, so return values need not be explained, and the description covers the mutation's effect on history and on unchanged View attributes. Remaining gaps are minor: optimistic-concurrency failure behavior for expectedVersion and any permission or trashed-View preconditions.

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 only 20%, so the description carries a larger burden; it only explains expectedVersion ('the View's current version'), which the schema already states. The other four parameters are UUID identifiers whose meaning is evident from their names and formats, so the gap is tolerable, but the description adds little 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?

The description states a specific verb and resource: it puts an earlier revision's layout code back as a new revision of a View. 'View' plus 'layout code' distinguishes it from restore_page_revision and read_view_revision without naming them. It stops short of explicit sibling routing, so a 4 rather than a 5.

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 implied by the purpose — you call it to roll a View's layout back to a prior revision — and the description clarifies the outcome for a View that had switched layouts. It never says when to prefer this over restore_page_revision or when not to use it, so guidance is implied rather than explicit.

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