Skip to main content
Glama

devpattern_revert

Reverts tracks, phases, or tasks by analyzing Git history to find associated commits and undo the target work safely.

Instructions

Git-aware revert of tracks, phases, or tasks. Analyzes git history to find commits associated with the target work and reverts them safely.

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": "devpattern_revert"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetNoTarget to revert - can be a track ID, phase name, or task description
projectPathNoPath to the project directory (defaults to current working directory)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It does add real value by disclosing the mechanism — scanning git history to locate commits tied to the target and reverting them — but leaves key mutation traits unstated: whether it creates revert commits or resets, whether it is irreversible, and what 'safely' concretely means. Disclosure of mechanism without consequences is a partial pass.

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 compact sentences, front-loaded with the verb and resource, with no filler. Slightly terse for a destructive git operation, but nothing is wasted.

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?

For a mutation tool with no annotations and no output schema, the definition should say more about outcome and risk — whether the revert is committed, whether it can be undone, and what the agent gets back. Parameter coverage is complete, so the gap is behavioral rather than structural.

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 100%, so both parameters (target, projectPath) are already fully documented in the schema, including the target's accepted forms and the projectPath default. The description adds no syntax, format, or disambiguation detail beyond that, so the baseline 3 applies.

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 and resource — 'Git-aware revert of tracks, phases, or tasks' — and the second sentence narrows the mechanism to git-history analysis. This is clearly distinct from the sibling operations (implement, newTrack, setup, status), so an agent can identify it 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?

The usage context is only implied by the word 'revert' and the enumeration of target types; there is no explicit statement of when to choose this over devpattern_implement or devpattern_status, and no prerequisites (clean working tree, committed state) are given. Adequate but leaves the agent to infer the trigger condition.

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