Skip to main content
Glama

updateStep

Edits an existing step: its text, description, answer type, content, or whether it is required. Pass only the fields you want to change, except that changing type also requires the matching content for the new type (unless the new type takes none — YesNo gets its fixed Yes/No pair automatically). Changing a step to TriggeredEmail drops its text along with its old content, and is rejected when that step is the task's first one; changing a TriggeredEmail step to another type discards its email configuration. A step whose answers set a label category (setByAnswer in listBetaLabels) keeps its type, and its answers that give a label can't be removed; on a SingleChoice step such an answer's text can change, keeping its label, only before any tester has answered or skipped the step and while the beta project isn't running or paused, and only when the call names that label with the new text in answerLabelChoices. On a draft or scheduled beta project the change is applied immediately. On a running or paused beta project the change is STAGED: testers do not see it until commitTaskChanges publishes all staged changes (revertTaskChanges discards them; getBetaTasks with version 'unpublished' shows the staged state). While staging, these tools accept BOTH the live id and the staged id of a task or step, but always respond with the STAGED row — expect ids you did not pass in, with liveVersionId linking back to the live row. Content of finished or archived beta projects cannot be edited.

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": {
      "productId": "<productId>",
      "taskId": "<taskId>",
      "stepId": "<stepId>"
    },
    "name": "updateStep"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoThe step's question or title (up to 128 characters). A TriggeredEmail step has none; passing one for it is rejected.
typeNoThe kind of step. MultipleChoices, SingleChoice, Rate, Ranking and TriggeredEmail REQUIRE a content shaped for the type (a choices array, a choices array, a scale object, an items array, an email object). FreeText, Instructions and File take no content and reject one. YesNo takes no authored content either: omit it and the fixed Yes / No pair is set automatically, though echoing that exact pair back is accepted so a step read from getBetaTasks round-trips. TriggeredEmail is not a step testers see or answer: it sends an email the moment a tester answers the step immediately before it, so it takes no "text" and can never be the first step of a task.
stepIdYesID of the step to edit, from getBetaTasks. Never invent ids.
taskIdYesID of the task, from getBetaTasks. Never invent ids.
contentNoThe step configuration, shaped by type: for MultipleChoices/SingleChoice an array of at least 2 { choice } options with non-empty texts, optionally plus ONE final { choice: "Other", other: true } option that lets the tester type a free answer (its label is fixed: choice must be the literal text "Other", any other wording is rejected); for Rate an object { scale (number, 3 or more), symbol ("Thumb", "Star" or "Square"), lowerText?, higherText? (labels for the scale ends, up to 20 characters, default empty) }; for Ranking an array of at least 2 items { id (a v4 UUID you generate), text } with unique ids and unique texts; for TriggeredEmail an object { to, subject, message, cc? } where to is { allManagers?: boolean, allTesters?: boolean, tagsIds?: string[], personFieldIds?: string[] } and names at least one audience, subject is plain text of at most 128 characters and takes no variables (nothing replaces them there, so the recipient would read the braces), message is the email body as basic HTML reading at most 4096 characters of text, and cc is a list of Person custom field ids. Any other key of the email object or of to is rejected rather than dropped, so bcc and to.emails are not accepted: nothing would send to them. tagsIds are tester tag ids from listTesterTags, and ONLY the entries it marks assignable: a computed smart tag is rejected because a triggered email cannot be sent to one. personFieldIds and cc are ids of Person-type fields from listCustomFields; a personFieldIds field routes the email to the manager-persons that tester recorded in it, cc puts them in copy. The email goes out the first time a tester answers or skips the step before it (skipping a whole optional task sends nothing), one email per tester, and the audiences reach: allTesters ONLY that tester, never every tester in the beta project; tagsIds that same tester, only if they carry one of the tags (tester tags never reach managers, and beta labels are not tags); allManagers every manager on the beta project. To notify a manager when a tester finishes a task, make this the task's last step and use allManagers or personFieldIds. message may use these tester variables: {{USERNAME}}, {{FULL_NAME}}, {{ADDRESS}}, {{EMAIL}}, {{PHONE}}, {{PROJECT_NAME}}, {{WORKSPACE}}, {{REMAINING_PROJECT_DAYS}}, {{CURRENT_WEEK_DAY}}. The {{MANAGER_*}} ones belong to invitations and are rejected here. On an SDK beta project the audience must be managers only (allManagers), because its testers are not workspace testers and every other audience would reach nobody. REQUIRED for MultipleChoices, SingleChoice, Rate, Ranking and TriggeredEmail; omitting it is rejected. Must be OMITTED for FreeText, Instructions and File; passing one is rejected. Omit it for YesNo too (its answers are fixed to Yes / No, set automatically); passing that exact pair back is accepted, anything else is rejected. Pass the array or object value itself, not a JSON-encoded string. Call getBetaTasks to see the current shape of existing steps.
requiredNoWhether the tester must answer this step.
productIdYesID of the beta project to query. Get valid IDs from the listProducts tool.
descriptionNoSupporting detail shown under the step (up to 1024 characters of text; basic HTML is allowed).
answerLabelChoicesNoOnly when content changes the text of an answer that gives a label (setByAnswer in listBetaLabels): one entry per such answer, naming its label and the new text, so the label stays with that answer. Answers have no ids, so without it the old text counts as removed and the call is refused. Leave it out otherwise.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / answerLabelChoices
      Added value: +{
      +  "description": "Only when content changes the text of an answer that gives a label (setByAnswer in listBetaLabels): one entry per such answer, naming its label and the new text, so the label stays with that answer. Answers have no ids, so without it the old text counts as removed and the call is refused. Leave it out otherwise.",
      +  "items": {
      +    "properties": {
      +      "choice": {
      +        "description": "The new text of the answer that gives this label, exactly as content has it.",
      +        "type": "string"
      +      },
      +      "labelId": {
      +        "description": "ID of the label, from listBetaLabels. Never invent ids.",
      +        "format": "uuid",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "labelId",
      +      "choice"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes far beyond the annotations, disclosing destructive side effects not surfaced by destructiveHint=false: TriggeredEmail conversion drops the step text and rejects on first position, and type change off TriggeredEmail discards the email configuration. It also explains the staged-vs-live write model, that responses return the STAGED row with liveVersionId, and the label-locking constraints — all behavioral facts unavailable in structured fields.

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 edit scope and the field-change rule are front-loaded, which is good, but the staging paragraph is a dense run-on with heavy parentheticals, and the TriggeredEmail audience rules restate material already carried by the content parameter's schema description. It is thorough but overstuffed for a description.

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 complex mutation tool with no output schema, it covers everything an agent needs: staging semantics, which ids are accepted and returned, publish/discard siblings, label restrictions, and terminal-state rejections. Nothing required to call it correctly is left implicit.

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 coverage is 100%, so the baseline is 3, but the description adds real cross-parameter logic the schema cannot state: type/content coupling, YesNo's automatic pair, and the conditional role of answerLabelChoices when an answer's text changes. It does not add much about productId/taskId/stepId beyond the schema's 'never invent ids' guidance.

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?

Opening sentence gives a specific verb and resource ('Edits an existing step') and enumerates exactly which fields are editable (text, description, answer type, content, required). The 'edits an existing step' framing inherently separates it from createStep/deleteStep in the sibling list.

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?

Strong conditional guidance: 'Pass only the fields you want to change', the rule that type changes require matching content, and the hard exclusion 'Content of finished or archived beta projects cannot be edited.' It also routes the agent to commitTaskChanges, revertTaskChanges, and getBetaTasks for the staging workflow. It stops short of explicitly naming sibling creation/deletion tools as the alternative.

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