Skip to main content
Glama

Patch saved views

patch_views
Destructive

Atomically patch saved views with independent version checks, or restore trashed ones with restore. Replacing a query, sort, or presentation overwrites that configuration; only a generated View's code keeps revisions. A presentation replaces a generated View's whole code unless it omits code; change part of the code with codeEdits instead.

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>",
      "views": "<views>"
    },
    "name": "patch_views"
  }
}

Input Schema

NameRequiredDescriptionDefault
viewsYes
pageIdYes
workspaceIdYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and idempotentHint=false, so mutation risk is known. The description adds genuinely useful behavior: atomic multi-view application, independent per-view version checks, and the fact that replacing query/sort/presentation overwrites that configuration while generated code retains revisions. It does not describe what happens on a version mismatch (error shape, partial application) despite calling the operation atomic.

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 dense sentences with the primary action front-loaded and no filler. Minor cost: 'only a generated View's code keeps revisions' is compressed to the point of needing 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 main semantic hazards of a complex patch surface (atomicity, overwrite behavior, code revision preservation, codeEdits vs presentation). The remaining gap is failure/conflict handling for expectedVersion, which the phrase 'independent version checks' names but does not explain.

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?

Top-level schema coverage is 0% (workspaceId, pageId, views carry no descriptions), yet the description does not address them at all. What it does explain — restore, presentation vs codeEdits, overwrite-vs-retain semantics — largely restates the already detailed field descriptions in the schema, so the added meaning is modest rather than compensatory.

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 and resource ('Atomically patch saved views') and adds a second capability ('or restore trashed ones with restore'). It is clear what the tool does, though it never distinguishes itself by name from siblings like create_views, delete_views, or trash_views, so an agent must infer the boundary itself.

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?

Gives concrete selection logic inside the tool: use restore for trashed views, use codeEdits rather than a full presentation to change part of a generated View's code, and patch positions in a batch (from the position field) to reorder. It lacks explicit when-not-to-use guidance and never names an alternative tool for creating, listing, or deleting views.

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