Skip to main content
Glama

Update Revision

updateRevision
Destructive

Update a revision's configuration, name, description, or handover targets. Returns the updated revision.

Input Schema

NameRequiredDescriptionDefault
configNoBuild configuration object
build_idYesThe build's unique identifier
handoverToNoThe single agent or code step to run after this one completes ("Handover to"). Null clears it; omit to leave it unchanged. Mutually exclusive with @-mention handovers in the AOP.
revision_nameNoOptional user-defined name for this revision. Pass null to clear.
handoverOptionsNoCode steps only. The targets the program may request, and whether it must. Null clears them; omit to leave unchanged. Mutually exclusive with handoverTo in one request.
handoverTargetIdsNoAgent IDs that this agent can hand over work to, used exactly as sent; an empty list clears them. Send null to use the agents the AOP mentions with <DUVO:AGENT> tags. Omit it to leave the targets as they are.
revision_descriptionNoOptional user-defined description for this revision. Pass null to clear.
selected_automation_revision_idNoThe automation revision this edit is being made at. Pass a draft and the edit is folded into that draft itself; pass the active revision and the edit lands on a draft branched from it. A historic revision is rejected — it cannot be activated from without an explicit rebase. A revision belonging to a different automation is ignored, and the edit targets the automation the addressed agent belongs to. Omit to target the automation's active revision.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / handoverTargetIds / anyOf
      Added value: +[
      +  {
      +    "items": {
      +      "format": "uuid",
      +      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / handoverTargetIds / description
      Previous value: -"Agent IDs that this agent can hand over work to"New value: +"Agent IDs that this agent can hand over work to, used exactly as sent; an empty list clears them. Send null to use the agents the AOP mentions with <DUVO:AGENT> tags. Omit it to leave the targets as they are."
    • removedInput schema / properties / handoverTargetIds / items
      Removed value: -{
      -  "format": "uuid",
      -  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
      -  "type": "string"
      -}
    • removedInput schema / properties / handoverTargetIds / type
      Removed value: -"array"
  2. Changed1 schema field changed
    • addedInput schema / properties / handoverOptions
      Added value: +{
      +  "anyOf": [
      +    {
      +      "properties": {
      +        "required": {
      +          "description": "When true, a run that exits cleanly without requesting a handover fails",
      +          "type": "boolean"
      +        },
      +        "targetAgentIds": {
      +          "description": "Steps in the same automation this code step's program may request",
      +          "items": {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
      +            "type": "string"
      +          },
      +          "minItems": 1,
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "targetAgentIds",
      +        "required"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Code steps only. The targets the program may request, and whether it must. Null clears them; omit to leave unchanged. Mutually exclusive with handoverTo in one request."
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / handoverTo
      Added value: +{
      +  "anyOf": [
      +    {
      +      "format": "uuid",
      +      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The single agent or code step to run after this one completes (\"Handover to\"). Null clears it; omit to leave it unchanged. Mutually exclusive with @-mention handovers in the AOP."
      +}
  4. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and readOnlyHint=false, so the mutation and risk profile are known; the description adds only that it returns the updated revision. It says nothing about what an update overwrites, that partial updates leave other fields untouched, or that a historic revision is rejected — all of which are behaviorally significant for a destructive call.

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?

Two short sentences, mutation scope front-loaded and the return value noted second. No filler, though the field enumeration is partly redundant with the schema.

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

Completeness2/5

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

For an 8-parameter destructive mutator with nested objects and null/omit semantics, the description omits the partial-update model, the draft-vs-active-revision targeting behavior, and the mutual exclusivity of the handover parameters. The schema carries this, but the description should at least flag that omitting a field preserves it and that targeting a historic revision is rejected.

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% and each parameter carries rich documentation (null clears, omit leaves unchanged, handoverTo vs handoverOptions mutual exclusivity, selected_automation_revision_id branching rules). The description merely names the field groups, so baseline 3 applies.

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?

States a specific verb and resource and enumerates the fields it can change (config, name, description, handover targets), which lets an agent distinguish it from createRevision or getRevision. It does not differentiate itself from adjacent mutators such as updateAutomation or updateSkillRevision, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no indication of when to prefer this tool over siblings, no preconditions (draft vs active revision, permissions), and no note that nothing changes if a field is omitted. Usage must be inferred entirely from the schema.

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