Skip to main content
Glama

mark_done

Destructive

Close a specific thread when its finishable outcome is complete and save an optional note, recording finished work and closing any linked issue.

Instructions

Close a specific thread when its finishable outcome is complete.

    Prefer completion.ready == true (or clear Goal completion) before calling.
    Use pause_thread for unfinished work that will resume later, or
    dismiss_thread when intentionally abandoning it. note is an optional
    completion note. If this call is denied/rejected because work remains,
    do not retry unchanged — checkpoint with upsert_progress and pause_thread.
    

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

Input Schema

NameRequiredDescriptionDefault
noteNoOptional short completion note saved when the status changes.
thread_idYesExact thread ID whose outcome is complete; may close its linked forge issue. Missing IDs return not_found.

Output Schema

NameRequiredDescriptionDefault
idYes
goalNo
errorNoPresent only when the operation fails.
focusNo
energyNo
originNo
statusNo
summaryNo
chat_refNo
paused_atNo
completionNo
created_atNo
next_stepsNo
return_cueNo
updated_atNo
merged_intoNo
resume_stepNo
source_toolNo
work_sourceNo
project_slugNo
external_hostNo
external_repoNo
blocked_reasonNo
external_ownerNo
transcript_refNo
workspace_pathNo
external_labelsNo
source_snapshotNo
last_reminded_atNo
source_conflictsNo
source_issue_urlNo
external_providerNo
source_sync_stateNo
source_imported_atNo
external_updated_atNo
source_content_hashNo
triage_snooze_untilNo
external_fingerprintNo
external_issue_stateNo
source_title_derivedNo
external_issue_numberNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.22.0
    • addedInput schema / properties / note / description
      Added value: +"Optional short completion note saved when the status changes."
    • addedInput schema / properties / thread_id / description
      Added value: +"Exact thread ID whose outcome is complete; may close its linked forge issue. Missing IDs return not_found."
    • addedOutput schema / $defs
      Added value: +{
      +  "CompletionResult": {
      +    "additionalProperties": true,
      +    "description": "Readiness based on stored thread state, without checking a forge or PR.",
      +    "properties": {
      +      "ready": {
      +        "description": "True when stored state has no completion blockers.",
      +        "title": "Ready",
      +        "type": "boolean"
      +      },
      +      "reasons": {
      +        "description": "Stored blockers; empty when ready is true.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "title": "Reasons",
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "ready",
      +      "reasons"
      +    ],
      +    "title": "CompletionResult",
      +    "type": "object"
      +  },
      +  "EnergyLevel": {
      +    "enum": [
      +      "low",
      +      "medium",
      +      "high",
      +      "unknown"
      +    ],
      +    "title": "EnergyLevel",
      +    "type": "string"
      +  },
      +  "ExternalIssueState": {
      +    "enum": [
      +      "open",
      +      "closed"
      +    ],
      +    "title": "ExternalIssueState",
      +    "type": "string"
      +  },
      +  "ReturnCueResult": {
      +    "additionalProperties": true,
      +    "description": "Advisory resume coaching; never rejects a save, pause or completion.",
      +    "properties": {
      +      "advisory": {
      +        "const": true,
      +        "title": "Advisory",
      +        "type": "boolean"
      +      },
      +      "hint": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "title": "Hint"
      +      },
      +      "quality": {
      +        "enum": [
      +          "missing",
      +          "vague",
      +          "concrete"
      +        ],
      +        "title": "Quality",
      +        "type": "string"
      +      },
      +      "signals": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "title": "Signals",
      +        "type": "array"
      +      },
      +      "suggestion": {
      +        "anyOf": [
      +          {
      +            "$ref": "#/$defs/ReturnCueSuggestion"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "version": {
      +        "title": "Version",
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "quality",
      +      "signals",
      +      "hint",
      +      "suggestion",
      +      "advisory",
      +      "version"
      +    ],
      +    "title": "ReturnCueResult",
      +    "type": "object"
      +  },
      +  "ReturnCueSuggestion": {
      +    "additionalProperties": true,
      +    "properties": {
      +      "source": {
      +        "enum": [
      +          "focus",
      +          "next_steps"
      +        ],
      +        "title": "Source",
      +        "type": "string"
      +      },
      +      "text": {
      +        "title": "Text",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "source",
      +      "text"
      +    ],
      +    "title": "ReturnCueSuggestion",
      +    "type": "object"
      +  },
      +  "ThreadStatus": {
      +    "enum": [
      +      "open",
      +      "blocked",
      +      "done",
      +      "dismissed"
      +    ],
      +    "title": "ThreadStatus",
      +    "type": "string"
      +  },
      +  "WorkSource": {
      +    "enum": [
      +      "local",
      +      "github",
      +      "gitea"
      +    ],
      +    "title": "WorkSource",
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / description
      Added value: +"Thread on success; only error and the requested id on rejection/not-found."
    • addedOutput schema / properties
      Added value: +{
      +  "blocked_reason": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "Blocked Reason"
      +  },
      +  "chat_ref": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "Chat Ref"
      +  },
      +  "completion": {
      +    "$ref": "#/$defs/CompletionResult"
      +  },
      +  "created_at": {
      +    "format": "date-time",
      +    "title": "Created At",
      +    "type": "string"
      +  },
      +  "energy": {
      +    "$ref": "#/$defs/EnergyLevel"
      +  },
      +  "error": {
      +    "description": "Present only when the operation fails.",
      +    "title": "Error",
      +    "type": "string"
      +  },
      +  "external_fingerprint": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "External Fingerprint"
      +  },
      +  "external_host": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "External Host"
      +  },
      +  "external_issue_number": {
      +    "anyOf": [
      +      {
      +        "type": "integer"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "External Issue Number"
      +  },
      +  "external_issue_state": {
      +    "anyOf": [
      +      {
      +        "$ref": "#/$defs/ExternalIssueState"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "external_labels": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "title": "External Labels",
      +    "type": "array"
      +  },
      +  "external_owner": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "External Owner"
      +  },
      +  "external_provider": {
      +    "anyOf": [
      +      {
      +        "$ref": "#/$defs/WorkSource"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "external_repo": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "External Repo"
      +  },
      +  "external_updated_at": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "External Updated At"
      +  },
      +  "focus": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "Focus"
      +  },
      +  "goal": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "Goal"
      +  },
      +  "id": {
      +    "title": "Id",
      +    "type": "string"
      +  },
      +  "last_reminded_at": {
      +    "anyOf": [
      +      {
      +        "format": "date-time",
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "Last Reminded At"
      +  },
      +  "merged_into": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "Merged Into"
      +  },
      +  "next_steps": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "title": "Next Steps",
      +    "type": "array"
      +  },
      +  "origin": {
      +    "title": "Origin",
      +    "type": "string"
      +  },
      +  "paused_at": {
      +    "anyOf": [
      +      {
      +        "format": "date-time",
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "Paused At"
      +  },
      +  "project_slug": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "Project Slug"
      +  },
      +  "resume_step": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "Resume Step"
      +  },
      +  "return_cue": {
      +    "anyOf": [
      +      {
      +        "$ref": "#/$defs/ReturnCueResult"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "source_conflicts": {
      +    "additionalProperties": true,
      +    "title": "Source Conflicts",
      +    "type": "object"
      +  },
      +  "source_content_hash": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "Source Content Hash"
      +  },
      +  "source_imported_at": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "Source Imported At"
      +  },
      +  "source_issue_url": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "Source Issue Url"
      +  },
      +  "source_snapshot": {
      +    "additionalProperties": true,
      +    "title": "Source Snapshot",
      +    "type": "object"
      +  },
      +  "source_sync_state": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "Source Sync State"
      +  },
      +  "source_title_derived": {
      +    "title": "Source Title Derived",
      +    "type": "boolean"
      +  },
      +  "source_tool": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "Source Tool"
      +  },
      +  "status": {
      +    "$ref": "#/$defs/ThreadStatus"
      +  },
      +  "summary": {
      +    "title": "Summary",
      +    "type": "string"
      +  },
      +  "transcript_ref": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "Transcript Ref"
      +  },
      +  "triage_snooze_until": {
      +    "anyOf": [
      +      {
      +        "format": "date-time",
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "Triage Snooze Until"
      +  },
      +  "updated_at": {
      +    "format": "date-time",
      +    "title": "Updated At",
      +    "type": "string"
      +  },
      +  "work_source": {
      +    "anyOf": [
      +      {
      +        "$ref": "#/$defs/WorkSource"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "workspace_path": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "title": "Workspace Path"
      +  }
      +}
    • addedOutput schema / required
      Added value: +[
      +  "id"
      +]
    • changedOutput schema / title
      Previous value: -"mark_doneDictOutput"New value: +"ThreadResult"
  2. First observedv0.12.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (destructiveHint=true, openWorldHint=true, idempotentHint=false), so the bar is lower, and the description still adds real value by disclosing the rejection/denial path and the non-retry rule, which no annotation expresses. It stops short of spelling out the destructive side effect itself (closing a linked forge issue), which lives only in the schema.

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 action and precondition, then alternatives, then failure handling — a logical order with no filler. The multi-line indented formatting and slightly redundant restating of the note parameter keep it from a 5.

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?

With an output schema present, a 100%-covered input schema, and full annotations, the description supplies exactly what structured fields cannot: the precondition for calling, the alternatives, and the recovery path on rejection. Nothing needed to invoke it correctly is missing.

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

Parameters3/5

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

Schema coverage is 100%, so both parameters are already documented, and the description's only parameter note ('note is an optional completion note') largely repeats the schema rather than adding format, length, or overwrite semantics. Baseline 3 applies when the schema does the heavy lifting.

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 states a specific verb and resource ('Close a specific thread') plus the governing condition ('when its finishable outcome is complete'), and explicitly names the sibling alternatives pause_thread and dismiss_thread so an agent can distinguish the three without opening schemas.

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?

It gives an explicit precondition (completion.ready == true or clear Goal completion), routes unfinished work to pause_thread and abandonment to dismiss_thread, and even specifies the fallback when the call is rejected: checkpoint with upsert_progress then pause_thread, with an explicit 'do not retry unchanged'.

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