Skip to main content
Glama

Propose a policy rollback

rollback_policy

Propose rolling a policy back to one of its revisions (list_policy_revisions): its whole configuration - apps, settings, restrictions, networks - is restored, and its name goes back to the revision's when they differ (the change list shows it); description, tags and group stay. Nothing changes yet: this returns a proposal with the differences. Show it to the user and get their explicit approval. A rollback of a policy that has devices is HIGH impact. With onlyThisRevision: undo only what that revision changed (explain_changes names it), keeping later saves; prefer it when one change caused a problem. To undo the latest save, restore the revision before it instead (no onlyThisRevision). Once the user approves, apply it with apply_policy_proposal (a person approves a HIGH impact one in the Nomid portal instead: give the user its approvalUrl).

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": "rollback_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
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 revision to restore, from list_policy_revisions; with onlyThisRevision, the revision whose changes to undo.
onlyThisRevisionNotrue: undo only what this revision changed and keep everything saved after it (a field changed again since stays and is listed). Default false: restore the whole policy to this revision.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / onlyThisRevision
      Added value: +{
      +  "description": "true: undo only what this revision changed and keep everything saved after it (a field changed again since stays and is listed). Default false: restore the whole policy to this revision.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / revision / description
      Previous value: -"The revision to restore, from list_policy_revisions."New value: +"The revision to restore, from list_policy_revisions; with onlyThisRevision, the revision whose changes to undo."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations mark this non-read-only and non-destructive, and the description is consistent: it states plainly that nothing changes yet and that a proposal with a difference list is returned, which explains why destructiveHint is false. Beyond that it discloses approval requirements ('get their explicit approval'), the HIGH impact classification for policies with devices, and the name-reversion side effect that the change list surfaces.

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?

It is front-loaded with the core action and the 'nothing changes yet' caveat before the mode-specific guidance, and every clause carries information. The downside is density: it is one long paragraph mixing semantics, approval workflow, and impact warnings, which would read better as separated points.

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?

For a proposal-generating mutation with no output schema, the description covers the return value (a proposal containing differences), the approval gate, the downstream apply tool, and the HIGH impact escalation path. Nothing an agent needs to call this correctly and handle the result is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description goes further by contrasting the two modes of `revision` (restore target vs. the revision whose changes to undo) and by recommending when to prefer onlyThisRevision. It still leaves the `company` scoping parameter entirely to the schema, so it is not fully additive.

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 opens with a specific verb and resource ('Propose rolling a policy back to one of its revisions') and immediately clarifies that nothing is applied yet, which cleanly separates it from apply_policy_proposal. It also enumerates exactly what a rollback restores (apps, settings, restrictions, networks) versus what is preserved (description, tags, group), so the agent knows the blast radius without opening the 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?

It gives explicit routing rules: use list_policy_revisions to find the revision, use onlyThisRevision when a single change caused a problem, and instead restore the revision before the latest save when undoing the newest change. It also names the downstream step (apply_policy_proposal) and the portal alternative for HIGH impact cases, including the approvalUrl to hand the user.

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