Skip to main content
Glama

compensation-coverage

Check that every write step in a multi-step plan has an undo step, and give the rollback order — For an agent plan made of steps with declared effects (read or write), checks every write in the plan, run or not, has a compensation step that exists, is itself a write, is not its own compensation, and that the dependencies have no cycle; flags writes declared irreversible; and, given which steps have completed, returns the compensations to run in reverse completion order. Does not judge whether

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": {
      "steps": "<steps>"
    },
    "name": "compensation-coverage"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsYes
completedNoStep ids completed so far, in completion order. Only used for rollbackOrder and to say an irreversible write has already run; coverage is always checked for the whole plan.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations the description carries the full burden, and it does substantial work: analysis covers all writes 'run or not', cycle detection over dependencies, irreversible-write flagging, and a return value ordered by reverse completion. It never explicitly states the tool is side-effect-free or that the plan is unmodified, and no output shape is given, so it falls just short of full disclosure.

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

Conciseness3/5

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

The purpose and the key constraints are front-loaded, which is good, but the body is a single long run-on clause chained with 'and ... and' plus a dangling em-dash aside. The final sentence terminates at 'Does not judge whether', leaving a visible truncation that wastes space and leaves the reader hanging.

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?

This is a graph-validation tool with two parameters and no output schema, so the description must describe results; it only says compensations come back in reverse completion order, without indicating whether findings, errors, or flags are also returned. The severing of the 'does not judge' limitation also leaves the tool's scope boundary undefined.

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 50% and the description supplies real meaning for 'completed' (completion order drives rollback and whether an irreversible write has already run) and for 'irreversible' (still a coverage concern, not an exemption). It adds little for 'dependsOn', 'id', or 'effect', which the description only gestures at via 'declared effects (read or write)'.

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 definition names a concrete verb and resource ('Check that every write step ... has an undo step, and give the rollback order') and then enumerates the exact invariants verified: compensation exists, is a write, is not self-compensation, no dependency cycles, irreversible writes flagged. An agent can tell this apart from unrelated '*‑coverage' siblings 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 Guidelines3/5

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

Usage is only implied: run it over a declared plan to validate compensation coverage, and supply 'completed' to get a rollback order. The closing exclusion ('Does not judge whether ...') is the one attempt at stating when-not, but it is cut off mid-thought so the boundary is unusable. No explicit alternative tool or prerequisite is named.

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