Skip to main content
Glama

Add multiple steps

add_multiple_steps

Add multiple steps to an orchestration in one call. Each step uses flat fields (same as add_single_step). Batch up to 5 plain steps (agent, llm, end, merge) per call. For evaluator/parallel/human steps, prefer add_single_step (one at a time).

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

Input Schema

NameRequiredDescriptionDefault
stepsYesArray of step objects. Each has the same fields as add_single_step.
orch_idYesOrchestration ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / steps / items / properties / output_fields_json
      Added value: +{
      +  "description": "llm/agent steps: JSON string of the fields its answer has, [{name, type, description?, options?}] (F1553)",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare this is a non-readonly, non-idempotent, non-destructive, non-open-world mutation. The description adds useful scope detail (max 5 steps per call, flat field format shared with add_single_step) but says nothing about atomicity — whether a failure on step 3 rolls back steps 1-2 or leaves a partial batch — which is the key behavioral unknown for a batch mutation.

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?

Four short sentences, front-loaded with the primary action and batch limit, followed by the type restriction. No filler, no restatement of the title, and the constraint arrives before the caveat.

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 tool whose input is a deeply nested, type-discriminated step array, the description covers eligibility and batch size but omits failure semantics, ordering guarantees, and whether created steps return identifiers. Adequate to make the call in the happy path; incomplete for the edge cases a batch writer will hit.

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 the nested step object documents dozens of type-specific fields in detail, so the schema carries the load. The description only adds that step objects use "flat fields (same as add_single_step)," which nudges the agent toward the sibling's schema but adds no parameter meaning of its own.

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 ("Add multiple steps to an orchestration in one call") and immediately scopes it with a batch cap of 5 and a supported-type list. It explicitly positions itself against add_single_step, so an agent can choose between the batch and single path without inspecting either schema.

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 concrete routing guidance: batch plain steps (agent, llm, end, merge) here, and prefer add_single_step for evaluator/parallel/human steps. The word "prefer" softens what might be a hard restriction, and it doesn't say what happens if the cap is exceeded or why those types are excluded.

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.