Skip to main content
Glama

Reverse Spec Fill

reverse_spec_fill
DestructiveIdempotent

Reverse a prior spec fill — restores every affected item's custom field values to their pre-fill state. Refuses if a later batch wrote overlapping attributes on overlapping items (to avoid overwriting newer data); those items are skipped with a warning.

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": {
      "batchId": "<batchId>"
    },
    "name": "reverse_spec_fill"
  }
}

Input Schema

NameRequiredDescriptionDefault
batchIdYesThe batch id (GUID) returned by apply_spec_fill.

Output Schema

NameRequiredDescriptionDefault
okNo
batchIdNo
warningsNo
skippedCountNo
restoredCountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is known; the description adds real context beyond that — the restoration target state and, importantly, a partial-failure mode where conflicting items are skipped with a warning rather than aborting. What remains unstated is permission requirements and the exact warning/return shape, though an output schema exists.

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?

Two sentences, zero waste: the primary action and its effect lead, followed by the exception case. The refusal condition is stated compactly in a parenthetical without burying the main behavior.

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 single-parameter destructive mutation with an output schema, the definition covers activation, effect scope, and the key edge case (stale overlapping writes). Only ancillary details such as auth requirements or what the warning looks like in the response are missing, and the output schema can carry the latter.

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?

With one fully documented parameter at 100% schema coverage, the schema already explains batchId as the GUID returned by apply_spec_fill. The description's reference to 'a prior spec fill' reinforces the provenance but adds no syntax or format detail — baseline 3 is appropriate.

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 (reverse) and resource (a prior spec fill), and defines the effect precisely: affected items' custom field values return to their pre-fill state. This distinguishes it cleanly from apply_spec_fill, whose batch id it consumes.

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 says when it applies (undoing a prior fill) and gives an explicit when-not: it refuses and skips items when a later batch wrote overlapping attributes on overlapping items. It does not name alternative tools (e.g., preview variants) for validating before reversing, so it stops short of full routing guidance.

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