Skip to main content
Glama

amend_plan

Destructive

Change a submitted plan while holding its live thread claim: add, cancel, or rewire child tasks atomically; cancellations require a reason, and claimed or finished children are refused.

Instructions

Change a plan you already submitted, holding the plan thread's live claim (pass its lease_id). cancel names children to cancel; add gives new children (the shape submit_plan takes, depends_on may name any child of the plan); rewire sets a child's depends_on afresh. Cancel and add the same key to replace a child: its dependents wait for the new one. A cancelled child's dependents stop waiting for it. Only children that are open and unclaimed can be cancelled or rewired: a claimed or finished one is refused, as is a fourth amendment of the same plan (error code -32010). reason is kept on each cancelled child. Everything happens in one transaction, or nothing does. Added children are held for review when the plan is held or one of them needs a threat model.

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": {
      "thread_id": "<thread_id>",
      "lease_id": "<lease_id>"
    },
    "name": "amend_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
addNo
cancelNokeys of unclaimed children to cancel
reasonNowhy the plan changed; kept on each cancelled child
rewireNo
lease_idYesthe fencing token from your claim on the plan thread
thread_idYesthe plan thread you hold the claim on

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the destructiveHint/idempotentHint annotations: it discloses transactional atomicity ('one transaction, or nothing does'), a concrete error code (-32010) for the fourth amendment, the replaced-child dependency semantics, the 'reason kept on each cancelled child' behavior, and the held-for-review rule for added children. That is exactly the mutation-risk context an agent needs before calling.

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 precondition, then operation-by-operation detail. It is dense and a couple of clauses run long, but no sentence is filler—each adds a rule or semantic an agent could not get elsewhere.

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 six-parameter, no-output-schema destructive mutation, the definition covers the missing pieces: atomicity, refusal rules, error code, replacement semantics, and review-hold behavior. Nothing material is left for the agent to guess before invoking.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 67% schema coverage, the description compensates well: it explains cancel takes keys of children to cancel, add creates new children whose depends_on may reference any child, and rewire resets a child's depends_on afresh, plus reason is stored on cancelled children. It also adds cross-parameter semantics absent from the schema (cancel+add the same key replaces a child and re-points dependents).

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 ('Change a plan you already submitted') and pins the precondition (holding the plan thread's live claim, passing lease_id). It also implicitly routes against submit_plan by noting that 'add' takes 'the shape submit_plan takes', so an agent can tell amend from create 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 Guidelines4/5

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

Clearly establishes when to use it (modifying an already-submitted plan under an active claim) and enumerates the three operations: cancel, add, rewire. It also states refusal conditions (claimed/finished children, fourth amendment) but never explicitly says to use submit_plan for a fresh plan, leaving that inference to the reader.

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

Deploy Server

Other Tools