Skip to main content
Glama

static_patch_restore

Revert one static patch by index, or undo all outstanding patches at once, optionally selecting the target image with a key.

Instructions

Undo one static patch by index, or every outstanding patch with all=True.

key selects the image; without it the engine that owns any patch is used.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "static_patch_restore"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNo
keyNo
indexNo
sessionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the mutation ('Undo'), the targeting model, and the engine-resolution fallback, but says nothing about permissions, whether patch state is retained, error behavior for an invalid index, or reversibility.

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 tight sentences with the primary operation and the bulk variant front-loaded, then the resolution rule. No filler; only the unmentioned session parameter costs it a point.

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?

With an output schema present, return values need no explanation, and the description covers the core undo semantics plus engine resolution. For an unannotated mutation tool with a 0%-covered schema and an unexplained session parameter, it falls short of fully self-sufficient.

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 description coverage is 0%, so the description must compensate for four undocumented parameters. It explains all, index, and key (including the key-omitted fallback), but leaves the session parameter entirely unexplained.

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?

States a specific verb+resource: 'Undo one static patch by index, or every outstanding patch with all=True.' The word 'static' implicitly separates it from the sibling patch_restore, though it never names that alternative explicitly.

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

Usage Guidelines3/5

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

Gives clear selection logic between index-based undo and the bulk all=True path, and explains the key fallback ('the engine that owns any patch'). It never states when to prefer this over the sibling patch_restore or what preconditions must hold.

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