Skip to main content
Glama

mark_task_complete

Idempotent

Mark a task as complete in a Nodeon project. Updates the project's live state, may unblock dependent tasks, and records a handoff note for the tasks that depend on it. Requires summary (what was actually built) and files_touched (the changed file paths; pass [] for none); decisions, dead_ends, git_base and git_head are optional. Refused with the pending dependencies listed when any dependency is still open, unless force: true is passed (the override is logged). Returns the node's previous and new status and the stored handoff.

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": {
      "project_id": "<project_id>",
      "node_id": "<node_id>",
      "summary": "<summary>",
      "files_touched": "<files_touched>"
    },
    "name": "mark_task_complete"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoRecord completion even when dependencies are still open. Use only on the user's explicit say-so; the override and the open dependencies are logged in the writeback record.
notesNoOptional legacy notes about what was built. Stored in the agent writeback log; prefer `summary` for the handoff note.
node_idYesThe node ID to mark complete. Get this from get_next_task.
summaryYesREQUIRED. What you actually built — not a restatement of the plan. 1-3 sentences; the next task's agent reads this.
git_baseNoOptional. The git ref/commit this work started from (e.g. the branch point), for a precise diff range.
git_headNoOptional. The git ref/commit this work ended at, so the handoff carries an exact range.
dead_endsNoOptional. Approaches you tried that did not work, so the next agent does not repeat them. One string per dead end.
decisionsNoOptional. Non-obvious choices you made and the reason, e.g. { decision: 'used Postgres advisory locks', why: 'avoid a Redis dependency' }. Each: { decision, why }.
project_idYesThe project ID.
files_touchedYesREQUIRED. Paths of the files you created or changed. Pass [] when the work touched no files (e.g. a decision or config change made elsewhere).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare it is not read-only, is idempotent, and is non-destructive; the description goes beyond them by disclosing the unblocking side effect on dependent tasks, the dependency-refusal behavior, that the force override is logged, and the shape of the return value (previous and new status plus stored handoff). The only omission is any statement about permissions or what happens to the handoff on a re-mark (idempotent re-write vs. new record).

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-loads the verb and the effects, then moves to requirements and failure modes, so a reader can stop after sentence one. The middle clause enumerating which parameters are required versus optional duplicates schema information that is already machine-readable, which is the one piece of waste.

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 10-parameter mutation tool with no output schema, the description covers the mutation, the side effects, the failure path, the override, and the return payload, which is close to everything an agent needs. The remaining gap is that nothing explains when re-marking an already-complete task is a no-op versus an error, despite idempotentHint being set.

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 description coverage is 100%, so every one of the 10 parameters is already documented in structured data, which sets the baseline at 3. The description restates the required/optional split and adds a light gloss on `summary` and `files_touched` ("pass [] for none"), but nothing about `force` or the git refs that is not already in 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?

States a specific verb and resource ("Mark a task as complete in a Nodeon project") and then enumerates the concrete effects: live state update, unblocking dependents, and a recorded handoff note. That is enough for an agent to distinguish it from reopen_task or delete_node without opening any schema.

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?

Gives clear operative context: it is refused with the pending dependencies listed when a dependency is still open, and `force: true` overrides that on the user's explicit say-so. It does not explicitly point at a sibling (e.g. reopen_task for undoing this, or unblock_task for the opposite direction), so it stops just short of full alternative routing.

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.