Skip to main content
Glama

Close a fully verified plan

todo_close_plan
Idempotent

Closes a plan only after final audit approval and complete verification, preventing force-completion of unfinished work.

Instructions

Close a fully verified plan once after the final approved audit. There is no force-complete path.

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": {
      "workspaceRoot": "<workspaceRoot>",
      "planId": "<planId>"
    },
    "name": "todo_close_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
planIdYes
workspaceRootYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly=false, idempotent=true, destructive=false, closed-world). The description adds genuine context beyond them — single-use semantics and the absence of a force-complete escape hatch — but says nothing about what closing actually does to plan state, whether it is reversible, or how a rejected close manifests.

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?

Two short sentences, precondition front-loaded, zero filler. Nothing is repeated from the title and every clause carries information.

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?

An output schema exists, so return values need no explanation, and the state gate is stated. However, for a terminal, non-destructive-but-irreversible-sounding lifecycle operation with 0% parameter coverage, the description leaves key calling details (precondition failure behavior, parameter meaning) unaddressed.

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

Parameters2/5

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

Schema description coverage is 0% for both parameters, so the description was the only place to explain them and it mentions neither. 'workspaceRoot' (a minLength-1 string) and 'planId' (a UUID) are left entirely uninterpreted, including why a workspace root is needed for a plan identified by UUID.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Close a ... plan') with an explicit precondition ('fully verified', 'after the final approved audit'), which separates it from audit/revise siblings. It does not name an alternative tool, but the state gate is unambiguous.

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?

Clear when-to-use: only after the final approved audit, and only once. It also supplies an exclusionary constraint ('no force-complete path'), telling the agent there is no override route. It stops short of naming a fallback tool when the gate is not met.

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