Skip to main content
Glama

Orchestrator Next Action

orchestrator_next_action
Read-onlyIdempotent

Returns the next action for an unattended AppFactory pipeline, including stage, role, retry budget, and instructions; done signals completion.

Instructions

Return the next action for the autonomous driver loop: stage, subagent role, retry budget and instructions.

Use when: running unattended. done=true means the pipeline is finished (submit still needs human approval). For a manual step use pipeline_next. Returns: {ok, done, stage, role, attempts_left, instructions}.

Input Schema

NameRequiredDescriptionDefault
app_dirYesAbsolute path to the app project directory (contains app.spec.json), e.g. /Users/me/Apps/MyApp.
skip_options_checkNoIf true, do not require run_options_save to have been called first. Default false.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.5
    • addedInput schema / properties / app_dir / description
      Added value: +"Absolute path to the app project directory (contains app.spec.json), e.g. /Users/me/Apps/MyApp."
    • addedInput schema / properties / skip_options_check / description
      Added value: +"If true, do not require run_options_save to have been called first. Default false."
  2. First observedv0.1.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint/openWorldHint, so the safety profile is covered. The description adds genuinely useful behavior the annotations cannot express: done=true means the pipeline is finished, and the final submit still requires human approval. It does not mention the skip_options_check prerequisite relationship to run_options_save, which is the one notable behavioral gap.

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?

Front-loaded with the purpose and organized into 'Use when' / alternative / 'Returns' beats, with zero filler prose. The explicit 'Returns: {ok, done, stage, role, attempts_left, instructions}' is mildly redundant given a separate output schema exists, which is the only thing keeping this short of a 5.

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 two-parameter, read-only loop-driving tool with an output schema, the description supplies the essentials: purpose, unattended-use condition, sibling route, and the human-approval caveat on done. Return values need not be explained since an output schema exists; only the skip_options_check/run_options_save ordering precondition is left implicit.

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%, so app_dir and skip_options_check are already documented, including the default and its meaning. The description contributes nothing about input parameters – its only parameter-adjacent content (stage, role, retry budget) describes outputs, not inputs. Baseline 3 is correct when the schema carries the load.

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 (Return) and resource (the next action for the autonomous driver loop) and enumerates what the action contains: stage, subagent role, retry budget, instructions. It also names the sibling it is not (pipeline_next), so the agent can discriminate 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?

'Use when: running unattended' gives the triggering condition, and 'For a manual step use pipeline_next' names the explicit alternative and the condition that selects it. Nothing about routing is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools