Skip to main content
Glama

Get a saved policy revision

get_policy_revision_document
Read-onlyIdempotent

Read a policy's saved historical configuration by revision ID from list_policy_revisions, with secrets replaced by {"redacted": true}. Returns the revision's policy version, providerVersion when recorded, save time and recorded audit actor. These describe saved configuration, never proof that a device applied it or that a person manually made the change. Read-only: creates no proposal and restores nothing. Use get_policy_document for the current configuration. A large result comes in parts: notShown lists paths to read separately, and nextFromIndex continues the same path. path is a JSON Pointer with numeric array indexes; omit it for all fields including apps. The current policy group is excluded because it is not historical configuration.

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": {
      "policyId": "<policyId>",
      "revision": "<revision>"
    },
    "name": "get_policy_revision_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoOptional JSON Pointer into the historical configuration, as in notShown. Default: the whole document (empty path). Arrays use numeric indexes, e.g. /apps/0/managedConfigurations.
companyNoOptional: a `company` value from list_companies to run this in. Omit it for the connection's own company.
policyIdYesThe policy's path name - the unique identifier returned by list_policies as "pathName".
revisionYesThe saved revision ID from list_policy_revisions, for this policy.
fromIndexNoWhen a result carries nextFromIndex, pass it here for the rest. Default 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, but the description goes further: secrets are replaced with {"redacted": true}, the payload shape (policy version, providerVersion, save time, audit actor) is described, and it explicitly disclaims that saved configuration is proof of device application or manual change. It also documents the paging behavior via notShown and nextFromIndex, which annotations cannot express.

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 core action and result shape, then usage routing, then paging mechanics, so an agent can stop reading early. It is dense but nearly every sentence carries distinct information; the caveat about device application and the read-only clause are the only near-redundancies against the readOnly annotation.

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?

With no output schema, the description takes on the return-value burden and does it: it names the returned fields, the redaction behavior, and the truncation protocol (notShown paths, nextFromIndex). Combined with 100% schema coverage and the revision-source guidance, an agent has everything needed to call and interpret it.

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

Parameters5/5

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

Schema coverage is 100%, so the baseline would be 3, but the description adds meaning the schema does not: path is a JSON Pointer with numeric array indexes and can be omitted for all fields including apps, which connects it to the notShown output. It also explains nextFromIndex as continuation of the same path, turning a bare integer into a workflow step.

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?

States a specific verb and resource ('Read a policy's saved historical configuration by revision ID') and anchors the ID to its source tool, list_policy_revisions. It explicitly separates itself from get_policy_document by naming the current-vs-historical distinction, so an agent can pick correctly without opening either schema.

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

Usage Guidelines5/5

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

Gives the alternative by name ('Use get_policy_document for the current configuration') with the condition that selects it, and ties the required revision parameter back to list_policy_revisions. It also states a key exclusion (the current policy group is not historical configuration), which prevents a common misuse.

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