Skip to main content
Glama

Update goal

update_goal
Destructive

Change fields on an existing goal. Partial update: only the fields you pass are changed, everything else stays as it is. Requires the goal ID (find it with list_goals). Writes immediately. Use status COMPLETED to mark the goal completed or CANCELLED to cancel it; use align_entities to change what the goal contributes to. Fails with "Goal not found" when the ID is not in this workspace. Returns the updated goal.

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": {
      "goalId": "<goalId>"
    },
    "name": "update_goal"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoNew title
goalIdYesThe goal ID (required)
statusNoNew lifecycle: DRAFT, ACTIVE or CANCELLED. COMPLETED marks the item completed. PAUSED is no longer used and is treated as ACTIVE
teamIdNoNew team ID (null to clear)
dueDateNoNew due date in ISO 8601
ownerIdNoNew owner user ID
startDateNoNew start date in ISO 8601
descriptionNoNew description

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the safety profile is covered; the description adds real context beyond that (writes immediately, partial-update semantics, error case, returns the updated goal). It does not elaborate what makes this destructive — e.g. that CANCELLED is effectively irreversible or that passing null clears teamId — which is the one remaining gap.

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

Conciseness5/5

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

Front-loaded with the action and the partial-update rule, then short sentences for the ID source, the write behavior, the status routing, the error, and the return value. No filler and no repetition.

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?

With no output schema, the description usefully states "Returns the updated goal", and with 8 params at full schema coverage it need not re-document fields. What remains thin is the destructive/irreversible consequence of completion, cancellation, and field clearing on an existing goal.

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 the baseline is 3; every parameter already carries its own description. The description largely restates the status semantics already present in the schema enum description (COMPLETED/CANCELLED) and omits the null-to-clear behavior of teamId, so it adds little beyond structured data.

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 ("Change fields on an existing goal") and immediately pins down the partial-update semantics: only passed fields change, everything else stays. An agent can distinguish this from create_goal/get_goal without opening the schema.

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?

Explicit routing: find the ID with list_goals, use align_entities when the change is about what the goal contributes to, and use status COMPLETED/CANCELLED for lifecycle termination. It also names the failure condition ("Goal not found" when the ID is outside this workspace), which tells the agent what a wrong-ID outcome looks like.

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