Skip to main content
Glama

Complete Goal

complete_goal

Marks a claimed goal complete and releases it once its outcome is true and tasks are done, released, or dropped; pending hand tests keep it waiting and can auto-finish or reopen on failure.

Instructions

Mark the claimed Goal done and release it, once its Outcome is true and its Tasks are done, released or dropped (not with a helper, waiting on the Developer or only checked). While the Developer still has hand tests (save_hand_test) to mark, the Goal is released as built and waiting on their tests instead: it finishes by itself when they mark the last one, and a failure reopens it with a new Task. unmarked_hand_tests_ok finishes it now, only when the Developer says to finish anyway. If more work turns up later, claim_goal reopens it.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "complete_goal"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalNoThe claimed Goal's ID, such as 'ship-oauth-login'. Needed only when this Session holds several Goals.
nextNoThe ID of the Goal to claim right after; if that fails the completion still stands and the reply says why.
projectNoAnother project's plan to use instead of this one's: its name or ID on the dashboard, or its folder's full path. Changes there are marked as made from this project. Leave out for this project.
hand_testsNoThings only the Developer can try by hand, saved before completing (so the Goal is released waiting on them), each as save_hand_test would.
unmarked_hand_tests_okNoFinish now even though some hand tests are still not marked by the Developer. Only when the Developer says to finish anyway.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.5.1
    • addedInput schema / properties / hand_tests
      Added value: +{
      +  "description": "Things only the Developer can try by hand, saved before completing (so the Goal is released waiting on them), each as save_hand_test would.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / next
      Added value: +{
      +  "description": "The ID of the Goal to claim right after; if that fails the completion still stands and the reply says why.",
      +  "type": "string"
      +}
  2. Changed5 schema fields changedv1.4.0
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / goal
      Added value: +{
      +  "description": "The claimed Goal's ID, such as 'ship-oauth-login'. Needed only when this Session holds several Goals.",
      +  "type": "string"
      +}
    • addedInput schema / properties / project
      Added value: +{
      +  "description": "Another project's plan to use instead of this one's: its name or ID on the dashboard, or its folder's full path. Changes there are marked as made from this project. Leave out for this project.",
      +  "type": "string"
      +}
    • addedInput schema / properties / unmarked_hand_tests_ok
      Added value: +{
      +  "description": "Finish now even though some hand tests are still not marked by the Developer. Only when the Developer says to finish anyway.",
      +  "type": "boolean"
      +}
  3. First observedv0.2.1

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does well: it explains that the Goal is released as built and waiting on the Developer's tests, that it auto-completes on the last marked test, and that a failed test reopens it with a new Task. It stops short of stating permissions, whether completion is reversible, or what a failure reply contains, which keeps it from a 5.

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 main action and its preconditions are front-loaded, and every clause carries real information rather than filler. The cost is density: one long run-on paragraph with nested parentheticals that an agent must parse carefully, where short sentences or a bulleted condition list would read faster.

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?

For a 5-parameter mutation with no annotations and no output schema, the description covers the state machine, the hand-test branch, the override, and the reopen path, which is what an agent needs to call it correctly. It leaves the response shape and error behavior unexplained despite there being no output schema to fall back on.

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 baseline is 3; the description nonetheless adds meaning by tying hand_tests and unmarked_hand_tests_ok together into a workflow and by cautioning that the override applies only on the Developer's explicit say-so. It says nothing about next or project, which are left entirely to the 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?

"Mark the claimed Goal done and release it" is a specific verb plus resource, immediately qualified by the preconditions (Outcome true, Tasks done/released/dropped). It also distinguishes the paths that are NOT acceptable (not with a helper, waiting on the Developer, or only checked) and names siblings claim_goal and save_hand_test, so the agent can place it against the surrounding toolset.

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 when-to-use conditions, explicit when-not conditions (helper/blocked/only checked states), the alternative branch when hand tests remain outstanding, the narrowly-scoped override unmarked_hand_tests_ok with its own gate ("only when the Developer says to finish anyway"), and the follow-up path via claim_goal if work reappears. Little is left to inference.

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