Skip to main content
Glama

complete_story

Destructive

Finalize a story by marking it done, appending a summary, and removing it from the backlog. Validates acceptance criteria; requires explanations for any unfinished items.

Instructions

Mark a story done and append a mandatory completion summary note in one atomic call. Validates acceptance criteria before completing: if the AC section has not been set (contains only the placeholder), completion is blocked — call set_acceptance_criteria first. IMPORTANT: if a criterion is actually done, mark it [x] in the story file via set_acceptance_criteria BEFORE calling this tool — do not leave it unchecked. If criteria remain unchecked (genuinely not done), incomplete_items is required with one explanation per unchecked item explaining WHY it was not completed (e.g. deferred, out of scope). incomplete_items is for unfinished work only — never use it to confirm completed work. On success, removes the story from backlog.md and returns {story_id, completed_at, backlog_removed}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
incomplete_itemsNoRequired when the story has unchecked (genuinely unfinished) acceptance criteria. Each string must explain WHY that criterion was not met (e.g. 'Deferred to STORY-010 — rarity system not yet designed'). One entry per unchecked item, in the order they appear. DO NOT use this field to confirm items that are done — if a criterion is done, tick it [x] via set_acceptance_criteria first, then retry. Never prefix entries with 'Done:' — if it is done, it should not appear here at all.
story_idYesStory ID to complete, e.g. STORY-047
summaryYesCompletion summary describing what was done. Appended as a timestamped note to the story file.
Behavior4/5

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

While annotations already mark destructiveHint=true and readOnlyHint=false, the description adds critical context: removal from backlog.md, return fields, blocking behavior when AC not set, and conditional requirement for incomplete_items. Does not contradict annotations. Deduction for not explicitly stating error behavior beyond blocking.

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?

The description is concise (about 6 sentences) and front-loads the core action. Every sentence adds value, but it packs many conditional rules into a single paragraph. Slight improvement possible with structured list for key constraints.

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?

Given the tool's complexity (validation, conditional parameter, destructive side effects, no output schema), the description covers: purpose, preconditions (AC set, proper tick marking), conditional field usage, success effects (backlog removal, return values). No output schema, but return values are described. Completeness ensures an agent can use it correctly.

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?

Schema has 100% coverage with descriptions, but the description adds significant meaning: explains when incomplete_items is required vs prohibited, and that summary is timestamped. Goes beyond baseline of 3 by clarifying conditional logic and constraints not fully captured in schema.

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?

The description clearly states the tool's purpose: 'Mark a story done and append a mandatory completion summary note in one atomic call.' It specifies the verb, resource, and action. It also distinguishes itself from siblings by mentioning validation of acceptance criteria and the need to call set_acceptance_criteria first.

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?

Provides explicit guidance: explains when to use set_acceptance_criteria first, when incomplete_items is required, and what constitutes proper usage. Contrasts with sibling tools like set_acceptance_criteria. Clearly states when-not-to-use for incomplete_items field.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/corbym/backlog-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server