Skip to main content
Glama

update_goal

Change a goal's name, objective, instructions, autonomy, tool rules, memory, watches, model, or status after the human confirms the edits.

Instructions

Changes a goal's name, objective, instructions, autonomy, tool rules, memory, watches, the gap between watch runs, model or status, once the human has confirmed. For the quarterdeck-goals plugin only: agents and the model must not call this.

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

Input Schema

NameRequiredDescriptionDefault
nameNo
modelNoThe model its runs use: haiku, sonnet, opus or a full model id; null: the model of the session that starts each run
statusNo
goal_idYes
watchesNoWatch name → what it checks; null removes the watch. A run starts when a watch sees something new
autonomyNoCategory → off | propose | auto; null removes the category
tool_mapNoTool name pattern → category; null removes the rule
objectiveNo
run_scopeNoA goal run passes its run id here; anyone else leaves it out.
add_memoryNo
instructionsNoStanding instructions; "" clears them
forget_memoryNoMemory ids to forget
merge_categoriesNoOld action category → the category to merge it into: past items, autonomy and tool rules take the new name, so earlier approvals count toward the Switch to auto suggestion
auto_after_outsideNoCategory → true to keep it auto even after a run reads outside content (only while its mode is auto), false to go back to propose. Warn the person first when its tool rules push code, create or merge pull requests, or are broad
instructions_editsNoReplacements in the current instructions, applied in order: each old must appear exactly once. Not with instructions
min_watch_gap_minutesNoMinutes after a watch-started run before watch news starts another (0: none): news in between waits and shares the next run; an urgent watch's still starts one

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.32.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / add_memory / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / auto_after_outside
      Added value: +{
      +  "additionalProperties": {
      +    "type": "boolean"
      +  },
      +  "description": "Category → true to keep it auto even after a run reads outside content (only while its mode is auto), false to go back to propose. Warn the person first when its tool rules push code, create or merge pull requests, or are broad",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / autonomy / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / instructions_edits / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / merge_categories / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / tool_map / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • changedInput schema / properties / watches / additionalProperties / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "command": {
      -        "description": "A shell command, run in the goal's directory, that prints one line per current item (an issue number, a feed entry's id). Lines not seen before start a run; the first check only records what is there. Must exit 0",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "every_minutes": {
      -        "description": "How often to check (default 5). Each run it starts is a full model run: pick the longest interval the source allows (goal-watches skill, Fewer quiet runs)",
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "finally": {
      -        "additionalProperties": false,
      -        "description": "With steps: a call that always runs after them, even after a failure (e.g. close the tab)",
      -        "properties": {
      -          "input": {
      -            "additionalProperties": {},
      -            "type": "object"
      -          },
      -          "tool": {
      -            "minLength": 1,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "tool"
      -        ],
      -        "type": "object"
      -      },
      -      "fires": {
      -        "description": "'new' (default): a line never seen before starts a run. 'change': for a state (a working tree, a health URL): a run starts when the output differs from the last check, with the lines that weren't in it ((none) when it became empty)",
      -        "enum": [
      -          "new",
      -          "change"
      -        ],
      -        "type": "string"
      -      },
      -      "ignore": {
      -        "description": "A regular expression: lines it matches are left out (for either kind): never a run, never marked seen, not read by status rules. null removes it",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "input": {
      -        "additionalProperties": {},
      -        "description": "The tool's arguments",
      -        "type": "object"
      -      },
      -      "match": {
      -        "description": "A regular expression over the tool's answer; each match (its first group) is one line. Left out: every \"id\" in a JSON answer. For a command: only the output lines it matches count (whole lines, before the line cap)",
      -        "type": "string"
      -      },
      -      "status": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "default": {
      -                "additionalProperties": false,
      -                "description": "When no rule matches",
      -                "properties": {
      -                  "run": {
      -                    "type": "boolean"
      -                  },
      -                  "status": {
      -                    "maxLength": 40,
      -                    "minLength": 1,
      -                    "type": "string"
      -                  },
      -                  "tone": {
      -                    "enum": [
      -                      "ok",
      -                      "attention",
      -                      "problem"
      -                    ],
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "status"
      -                ],
      -                "type": "object"
      -              },
      -              "rules": {
      -                "description": "The first rule matching any line wins",
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "match": {
      -                      "description": "A regular expression tested against each line",
      -                      "minLength": 1,
      -                      "type": "string"
      -                    },
      -                    "run": {
      -                      "description": "true: the lines also start a run",
      -                      "type": "boolean"
      -                    },
      -                    "status": {
      -                      "description": "The status text this rule sets (never taken from the output)",
      -                      "maxLength": 40,
      -                      "minLength": 1,
      -                      "type": "string"
      -                    },
      -                    "tone": {
      -                      "enum": [
      -                        "ok",
      -                        "attention",
      -                        "problem"
      -                      ],
      -                      "type": "string"
      -                    }
      -                  },
      -                  "required": [
      -                    "match",
      -                    "status"
      -                  ],
      -                  "type": "object"
      -                },
      -                "maxItems": 10,
      -                "type": "array"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Sets the goal's status (and tone) from each check's lines with no agent run: for a goal that only reports a state. A run starts only when the matching rule says run: true. Best with fires: 'change'"
      -      },
      -      "steps": {
      -        "description": "Instead of tool + input: up to 4 read-only calls in order (e.g. a browser navigate, then get_page_text with {{tabId}}); the last answer is read with match",
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "expect": {
      -              "description": "A regular expression this step answer text must match; an answer that does not is a failed check, so a problem the tool answers as plain text is not read as \"nothing new\"",
      -              "type": "string"
      -            },
      -            "input": {
      -              "additionalProperties": {},
      -              "description": "May use {{name}} for a value an earlier step picked",
      -              "type": "object"
      -            },
      -            "pick": {
      -              "additionalProperties": {
      -                "anyOf": [
      -                  {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "regex": {
      -                        "type": "string"
      -                      }
      -                    },
      -                    "required": [
      -                      "regex"
      -                    ],
      -                    "type": "object"
      -                  },
      -                  {
      -                    "additionalProperties": false,
      -                    "properties": {
      -                      "json": {
      -                        "type": "string"
      -                      }
      -                    },
      -                    "required": [
      -                      "json"
      -                    ],
      -                    "type": "object"
      -                  }
      -                ]
      -              },
      -              "description": "Name to {regex: \"one group\"} or {json: \"a.b[0]\"} over this step answer text, for later inputs as {{name}}",
      -              "type": "object"
      -            },
      -            "retry": {
      -              "description": "Tries in all, 1 to 5: when this step errors, misses expect or a pick, wait about 2 s and call it again (a page still loading); only this step repeats, and the waits count toward the 30 s limit",
      -              "maximum": 5,
      -              "minimum": 1,
      -              "type": "integer"
      -            },
      -            "tool": {
      -              "minLength": 1,
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "tool"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 4,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "tool": {
      -        "description": "Instead of a command: a connector or MCP tool (mcp__…) that only reads, called by the session that runs goals, e.g. a mail search",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "urgent": {
      -        "description": "true: this watch's news starts a run at once, even within the goal's min_watch_gap_minutes (for sources where minutes matter)",
      -        "type": "boolean"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "command": {
      +        "description": "A shell command, run in the goal's directory, that prints one line per current item (an issue number, a feed entry's id). Lines not seen before start a run; the first check only records what is there. Must exit 0",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "every_minutes": {
      +        "description": "How often to check (default 5). Each run it starts is a full model run: pick the longest interval the source allows (goal-watches skill, Fewer quiet runs)",
      +        "maximum": 9007199254740991,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "finally": {
      +        "description": "With steps: a call that always runs after them, even after a failure (e.g. close the tab)",
      +        "properties": {
      +          "input": {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          "tool": {
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "tool"
      +        ],
      +        "type": "object"
      +      },
      +      "fires": {
      +        "description": "'new' (default): a line never seen before starts a run. 'change': for a state (a working tree, a health URL): a run starts when the output differs from the last check, with the lines that weren't in it ((none) when it became empty)",
      +        "enum": [
      +          "new",
      +          "change"
      +        ],
      +        "type": "string"
      +      },
      +      "ignore": {
      +        "description": "A regular expression: lines it matches are left out (for either kind): never a run, never marked seen, not read by status rules. null removes it",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "input": {
      +        "additionalProperties": {},
      +        "description": "The tool's arguments",
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "match": {
      +        "description": "A regular expression over the tool's answer; each match (its first group) is one line. Left out: every \"id\" in a JSON answer. For a command: only the output lines it matches count (whole lines, before the line cap)",
      +        "type": "string"
      +      },
      +      "status": {
      +        "anyOf": [
      +          {
      +            "properties": {
      +              "default": {
      +                "description": "When no rule matches",
      +                "properties": {
      +                  "run": {
      +                    "type": "boolean"
      +                  },
      +                  "status": {
      +                    "maxLength": 40,
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "tone": {
      +                    "enum": [
      +                      "ok",
      +                      "attention",
      +                      "problem"
      +                    ],
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "status"
      +                ],
      +                "type": "object"
      +              },
      +              "rules": {
      +                "description": "The first rule matching any line wins",
      +                "items": {
      +                  "properties": {
      +                    "match": {
      +                      "description": "A regular expression tested against each line",
      +                      "minLength": 1,
      +                      "type": "string"
      +                    },
      +                    "run": {
      +                      "description": "true: the lines also start a run",
      +                      "type": "boolean"
      +                    },
      +                    "status": {
      +                      "description": "The status text this rule sets (never taken from the output)",
      +                      "maxLength": 40,
      +                      "minLength": 1,
      +                      "type": "string"
      +                    },
      +                    "tone": {
      +                      "enum": [
      +                        "ok",
      +                        "attention",
      +                        "problem"
      +                      ],
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "match",
      +                    "status"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 10,
      +                "type": "array"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Sets the goal's status (and tone) from each check's lines with no agent run: for a goal that only reports a state. A run starts only when the matching rule says run: true. Best with fires: 'change'"
      +      },
      +      "steps": {
      +        "description": "Instead of tool + input: up to 4 read-only calls in order (e.g. a browser navigate, then get_page_text with {{tabId}}); the last answer is read with match",
      +        "items": {
      +          "properties": {
      +            "expect": {
      +              "description": "A regular expression this step answer text must match; an answer that does not is a failed check, so a problem the tool answers as plain text is not read as \"nothing new\"",
      +              "type": "string"
      +            },
      +            "input": {
      +              "additionalProperties": {},
      +              "description": "May use {{name}} for a value an earlier step picked",
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "pick": {
      +              "additionalProperties": {
      +                "anyOf": [
      +                  {
      +                    "properties": {
      +                      "regex": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "regex"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  {
      +                    "properties": {
      +                      "json": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "json"
      +                    ],
      +                    "type": "object"
      +                  }
      +                ]
      +              },
      +              "description": "Name to {regex: \"one group\"} or {json: \"a.b[0]\"} over this step answer text, for later inputs as {{name}}",
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "retry": {
      +              "description": "Tries in all, 1 to 5: when this step errors, misses expect or a pick, wait about 2 s and call it again (a page still loading); only this step repeats, and the waits count toward the 30 s limit",
      +              "maximum": 5,
      +              "minimum": 1,
      +              "type": "integer"
      +            },
      +            "tool": {
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "tool"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 4,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "tool": {
      +        "description": "Instead of a command: a connector or MCP tool (mcp__…) that only reads, called by the session that runs goals, e.g. a mail search",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "urgent": {
      +        "description": "true: this watch's news starts a run at once, even within the goal's min_watch_gap_minutes (for sources where minutes matter)",
      +        "type": "boolean"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / watches / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/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. It does disclose useful behavior: this is a confirmed-human mutation, it is scoped to one plugin, and it does not cover fields like add_memory/forget_memory/merge_categories semantics. It omits key mutation behavior such as whether omitted fields are preserved (partial vs. full replace), reversibility, and what happens to dependent runs or watches when settings change.

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?

Two sentences, front-loaded with the verb and the affected fields, then the precondition and the hard exclusion. No filler, and the most consequential constraint (do not call) is placed at the end where it is still visible.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 16-parameter, deeply nested mutation tool with no annotations and no output schema, the description covers purpose and access policy but leaves gaps around return values, partial-update behavior, and the ripple effects of changing watches or autonomy. The rich schema partly compensates, but the behavioral surface of this tool is larger than what the description addresses.

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?

The description's field list loosely maps to the parameters and confirms the tool is a partial update over many independent settings, which is not obvious from the schema alone. With 16 parameters at 69% schema coverage and deep nesting, the description does not clarify the interaction rules the schema leaves implicit, such as 'instructions' vs 'instructions_edits' mutual exclusivity or how memory arrays behave.

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?

Uses a specific verb ('Changes') plus an explicit enumeration of the mutable fields: name, objective, instructions, autonomy, tool rules, memory, watches, watch gap, model or status. An agent can tell this is the general goal-mutation tool rather than a run- or item-level one. It stops short of 5 because it never addresses the overlap with siblings such as set_goal_status, which appears from the name to also change status.

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 two concrete usage conditions: it is only for the quarterdeck-goals plugin, and it must only be used 'once the human has confirmed', with the further exclusion that agents and the model must not call it. That is an explicit when-not rule plus a precondition, which is stronger than most definitions. It loses a point because it never routes the reader to the correct alternative (e.g. set_goal_status, update_task) for the cases this tool is excluded from.

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