Skip to main content
Glama

task_mutate

Destructive

Mutate a task or sprint. Input is { action, payload, workspaceId? }. Actions (→ marks required fields; the rest are optional). dueAt is ISO-8601, e.g. 2026-09-20T17:00:00Z:

  • create → projectId, title; optional: description, priority, type, status, owner (null: unowned), worker, reviewer, reviewRule, points, assignee, tags[], acceptanceCriteria[], dueAt. A new projectId is created by this call (see Projects).

  • update → id, updatedAt; optional: title, description, priority, type, worker (your agent name claims it; null releases), owner (member email = the responsible human; null clears), reviewer, reviewRule, points (null clears either), assignee (legacy), tags[] (replaces) or addTags[]/removeTags[], acceptanceCriteria[], dependsOn[] (task ids; replaces, [] clears), dueAt (null clears it).

  • move → id, updatedAt, status (a key from task_search workflow.statuses, or a category).

  • review → id, updatedAt, decision: approve | request_changes (needs note). Reviewer, or an admin where allowed.

  • comment → id, note; optional: notify=true for a meaningful progress update.

  • block → id, updatedAt, reason (sets status=blocked).

  • sprint_create → name and projectId; or scope:"workspace" (+ projectIds[], default all) for a cross-project sprint; optional: goal. A new projectId is created too (see Projects).

  • sprint_assign → id, updatedAt, sprintId (null removes it from its sprint).

  • sprint_activate → sprintId (one active per project, plus one workspace sprint).

  • sprint_complete → sprintId.

  • project_policy_update → projectId, expectedVersion, content, changeSummary (a new policy version; needs projects:write). Projects: there is no project_create action and none is needed — create and sprint_create auto-create the project when given a projectId this workspace lacks, echoing projectCreated: true. A statelode.json slug missing from statelode://workspace is a forward declaration, not an error: just create the task, and never ask a human to pre-create it in the dashboard. (Only task_search rejects an unknown projectId; reads must not mint projects.) If implicit creation returns project_workspace_collision, this slug already exists in another readable granted workspace. No write occurred. Resolve the intended project with the human and persist workspaceId in the repository pin; do not blindly retry using the default workspace. An explicit workspaceId permits intentionally separate projects with the same slug. Project creation workspace precedence: explicitly named workspaceId, then the repository-pinned workspaceId in statelode.json, then the human-selected default from statelode://workspace. One accessible workspace needs no prompt. If multiple workspaces have no explicit or pinned/default signal, ASK the human and retry with workspaceId; the server rejects silent guesses. Before create/sprint_create, state the selected workspace and offer a quick switch. Explicit input always overrides defaults. Ungranted ids are rejected. Attribution comes from the bearer token. Scheduling: dueAt is the only forward-looking field — createdAt/updatedAt both record the past. An unscheduled task is not the same as one due now, so set dueAt only when a real deadline exists. Enums: priority = urgent|high|medium|low. type = bug|feature|improvement (update: null clears it). tags are free text; statelode://workspace lists the workspace's defined tags (name, color): prefer those, and a tag that names one in any case is stored in its spelling. status = a workflow key from task_search workflow.statuses[].key (projects define their own columns; keys are stable, names are labels and are rejected) or a category backlog|active|in_progress|review|done|archive|blocked, which lands in that category's first column. Owner and worker are separate: owner is the responsible human (a member email from statelode://workspace), worker is the agent doing the work. Claiming sets worker and never replaces the owner; an unowned task you claim or create is owned by your human supervisor, unless create sends owner:null. reviewer is a member (never the owner, nor the human whose agent works it) who approves the task before done: approve moves it to the first done column, request_changes back to in progress and tells the owner. reviewRule: auto (default) lets the reviewer rotation pick the next member in turn when the task is claimed or enters review and has no usable reviewer; the response's reviewerRotation names them, or says nobody was eligible (the write still succeeds). pinned = the rotation never changes it; none = no review (owners/admins only). Each project's review mode sets who may move its tasks to done: anyone, only the reviewer, or the reviewer or an owner/admin; a refused move returns review_required naming who can. points = story points 1|2|3|5|8|13|21. Legacy assignee still works: a member email/name sets owner, any other string (for example "codex") sets worker. Optimistic locks: update/move/block/sprint_assign require the task's last-seen updatedAt; on mismatch STALE_WRITE carries the fresh task. comment takes no lock and leaves updatedAt unchanged. project_policy_update requires the last-seen expectedVersion; on mismatch STALE_PROJECT_POLICY carries the fresh policy, and on success it returns the new version without content. Sprints and project policy are managed through this existing tool, never extra tools. Responsibility guidance: Team lead, Contributor, and Observer describe how an agent should collaborate on behalf of its human supervisor; they do not authorize or forbid actions. The credential scopes returned in delegation.capabilities are the permission boundary. Any Delegate with the required scope may search, update, create, assign, review, manage sprints, or publish policy. Planning: represent a plan as a sprint goal plus concrete tasks. Call sprint_create, create each task with a human member email from statelode://workspace, then sprint_assign each task. There is no separate plan tool. Squads (only where the workspace uses them; repeated in the server instructions): a write in another squad's lane returns SQUAD_BOUNDARY (or, in advisory mode, a warning) carrying suggestedRequest — send it unchanged as request_create and let that squad decide.

  • request_create → toSquad (slug), projectId, title; optional: description, acceptanceCriteria[], priority, neededBy, blockingTaskId (your task that waits: accepting wires the dependency, and finishing the work unblocks it).

  • request_respond → id, decision: accept | decline | needs_info (the receiving squad's leads) or answer | cancel (the requester); note is required to decline, ask or answer; on accept, optional owner, priority, dueAt, projectId (where the task lands; default: the squad's home project). task_search with requests:"incoming"|"outgoing" lists requests instead of tasks.

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": {
      "action": "<action>",
      "payload": "<payload>"
    },
    "name": "task_mutate"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
payloadYesAction-specific fields — see the tool description for each action's required/optional payload.
workspaceIdNoGranted workspace id. Explicit input overrides the repo pin/default. Required for project creation when a multi-workspace grant has no human-selected default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "create",
      -  "update",
      -  "move",
      -  "comment",
      -  "block",
      -  "sprint_create",
      -  "sprint_assign",
      -  "sprint_activate",
      -  "sprint_complete",
      -  "project_policy_update",
      -  "request_create",
      -  "request_respond"
      -]New value: +[
      +  "create",
      +  "update",
      +  "move",
      +  "comment",
      +  "block",
      +  "sprint_create",
      +  "sprint_assign",
      +  "sprint_activate",
      +  "sprint_complete",
      +  "project_policy_update",
      +  "request_create",
      +  "request_respond",
      +  "review"
      +]
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and non-idempotent, and the description adds far more: optimistic locking on update/move/block/sprint_assign with STALE_WRITE carrying the fresh task, comment taking no lock, project_workspace_collision meaning 'No write occurred', and review_required rejection semantics. It also discloses attribution from the bearer token and the reviewer-rotation side effects, so the agent can predict outcomes rather than discover them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The action directory is front-loaded and consistently formatted, which makes the bulk of it scannable, and most content is load-bearing given thirteen actions. However, several paragraphs drift into policy essay rather than invocation guidance — the Responsibility guidance block, the Planning block, and the multi-paragraph workspace-precedence discussion could be tightened without losing calling information. The volume also buries the operationally critical rules (locking, collisions) in the middle of dense prose.

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?

For a high-complexity, non-idempotent, destructive multi-action tool with a free-form payload and no output schema, the description covers required fields, lock tokens, enum domains, null-clearing behavior, error codes with recovery paths, and response echoes like projectCreated and reviewerRotation. Nothing an agent needs to invoke an action correctly appears to be missing.

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

Parameters5/5

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

The schema's payload is an untyped object with additionalProperties, so the description carries nearly the entire burden and does so per action, spelling out null semantics ('owner (member email...; null clears)', 'tags[] (replaces) or addTags[]/removeTags[]') and format rules ('dueAt is ISO-8601, e.g. 2026-09-20T17:00:00Z'). Enum values and their clearing behavior are given for priority, type, status, and points, well beyond the 67% schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence states the resource (task or sprint) and the operation class (mutate), and the action directory immediately makes the scope concrete, including project policy and squad requests. The verb 'mutate' is a broad catch-all that bundles thirteen distinct operations, and there is no explicit statement distinguishing this tool from the read siblings task_search/task_get — that separation is only inferable from the verb.

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?

Every action carries its required and optional inputs plus conditions: 'review → ... Reviewer, or an admin where allowed', 'sprint_activate → sprintId (one active per project, plus one workspace sprint)', and 'Only task_search rejects an unknown projectId; reads must not mint projects.' It also gives explicit decision procedures (workspace precedence with 'ASK the human and retry with workspaceId') and a when-not path (SQUAD_BOUNDARY → hand off to request_create rather than retry).

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.