Skip to main content
Glama

revise_workflow_goal

Revise a paused or awaiting-input workflow run's root goal at a quiescent checkpoint. Provide the current goal revision to avoid stale-revision rejection; replanning is then required.

Instructions

Revise a root run goal at a quiescent paused or awaiting-input checkpoint.

Only the run's interaction owner can revise it. Supply the current goal_revision (0 if no goal exists). Stale revisions, terminal runs and active nested/parallel work are rejected. The nonblank goal is preserved verbatim up to 64 KiB UTF-8. History and completed work remain; previous assessments are invalidated and replanning is required before further dispatch. Each run retains at most 64 goal revisions (including the initial goal) and 1 MiB UTF-8 of cumulative goal text. Edits exceeding either bound are rejected; start a new run.

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": {
      "run_id": "<run_id>",
      "goal": "<goal>",
      "expected_revision": "<expected_revision>"
    },
    "name": "revise_workflow_goal"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalYes
run_idYes
expected_revisionYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.14

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: the goal is preserved verbatim up to 64 KiB UTF-8, history and completed work survive, prior assessments are invalidated, and replanning is required before further dispatch. It also discloses hard limits (64 revisions per run including the initial goal, 1 MiB cumulative goal text) and the fallback (start a new run).

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 constraints, then limits, and every sentence adds information; nothing is padding. The mid-sentence line break separating the opening clause from its continuation slightly hurts scanability but not content.

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?

An output schema exists, so return values need not be described, and the description covers mutation semantics, authorization, rollback implications, and capacity limits. Nothing an agent needs to invoke this correctly against a 3-parameter mutation tool is missing.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must supply meaning, and it does for the two non-obvious parameters: expected_revision is explained as the current goal_revision with 0 meaning no goal exists, and goal is described as nonblank, preserved verbatim, subject to a 64 KiB cap. run_id is only implicitly characterized (root run, ownership, terminal-run rejection) rather than mapped to syntax or format.

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 (revise) and specific resource (a root run goal) plus the exact precondition (quiescent paused or awaiting-input checkpoint). That scope wording separates it from neighboring tools such as steer_workflow, replan_workflow_steering, and resume_workflow.

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 explicit when-to-use and when-not conditions: only at a quiescent paused or awaiting-input checkpoint, only by the run's interaction owner, and rejected for stale revisions, terminal runs, and active nested/parallel work. It does not name an alternative tool to use in those rejected cases, so it stops just short of a 5.

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