Skip to main content
Glama

Update orchestration

update_orchestration
Destructive

Replace an existing orchestration's fields. Prefer set_orchestration_meta / add_steps / update_step / remove_step for targeted diffs — this full-replace form is the fallback for sweeping rewrites only. steps_json REPLACES the entire step list when supplied.

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>"
    },
    "name": "update_orchestration"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
orch_idYes
steps_jsonNoOptional. JSON-encoded array of step objects. Each step is an object with {id, name, type, ...type-specific fields}. See the step-type palette in your system prompt for the full field list per type. Keep each step lean — include only fields that differ from zero-defaults. Sub-structures MUST be JSON strings inside each step: route_map_json, route_descriptions_json, parallel_branches_json, human_fields_json, switch_cases_json, output_fields_json (an llm or agent step's answer fields, F1553). Retrieve and ingest steps take add_single_step's flat retrieve_* / ingest_* fields. An agent step that should read the images a person attaches in chat sets "pass_images": true. Minimal example (2 agent steps): '[{"id":"step_abc1234","name":"Analyse","type":"agent","agent_id":"agent_123","prompt_template":"Summarise {{ state.user_input }}","input_keys":["user_input"],"output_key":"summary","next_step_id":"step_def5678"},{"id":"step_def5678","name":"Done","type":"end"}]'
descriptionNo
max_run_usdNoThe most one run of this workflow may spend on models, in US dollars (0.5 is fifty cents). A run that has spent it stops before its next step and says so. Set a cap only when the person asks for one; 0 removes it.
entry_step_idNo
max_run_creditsNoCloud only: the most execution credits one run of this workflow may use, 1 or more. A run that reaches it stops before its next step and says so. Set a cap only when the person asks for one; 0 removes it.
max_total_turnsNo
timeout_minutesNo
state_schema_jsonNoJSON-encoded state-schema object mapping each state key to {type, default, description}. Allowed types: str, int, float, bool, list, dict. Example: '{"user_input":{"type":"str","default":"","description":"Initial user message"}}'. Pass '{}' (empty object JSON) when the orchestration has no upfront state keys.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / steps_json / description
      Previous value: -"Optional. JSON-encoded array of step objects. Each step is an object with {id, name, type, ...type-specific fields}. See the step-type palette in your system prompt for the full field list per type. Keep each step lean — include only fields that differ from zero-defaults.\nSub-structures MUST be JSON strings inside each step: route_map_json, route_descriptions_json, parallel_branches_json, human_fields_json, switch_cases_json. Retrieve and ingest steps take add_single_step's flat retrieve_* / ingest_* fields. An agent step that should read the images a person attaches in chat sets \"pass_images\": true.\nMinimal example (2 agent steps):\n'[{\"id\":\"step_abc1234\",\"name\":\"Analyse\",\"type\":\"agent\",\"agent_id\":\"agent_123\",\"prompt_template\":\"Summarise {{ state.user_input }}\",\"input_keys\":[\"user_input\"],\"output_key\":\"summary\",\"next_step_id\":\"step_def5678\"},{\"id\":\"step_def5678\",\"name\":\"Done\",\"type\":\"end\"}]'"New value: +"Optional. JSON-encoded array of step objects. Each step is an object with {id, name, type, ...type-specific fields}. See the step-type palette in your system prompt for the full field list per type. Keep each step lean — include only fields that differ from zero-defaults.\nSub-structures MUST be JSON strings inside each step: route_map_json, route_descriptions_json, parallel_branches_json, human_fields_json, switch_cases_json, output_fields_json (an llm or agent step's answer fields, F1553). Retrieve and ingest steps take add_single_step's flat retrieve_* / ingest_* fields. An agent step that should read the images a person attaches in chat sets \"pass_images\": true.\nMinimal example (2 agent steps):\n'[{\"id\":\"step_abc1234\",\"name\":\"Analyse\",\"type\":\"agent\",\"agent_id\":\"agent_123\",\"prompt_template\":\"Summarise {{ state.user_input }}\",\"input_keys\":[\"user_input\"],\"output_key\":\"summary\",\"next_step_id\":\"step_def5678\"},{\"id\":\"step_def5678\",\"name\":\"Done\",\"type\":\"end\"}]'"
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the mutation risk is known. The description adds the critical detail that "steps_json REPLACES the entire step list when supplied" and frames the call as a full-replace rather than a merge, which is exactly the kind of consequence that is not visible in the annotations. It stops short of stating what happens to omitted fields, keeping it from a 5.

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 tight sentences with the destructive full-replace action front-loaded and the fallback framing before any details. No filler, though the final steps_json sentence would read slightly better folded into the first.

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 destructive 10-parameter full-replace tool the description covers routing and step-list replacement, but leaves open whether omitted scalar fields are cleared or preserved and says nothing about the required orch_id or the caps. The annotations and partial schema fill some of the gap, but not all of it.

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 only 40%, so the description should carry more weight than it does. It clarifies replacement semantics for steps_json (the most dangerous parameter) but says nothing about name, description, entry_step_id, max_total_turns, or timeout_minutes, leaving the majority of the surface to an under-documented schema.

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 and resource ("Replace an existing orchestration's fields") and immediately names the sibling tools that perform narrower operations. An agent can distinguish this full-replace form from set_orchestration_meta, add_steps, update_step, and remove_step without opening any schema.

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

Usage Guidelines5/5

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

Explicit routing guidance: prefer the targeted-diff siblings, and treat this as "the fallback for sweeping rewrites only." Both the when-to-use and the when-not-to-use conditions are stated, along with the named alternatives.

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.