Skip to main content
Glama
rentals-ops

rentals-ops

by BDhee

rollback_deploy

DestructiveIdempotent

Revert to an earlier deployed version when errors appear only on the new version after a deploy, using user confirmation and a documented reason.

Instructions

Should we roll back? Records a rollback to an earlier, already-deployed version. Use ONLY when errors started with a deploy and appear only on the new version. Never for a slow database or payment-provider problems: rolling back will not fix those. Ask the person and get a yes before calling this.

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": {
      "to_version": "<to_version>",
      "reason": "<reason>"
    },
    "name": "rollback_deploy"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy, with the evidence (min 15 characters).
to_versionYesAn earlier version to go back to, e.g. 1.4.0.

Output Schema

NameRequiredDescriptionDefault
noteYes
timeYes
authorYes
versionYes
minutes_agoYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructive=true and idempotent=true, and the description adds important behavioral context beyond them: human confirmation is required before calling, and rollback will not fix certain classes of problems. It does not detail blast radius, downtime, or exactly what state is changed beyond the version pointer.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with the decision question, then purpose, eligibility, exclusions, and confirmation. Every sentence adds operational value.

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?

Complete for a destructive deployment action: annotations cover safety profile, schema fully documents both parameters, an output schema exists, and the description supplies the missing gating and confirmation requirements.

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 coverage is 100%, so both parameters are documented in the schema. The description reinforces that to_version must be an earlier, already-deployed version but does not add syntax or guidance beyond that.

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 action and target: 'Records a rollback to an earlier, already-deployed version.' This clearly distinguishes the tool as a deployment action rather than one of the diagnostic siblings.

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 explicit positive eligibility ('Use ONLY when errors started with a deploy and appear only on the new version') and negative cases (slow database, payment-provider problems). It does not name an alternative diagnostic tool, but the when/when-not conditions are unusually clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.