Skip to main content
Glama

Update step

update_step
Destructive

Merge a partial step patch into an existing step. Only fields present in patch_json are changed; all other step fields are preserved. Use this for small edits like changing a prompt_template, adjusting an evaluator's route_map, or retargeting next_step_id.

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": {
      "orch_id": "<orch_id>",
      "step_id": "<step_id>",
      "patch_json": "<patch_json>"
    },
    "name": "update_step"
  }
}

Input Schema

NameRequiredDescriptionDefault
orch_idYes
step_idYes
patch_jsonYesJSON-encoded object with the step fields you want to change. Omit any field you don't want touched. Use *_json string keys for sub-structures (route_map_json, parallel_branches_json, human_fields_json, route_descriptions_json, output_fields_json); a retrieve or ingest step's flat retrieve_* / ingest_* fields change only those settings; pass_images (agent steps) turns Sees attachments on or off; a browser step's recording_inputs_json, may_send_steps, on_miss and browser_sessions as add_single_step takes them. Example: '{"prompt_template":"New prompt","next_step_id":"step_xyz7890"}'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / patch_json / description
      Previous value: -"JSON-encoded object with the step fields you want to change. Omit any field you don't want touched. Use *_json string keys for sub-structures (route_map_json, parallel_branches_json, human_fields_json, route_descriptions_json); a retrieve or ingest step's flat retrieve_* / ingest_* fields change only those settings; pass_images (agent steps) turns Sees attachments on or off; a browser step's recording_inputs_json, may_send_steps, on_miss and browser_sessions as add_single_step takes them. Example: '{\"prompt_template\":\"New prompt\",\"next_step_id\":\"step_xyz7890\"}'"New value: +"JSON-encoded object with the step fields you want to change. Omit any field you don't want touched. Use *_json string keys for sub-structures (route_map_json, parallel_branches_json, human_fields_json, route_descriptions_json, output_fields_json); a retrieve or ingest step's flat retrieve_* / ingest_* fields change only those settings; pass_images (agent steps) turns Sees attachments on or off; a browser step's recording_inputs_json, may_send_steps, on_miss and browser_sessions as add_single_step takes them. Example: '{\"prompt_template\":\"New prompt\",\"next_step_id\":\"step_xyz7890\"}'"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=false, so the bar is lower. The description does add real value by disclosing merge semantics ("all other step fields are preserved"), but it never addresses the destructive/non-idempotent profile or what is returned after the patch is applied.

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?

Three front-loaded sentences, with the core merge contract stated first and examples last. Slight redundancy with the patch_json schema description ("only fields present are changed" vs. "omit any field you don't want touched"), but no wasted wording.

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?

There is no output schema, so the description should at least hint at what comes back after a merge, and it is silent on whether nested sub-structures merge deeply or replace wholesale, or what happens when the patch references an unknown step. For a destructive mutation gated on three required parameters, these are meaningful gaps.

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 coverage is only 33%: patch_json is documented in detail inside the schema, while orch_id and step_id have none. The description reinforces the patch semantics and gives an example payload shape, but it never explains the two identifier parameters or the scope they select, so the coverage gap is only partly compensated.

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?

"Merge a partial step patch into an existing step" gives a specific verb (merge/patch) plus resource (step), and the merge semantics separate it from siblings like add_single_step or remove_step. It doesn't name an alternative explicitly, which keeps it just 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 Guidelines4/5

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

"Use this for small edits like changing a prompt_template, adjusting an evaluator's route_map, or retargeting next_step_id" gives concrete when-to-use context. There is no explicit when-not guidance (e.g., replacing a whole step or structural additions) and no sibling is named as an 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.