Skip to main content
Glama

Withdraw a change

withdraw_change
DestructiveIdempotent

Takes back a change you made that's still open (requested, drafting, or in review), so its editors no longer consider it: it's done, as withdrawn, and stays in list_changes. Use it when the person no longer wants the change, or is replacing it with a different one; to fix a change instead, propose_change with its change revises it in place. Only whoever made a change withdraws it; one that's applied or declined is an error saying so, and one already withdrawn stays as it is. Returns the change.

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": {
      "id": "<id>"
    },
    "name": "withdraw_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe change's ID, as propose_change or list_changes gives it.
treeNoThe tree's slug, as list_trees gives it (not its name). Required unless the Forest has one tree.

Output Schema

NameRequiredDescriptionDefault
byYesWho asked for it, by name.
idYesThe change's ID: pass it to get_change.
urlYesIts page in OKForest, where editors review and apply it.
mineYesWhether the person asking made it: only they revise it (propose_change with `change`) or withdraw it (withdraw_change).
aboutNoThe page it was asked about, when it was asked from one.
askedYesWhen it was asked for (ISO 8601).
pathsYesThe files it creates, edits, moves, or deletes.
stateYesWhere it is: `requested` (asked for, waiting for an editor), `drafting` (accepted, an editor writing its edits), `in-review` (edits written, waiting for an editor to apply them), or done: `applied` (committed), `declined`, or `withdrawn` by whoever asked.
titleYesWhat it does, in a few words: its commit's first line.
updatedYesWhen it last changed (ISO 8601).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructive=true and idempotent=true; the description goes beyond them by disclosing the state machine (only open changes withdraw), the authorization constraint (only the author), the exact error behavior for applied/declined, the no-op behavior for already-withdrawn changes, and that the record remains visible in list_changes.

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?

Front-loaded with the core action and gated states, and every sentence carries information. The semicolon-and-colon chaining makes it dense and slightly run-on, but nothing is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A mutation with non-obvious state and permission rules is fully covered, and an output schema exists so return values need no elaboration beyond the closing 'Returns the change.' Nothing an agent needs to invoke it correctly is missing.

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 100%, so both id and tree are fully documented in the schema. The description adds no additional meaning about the tree parameter's conditional requirement or the id format, 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?

Names a specific verb+resource (withdraw/take back a change) and confines it to open states (requested, drafting, in review), which separates it cleanly from propose_change, which revises in place. An agent can distinguish this from every sibling without opening a schema.

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

Usage Guidelines5/5

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

Explicit when-to-use ('person no longer wants the change, or is replacing it') and an explicit alternative for the adjacent need ('to fix a change instead, propose_change with its `change`'). It also states the negative case: applied or declined changes error out.

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