Skip to main content
Glama

Finish work

finish_work
Destructive

Record completed repository implementation in one boundary call. Replaces the Work description with the factual implementedSummary and marks it done. If this closes the batch, batchSummary closes it in the same call; otherwise the response asks only for that missing summary. Calling it again on a done Work with batchSummary closes a Batch left open. A Work left planned or in progress inside a ready Batch is finished here too. Use it once implementation is complete. Inside a workflow run, rules are checked by TypeSafe, a separate provider, which receives the record, the text of each Rule, and the project context a Rule refers to.

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>",
      "implementedSummary": "<implementedSummary>"
    },
    "name": "finish_work"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId of the Work.
metricsNoOptional client measurements, stored on the workflow step this call completes.
batchSummaryNoWhat the Batch changed; needed when this closes the Batch.
implementedSummaryYesWhat was actually implemented; replaces the Work description.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations declare destructiveHint=true, and the description concretely says what is destroyed — the existing Work description is overwritten by implementedSummary. It also discloses the multi-step state machine (batch closure, re-call behavior, planned/in-progress Works in a ready Batch being finished) and that rule text and project context are sent to a separate provider, TypeSafe, which the agent cannot infer from any structured field.

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 core action and its destructive effect are front-loaded in the first two sentences, and each subsequent sentence covers a distinct case (batch closure, re-call, in-progress Works, TypeSafe validation). The TypeSafe sentence is dense but carries information found nowhere else.

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

Completeness4/5

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

No output schema exists, so the description appropriately explains the response behavior (asking for the missing summary) and the cross-provider rule check. Minor gaps remain around workflow jargon — 'ready Batch' and 'batchSummary closes it' assume the Batch lifecycle model — but nothing critical for correct invocation is missing.

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 coverage is 100%, so the schema already documents all four parameters. The description still adds real semantics: implementedSummary replaces the description (a mutation, not an append), and batchSummary is conditionally required only when this call closes the Batch, with the response otherwise prompting for it.

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 — records a completed implementation and marks the Work done — and names the exact side effect (replacing the Work description with implementedSummary). This is clearly distinguishable from update_work and begin_work, which don't carry the terminal 'done' semantics.

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?

'Use it once implementation is complete' gives an explicit trigger condition, and the description covers the re-invocation case (calling again on a done Work with batchSummary closes a lingering Batch). It never names the neighboring alternatives (begin_work, update_work, cancel_workflow) to say when this tool should not be used instead.

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