Skip to main content
Glama

Set orchestration details

set_orchestration_meta
Destructive

Patch top-level orchestration metadata only. Does NOT touch the steps list. Use this for renames, description edits, entry_step_id changes, state_schema updates, turn/timeout budget changes, or a cap on what one run may spend. Pass only the fields you want to change.

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": "set_orchestration_meta"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
orch_idYes
result_keyNoThe state key whose value is what this orchestration makes: its answer when chatted with as an agent, and what a parent gets back when it runs nested. Leave empty for the last step that produces content (a human step's answer, an evaluator's route label and an end step never count). Set it when the result is not the last step's output — a workflow ending in an approval of its report, say.
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.
offer_to_mcpNoThe workflow's own Offer to MCP clients switch: true offers it to apps connected over MCP as a tool of its own, false stops offering it (they can still run it by name).
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.
strict_state_typesNoStop a run when a step's text will not become the type its state key declares — an llm step answering in prose where the key is declared `list`, say. Off by default: the text stays put and the run log says so. Turn it on only when asked to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / offer_to_mcp
      Added value: +{
      +  "description": "The workflow's own Offer to MCP clients switch: true offers it to apps connected over MCP as a tool of its own, false stops offering it (they can still run it by name).",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

The patch semantics ('pass only the fields you want to change') add genuine value beyond the annotations, telling the agent this is a partial update rather than a replace. However, annotations declare destructiveHint=true and the description never explains what can be lost — notably that supplying state_schema_json or clearing caps may overwrite existing configuration — so the destruction profile is left to the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with scope and the negative constraint, then use cases, then the patch rule. Nothing is redundant and the ordering matches how an agent decides to call it.

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

Completeness4/5

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

For a 12-parameter mutating tool with no output schema, the description covers scope, use cases, and the patch contract, while the schema carries the rich per-field explanations. It stops short of describing failure behavior or what a successful patch returns, which an agent would otherwise have to discover.

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?

With only 50% schema description coverage and six bare parameters (name, description, entry_step_id, max_total_turns, timeout_minutes, orch_id), the description compensates by mapping the listed use cases onto those exact fields, so the agent knows what each undocumented knob changes. It does not add format or validation detail for them.

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 ('Patch'), a specific resource ('top-level orchestration metadata only'), and an explicit negative scope ('Does NOT touch the steps list'), which lets an agent separate it from step-editing siblings without opening a schema. The distinction is functional rather than merely restating the title.

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 clear use cases (renames, description edits, entry_step_id changes, state_schema updates, budget/timeout changes) and the patch contract 'Pass only the fields you want to change.' It lacks an explicit pointer to which sibling handles step edits, so the alternative is implied rather than named.

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.