Skip to main content
Glama

withdraw_memory_edit

Destructive

Cancel your own pending memory edit proposal before human review, deleting only the proposal so the target memory stays unchanged. Only the proposing agent can withdraw it while pending.

Instructions

Withdraw a pending edit proposal that you proposed, before a human reviews it. This deletes only the proposal row; the target memory was never changed and keeps injecting. Allowed only for the recorded proposing agent (agent_id must match) and only while the proposal is pending — approved memories and ordinary review drafts are refused. Use review_memory action='reject' to reject another agent's proposal (admin). Requires agent auth when the agent has a registered key.

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": {
      "memory_id": "<memory_id>"
    },
    "name": "withdraw_memory_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyNoAPI key for agent authentication (required if agent has a registered key)
agent_idNoID of the proposing agent. Must match the proposal's recorded source agent — a reviewer rejecting someone else's proposal uses review_memory.unknown
memory_idYesID of the pending proposal memory to withdraw (the `proposal_id` returned by `propose_memory_edit`), not the target memory id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.4

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare destructiveHint=true but say nothing about blast radius; the description fills that gap by stating only the proposal row is deleted and the target memory 'was never changed and keeps injecting'. It also discloses authorization requirements (recorded proposing agent, agent auth when a key is registered) and the pending-only state constraint, which is consistent with idempotentHint=false.

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?

Purpose is front-loaded, followed by the effect of the call, then the eligibility constraints, then the alternative. Four dense sentences with no filler or restatement of the name.

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?

For a destructive, no-output-schema, three-parameter tool, the description covers purpose, side effects, authorization, state preconditions, and the sibling alternative. Nothing an agent needs in order to call it safely 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%, and the schema already explains that memory_id is the proposal_id and that agent_id must match the recorded source agent. The prose reinforces the ownership semantics but adds no syntax or format detail beyond structured fields, 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 precise verb and resource ('Withdraw a pending edit proposal') plus the scope restriction ('that you proposed, before a human reviews it'). It also explicitly differentiates from the sibling path by naming review_memory action='reject' for other agents' proposals, so an agent can select without opening other schemas.

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?

Gives explicit positive conditions (your own proposal, still pending) and explicit exclusions (approved memories, ordinary review drafts, proposals from other agents). The alternative for the excluded case is named directly, so the routing decision is unambiguous.

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