Skip to main content
Glama
AIops-tools

queue-aiops

undo_apply

Apply a recorded undo by executing its inverse tool, with dry-run preview to safely validate the rollback before it runs.

Instructions

[WRITE][risk=medium] Apply a recorded undo by dispatching its inverse tool.

The inverse runs through its own governed tool, so it is audited under its own risk tier. Pass dry_run=True to preview the inverse call without executing it. A token can only be applied once.

Args: undo_id: The undoId from undo_list (or an _undo_id in a write result). dry_run: If True, preview the inverse tool + params without running it. target: Passed through to the inverse tool when it accepts a target.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNo
dry_runNo
undo_idYes
Behavior4/5

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

With no annotations, the description carries the full behavioral burden. It explicitly labels the tool as [WRITE][risk=medium], discloses that the inverse runs through its own governed tool with its own risk tier, notes that a token can only be applied once, and explains the dry_run preview behavior. This goes beyond basic purpose, though it omits error handling and return format details.

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?

The description is concise and well-structured: a leading risk marker, a short paragraph on behavior, and a clear Args list. Every sentence adds distinct value, with no filler or repetition.

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?

For a 3-parameter tool with no annotations or output schema, the description covers purpose, usage, parameter semantics, and key behavioral constraints (single-use, dry-run, risk governance). It does not explicitly state return values or failure cases, but these are not critical given the tool's straightforward nature and the availability of sibling tools like undo_list.

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?

The input schema has 0% description coverage, so the description fully compensates by explaining each parameter: undo_id (source from undo_list or _undo_id), dry_run (preview behavior), and target (pass-through behavior). This adds essential meaning that the schema alone lacks.

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 'Apply a recorded undo by dispatching its inverse tool,' which clearly states a specific verb and resource. It distinguishes from the sibling undo_list by focusing on application rather than listing, and the mechanism of dispatching an inverse tool adds valuable specificity.

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?

The description explains that undo_id comes from undo_list or a write result, and suggests using dry_run=True to preview without executing. This establishes clear usage context, though it doesn't explicitly state when not to use or name alternatives beyond the implicit undo_list. No exclusions are provided, but the context is sufficient for correct use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AIops-tools/Queue-AIops'

If you have feedback or need assistance with the MCP directory API, please join our Discord server