Skip to main content
Glama

Read a View layout revision

read_view_revision
Read-onlyIdempotent

Read the layout code a generated View had at one revision, in chunks. nextCodeOffset is where the next chunk starts, and null once the code is complete.

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

Input Schema

NameRequiredDescriptionDefault
pageIdYes
viewIdYes
codeOffsetNo
revisionIdYes
workspaceIdYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

B3/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and closed-world access, so the safety profile is fully covered. The description adds genuinely useful paging behavior, since the result arrives in chunks and terminates when nextCodeOffset is null. It does not disclose chunk sizing, error behavior for an out-of-range offset, or what happens when the revision has no code.

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?

Two short sentences, front-loaded with the operation and its scope, with no wasted words. The second sentence is about return-value mechanics rather than how to invoke the tool, so it is useful but slightly off-target given an output schema already exists.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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, yet pagination is the main thing the description does explain. Conversely, the input side, how to obtain a valid revisionId, what the chunk size is, and how to resume from a prior chunk, is left incomplete for a five-parameter historical-read tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

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

Schema description coverage is 0%, so the description carries the full explanatory burden, and it does not pay that off. It names nextCodeOffset, which appears to be an output field rather than the input parameter codeOffset, and it never explains the relationship between the two, nor does it clarify how workspaceId, pageId, viewId, and revisionId chain together.

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: reading the layout code of a generated View at a particular revision, delivered in chunks. That is far more informative than the title alone. It stops short of distinguishing itself from read_page_revision or list_view_revisions, so sibling differentiation is left to name inference.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of the sibling tools that supply context (such as listing revisions to obtain a revisionId), and no statement of when this tool is the wrong choice. The word 'generated' hints at a precondition, but it is never made 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