Skip to main content
Glama

Orchestration MCP

TypeScript MCP server for launching and tracking external coding-agent runs.

The MCP surface stays stable while the internal execution backend can target:

  • local codex

  • local claude_code

  • remote remote_a2a

This lets a top-level agent call one MCP toolset while the orchestration layer decides whether subagents are local SDK processes or remote A2A-compatible agents.

Install And Build

cd orchestration-mcp
npm install
npm run build

Related MCP server: mcpcodeserver

Run The MCP Server

cd orchestration-mcp
npm start

This starts the MCP server from dist/index.js.

Codex MCP Config Example

If you want Codex to load this MCP server, add an entry like this to ~/.codex/config.toml:

[mcp_servers.orchestration-mcp]
command = "node"
args = ["/abs/path/to/orchestration-mcp/dist/index.js"]
enabled = true

Example using this repository path:

[mcp_servers.orchestration-mcp]
command = "node"
args = ["/Users/fonsh/PycharmProjects/Treer/nanobot/orchestration-mcp/dist/index.js"]
enabled = true

After updating the config, restart Codex so it reloads MCP servers.

What The MCP Exposes

The server registers these tools:

  • spawn_run

  • get_run

  • poll_events

  • cancel_run

  • continue_run

  • list_runs

  • get_event_artifact

Typical MCP Flow

  1. Call spawn_run to create a subagent run.

  2. Call poll_events until you see a terminal event or a waiting state.

  3. If the run enters input_required or auth_required, call continue_run.

  4. Call get_run for the latest run summary.

  5. If an event contains artifact_refs, call get_event_artifact to fetch the full payload.

spawn_run notes

  • backend: "codex", "claude_code", or "remote_a2a"

  • role: orchestration role label such as planner, worker, or reviewer

  • prompt: plain-text instruction for simple runs

  • input_message: optional structured message for multipart/A2A-style inputs

  • cwd: absolute working directory

  • session_mode: new or resume

  • session_id: required when resuming a prior session

  • profile: optional path to a persona/job-description file. When provided, orchestration loads the file and injects it into the agent context. Backends with native system prompt support use it there; other backends prepend it to the run context.

Unless you are explicitly instructed to use a profile, leave profile empty.

  • output_schema: optional JSON Schema for structured final output

  • metadata: optional orchestration metadata stored for correlation and auditing

  • backend_config: optional backend-specific settings. For remote_a2a, set agent_url and any auth headers/tokens here.

For all backends, cwd is the orchestration-side working directory used for run/session storage.

For remote_a2a, spawn_run.cwd is also forwarded to the remote subagent and becomes that A2A task context's execution directory.

At least one of prompt or input_message is required.

Simple example:

{
  "backend": "codex",
  "role": "worker",
  "prompt": "Inspect the repository and summarize the architecture.",
  "cwd": "/abs/path/to/project",
  "session_mode": "new"
}

Remote A2A example:

{
  "backend": "remote_a2a",
  "role": "worker",
  "prompt": "Inspect the repository and summarize the architecture.",
  "cwd": "/abs/path/to/project",
  "session_mode": "new",
  "backend_config": {
    "agent_url": "http://127.0.0.1:53552"
  }
}

Reviewer workflow assets

This repository includes a ready-to-use reviewer setup for multi-agent coding workflows:

  • profile: ./profile/reviewer-remediator.md

Recommended spawn_run usage for a reviewer run:

{
  "backend": "codex",
  "role": "reviewer",
  "cwd": "/abs/path/to/project",
  "session_mode": "new",
  "profile": "/abs/path/to/orchestration-mcp/profile/reviewer-remediator.md",
  "prompt": "Review only the latest diff in the current working directory, apply low-risk fixes when clearly correct, validate them, and write a remediation report."
}

continue_run notes

Use continue_run when a run enters input_required or auth_required and the backend supports interactive continuation.

Inputs:

  • run_id

  • input_message

get_event_artifact notes

Use get_event_artifact when a sanitized event returned by poll_events contains event.data.artifact_refs and you need the full original payload.

Inputs:

  • run_id

  • seq

  • field_path: JSON Pointer relative to event.data, for example /stdout, /raw_tool_use_result, or /input/content

  • offset: optional byte offset, default 0

  • limit: optional byte limit, default 65536

Typical flow:

  1. Call poll_events.

  2. Inspect event.data.artifact_refs on any sanitized event.

  3. Call get_event_artifact with the same run_id, the event seq, and one of the exposed field_path values.

Backend defaults

  • codex: uses the current @openai/codex-sdk defaults plus non-interactive execution settings already wired in the adapter

  • claude_code: uses @anthropic-ai/claude-agent-sdk with permissionMode: "bypassPermissions" so the MCP call stays non-blocking, and reuses persisted backend session ids for resume

  • remote_a2a: connects to a remote A2A-compatible agent using @a2a-js/sdk, streams task updates into normalized orchestration events, and supports continue_run for input_required

For claude_code, make sure the local environment already has a working Claude Code authentication setup before testing.

Test A2A agents

The repo includes helper modules for local A2A-wrapped test agents:

  • dist/test-agents/codex-a2a-agent.js

  • dist/test-agents/claude-a2a-agent.js

  • dist/test-agents/start-a2a-agent.js

These export startup helpers that wrap the local Codex and Claude SDKs behind an A2A server so the orchestration MCP can test its internal remote_a2a backend against realistic subagents.

To start an interactive wrapper launcher:

npm run start:a2a-agent

The script will ask whether to wrap codex or claude_code.

After startup, it prints the agent_url and a ready-to-use spawn_run payload for the MCP layer. The wrapper no longer locks a working directory at startup. Each remote_a2a call uses the cwd provided to spawn_run, and the wrapper keeps that cwd fixed for the lifetime of the same A2A contextId.

Storage

Run data is stored under:

<cwd>/.nanobot-orchestrator/
  runs/
    <run_id>/
      run.json
      events.jsonl
      result.json
      artifacts/
        000008-command_finished/
          manifest.json
          stdout.0001.txt
          stdout.0002.txt
  sessions/
    <session_id>.json

Notes:

  • events.jsonl stores sanitized events intended for poll_events consumption.

  • Oversized raw payloads are moved into per-event artifact files and referenced from event.data.artifact_refs.

  • run.json and result.json keep the current run snapshot and final result behavior.

  • The storage directory name is currently .nanobot-orchestrator/ for backward compatibility with the existing implementation.

Available Tools

7 tools
cancel_runB

Cancel a running external coding-agent run.

ParametersJSON Schema
NameRequiredDescriptionDefault
run_idYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
run_idYes
statusYes
cancelled_atYes

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the action ('cancel') but doesn't explain what cancellation entails (e.g., whether it's reversible, if it stops processes immediately, what permissions are required, or any side effects like resource cleanup). For a mutation tool with zero annotation coverage, this is a significant gap in transparency.

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?

The description is a single, clear sentence that directly states the tool's purpose without unnecessary words. It's front-loaded with the key action and target, making it efficient and easy to parse. Every word earns its place, with no redundancy or fluff.

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?

Given the tool's complexity (a mutation with one parameter) and the presence of an output schema (which handles return values), the description is minimally adequate. However, with no annotations and low schema coverage, it lacks details on behavioral aspects like side effects or error conditions. It meets the basic requirement but leaves gaps in understanding the tool's full context.

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?

The input schema has one parameter ('run_id') with 0% description coverage, meaning the schema provides no semantic details. The description doesn't add any information about this parameter (e.g., what a 'run_id' is, how to obtain it, or format examples). However, with only one parameter, the baseline is higher; the description implies the parameter identifies the run to cancel but doesn't compensate for the lack of schema details.

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?

The description clearly states the action ('cancel') and the target ('a running external coding-agent run'), which is specific and unambiguous. It distinguishes from siblings like 'continue_run' or 'get_run' by focusing on termination rather than continuation or retrieval. However, it doesn't explicitly differentiate from all siblings (e.g., 'spawn_run' is about creation, but this isn't stated).

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., that the run must be active), exclusions (e.g., not for completed runs), or comparisons to siblings like 'continue_run' for ongoing runs or 'list_runs' for status checks. This leaves the agent to infer usage context from the tool name alone.

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

continue_runB

Send an additional input message to a run that is waiting for more input.

ParametersJSON Schema
NameRequiredDescriptionDefault
run_idYes
input_messageYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
run_idYes
statusYes

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. While it correctly indicates a write operation ('send'), it lacks critical details: required permissions, whether this changes run state, rate limits, error conditions, or what happens after sending input. For a mutation tool with complex nested parameters, this leaves significant behavioral gaps.

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?

The description is a single, efficient sentence that front-loads the core purpose without unnecessary words. Every word earns its place, making it maximally concise while still conveying the essential action and context.

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?

Given the tool's moderate complexity (2 parameters with nested objects), no annotations, but presence of an output schema, the description is minimally adequate. The output schema reduces need to describe return values, but the description should provide more context about run states, prerequisites, and parameter meanings to be truly complete for this interactive operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate but provides no parameter information. It doesn't explain what 'run_id' refers to, the structure of 'input_message', valid roles, or part types. With 2 parameters including complex nested objects, the description fails to add any semantic value beyond what the bare schema provides.

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?

The description clearly states the action ('send an additional input message') and target ('to a run that is waiting for more input'), providing specific verb+resource. However, it doesn't explicitly differentiate from sibling tools like 'spawn_run' or 'cancel_run', which would require mentioning it's for existing runs in a waiting state rather than creating new runs or terminating them.

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

Usage Guidelines3/5

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

The description implies usage context by specifying 'to a run that is waiting for more input', suggesting this tool should be used when a run is in a specific state. However, it doesn't provide explicit when-not-to-use guidance or name alternatives like 'spawn_run' for new runs or 'cancel_run' for termination, leaving some ambiguity about sibling tool selection.

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

get_event_artifactC

Read a sanitized event artifact by run_id, seq, and JSON Pointer field_path.

ParametersJSON Schema
NameRequiredDescriptionDefault
run_idYes
seqYes
field_pathYes
offsetNo
limitNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
seqYes
mimeYes
offsetYes
run_idYes
contentYes
relpathYes
encodingYes
has_moreYes
field_pathYes
total_bytesYes
returned_bytesYes

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries full burden but only states it's a read operation. It doesn't disclose behavioral traits like authentication requirements, rate limits, error conditions, what 'sanitized' means, or how the JSON Pointer field_path works. The mention of 'sanitized' hints at data transformation but lacks details.

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?

Extremely concise single sentence with zero wasted words. Front-loaded with the core purpose, and every element (verb, resource, parameters) earns its place. No structural issues despite the brevity.

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?

Given 5 parameters with 0% schema coverage and no annotations, the description is incomplete—it doesn't explain parameter semantics or behavioral context. However, the existence of an output schema reduces the need to describe return values. For a read operation, this is minimally adequate but leaves important gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate but only lists parameter names without explaining their meaning. It mentions 'run_id, seq, and JSON Pointer field_path' but doesn't clarify what these identifiers represent, what 'offset' and 'limit' do, or how field_path syntax works. This leaves significant gaps in parameter understanding.

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?

The description clearly states the action ('Read') and resource ('sanitized event artifact') with specific identifiers (run_id, seq, field_path). It distinguishes from siblings like get_run or list_runs by focusing on artifacts rather than runs themselves. However, it doesn't explicitly contrast with poll_events which might also retrieve event data.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives like poll_events or get_run. The description mentions parameters but doesn't provide context about appropriate use cases, prerequisites, or when other tools might be more suitable. This leaves the agent without clear decision criteria.

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

get_runB

Get the current summary status for a known run.

ParametersJSON Schema
NameRequiredDescriptionDefault
run_idYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
cwdYes
roleYes
run_idYes
statusYes
backendYes
summaryYes
last_seqYes
metadataYes
remote_refYes
session_idYes
started_atYes
updated_atYes

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool retrieves a 'summary status,' implying a read-only operation, but doesn't specify whether it's safe, if it requires authentication, rate limits, or what happens if the run_id is invalid. For a tool with no annotations, this is a significant gap in transparency.

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?

The description is a single, clear sentence with zero waste: 'Get the current summary status for a known run.' It is front-loaded and efficiently conveys the core purpose without unnecessary elaboration, making it highly concise and well-structured.

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?

Given the tool's low complexity (1 parameter, no nested objects) and the presence of an output schema (which handles return values), the description is minimally adequate. However, with no annotations and incomplete parameter semantics, it lacks details on behavioral traits and usage context, making it only partially complete for effective agent use.

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?

The input schema has 1 parameter (run_id) with 0% description coverage, meaning the schema provides no semantic details. The description adds minimal context by implying 'run_id' refers to 'a known run,' but doesn't explain format, examples, or constraints. This partially compensates for the schema gap, but not fully, aligning with the baseline for moderate coverage.

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?

The description clearly states the tool's purpose: 'Get the current summary status for a known run.' It specifies the verb ('Get'), resource ('summary status'), and scope ('for a known run'), which is specific and actionable. However, it doesn't explicitly differentiate from sibling tools like 'list_runs' or 'poll_events', which prevents a perfect score.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It mentions 'a known run' but doesn't clarify prerequisites (e.g., that the run must already exist from a previous operation) or contrast it with siblings like 'list_runs' (for listing runs) or 'poll_events' (for monitoring events). This leaves the agent without explicit usage context.

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

list_runsC

List runs known to the current orchestration MCP process.

ParametersJSON Schema
NameRequiredDescriptionDefault
statusNo
backendNo
cwdNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
runsYes

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries full burden but discloses minimal behavioral traits. It indicates this is a listing operation but doesn't describe pagination, sorting, default behavior, rate limits, or authentication needs. For a tool with 3 parameters and no annotation coverage, this is inadequate.

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?

The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It's appropriately sized and front-loaded with the core functionality.

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?

Given the tool has an output schema (which handles return values), the description's minimalism is partially acceptable. However, with 3 parameters, no annotations, and 0% schema coverage, the description should provide more context about filtering behavior and usage scenarios to be truly complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate but adds no parameter information. It doesn't explain what 'status', 'backend', or 'cwd' mean, their relationships, or how they filter results. With 3 parameters (2 with enums) undocumented, this is a significant gap.

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?

The description clearly states the verb ('List') and resource ('runs'), and specifies the scope ('known to the current orchestration MCP process'). However, it doesn't explicitly differentiate from sibling tools like 'get_run' or 'poll_events', which prevents a perfect score.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like 'get_run' (for single run details) or 'poll_events' (for event monitoring). It mentions the scope but offers no explicit when/when-not instructions or prerequisites.

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

poll_eventsB

Long-poll incremental events for a run after a known sequence number.

ParametersJSON Schema
NameRequiredDescriptionDefault
run_idYes
after_seqYes
limitNo
wait_msNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
eventsYes
run_idYes
statusYes
next_after_seqYes

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations provided, the description carries full burden. It mentions 'Long-poll' and 'incremental events,' hinting at real-time behavior and potential waiting, but lacks details on rate limits, authentication needs, error handling, or what 'events' entail. This leaves significant behavioral gaps for an agent.

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?

The description is a single, efficient sentence that front-loads key information ('Long-poll incremental events') without unnecessary words. Every part earns its place by specifying the action, resource, and key parameter.

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?

Given 4 parameters with 0% schema coverage, no annotations, but an output schema exists, the description is moderately complete. It covers the core purpose and one parameter but misses details on other parameters, behavioral traits, and usage context. The output schema helps, but more guidance is needed for effective tool use.

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 0%, so the description must compensate. It explains 'after_seq' as 'after a known sequence number,' adding context beyond the schema's numeric constraints. However, it doesn't cover other parameters like run_id, limit, or wait_ms, leaving them undocumented. Baseline is 3 due to partial compensation.

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?

The description clearly states the action ('Long-poll incremental events') and resource ('for a run'), specifying it retrieves events after a known sequence number. It distinguishes from siblings like get_event_artifact or get_run by focusing on incremental polling rather than direct fetching, though it doesn't explicitly name alternatives.

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

Usage Guidelines3/5

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

The description implies usage for monitoring incremental events in a run after a specific sequence, suggesting it's for real-time updates. However, it doesn't explicitly state when to use this vs. alternatives like get_event_artifact or list_runs, nor does it mention prerequisites like needing an active run.

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

spawn_runB

Start a new external coding-agent run and return immediately.

ParametersJSON Schema
NameRequiredDescriptionDefault
backendYesBackend to execute the run. Supported values are "codex", "claude_code", and "remote_a2a".
roleYesSupervisor role for this run: planner, worker, or reviewer.
promptNoPrimary instruction for the coding agent run.
input_messageNoStructured input message for multi-part or A2A-compatible runs.
cwdYesAbsolute working directory where the agent should run and where artifacts are stored.
session_modeYesUse "new" to create a fresh session or "resume" to continue an existing one.
session_idNo
profileNoOptional path to a profile/persona/job-description file. Leave blank unless explicitly instructed to use a profile.
output_schemaNoOptional JSON Schema for structured final output from the run.
metadataNoOptional orchestration metadata for task/step correlation. It is stored but not interpreted by the MCP server.
backend_configNoOptional backend-specific configuration, such as remote_a2a agent_url and auth headers.

Output Schema

ParametersJSON Schema
NameRequiredDescription
roleYes
run_idYes
statusYes
backendYes
session_idYes

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. 'Start a new external coding-agent run' implies a write/mutation operation, but the description doesn't disclose permission requirements, rate limits, whether this consumes resources, what happens to previous runs, or how to monitor the started run. 'Return immediately' suggests asynchronous execution but lacks details about how to track completion or retrieve results.

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?

The description is extremely concise - a single sentence that communicates the core action and key behavioral trait ('return immediately'). There's zero wasted language, and it's front-loaded with the essential information. Every word earns its place in this minimal description.

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 complex tool with 11 parameters, nested objects, and no annotations, the description is minimal. While an output schema exists (reducing need to describe return values), the description doesn't address the tool's role in the broader workflow with sibling tools, doesn't explain the asynchronous nature hinted by 'return immediately', and provides no context about error conditions or typical usage patterns. It's adequate but leaves significant 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?

With 91% schema description coverage, the schema does most of the parameter documentation work. The description adds no parameter-specific information beyond what's in the schema. It doesn't explain relationships between parameters (like how 'session_mode' interacts with 'session_id'), typical values, or usage patterns. The baseline of 3 is appropriate given the high schema coverage.

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?

The description clearly states the action ('Start a new external coding-agent run') and resource ('coding-agent run'), with the specific behavioral detail 'and return immediately' distinguishing it from potentially blocking operations. However, it doesn't explicitly differentiate from sibling tools like 'continue_run' or 'get_run' beyond the 'start new' aspect.

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

Usage Guidelines2/5

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

The description provides minimal guidance - only that it starts a new run and returns immediately. There's no explicit guidance on when to use this versus alternatives like 'continue_run' for resuming sessions, 'cancel_run' for stopping runs, or 'poll_events' for monitoring. No prerequisites, constraints, or typical use cases are mentioned.

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

TDQS

A3.6/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose with no overlap: cancel_run stops a run, continue_run sends input, get_event_artifact reads artifacts, get_run retrieves status, list_runs enumerates runs, poll_events monitors events, and spawn_run initiates runs. The descriptions make it easy to distinguish between status retrieval, event handling, run management, and input/output operations.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern with snake_case, such as cancel_run, get_run, list_runs, and spawn_run. This uniformity makes the set predictable and easy to navigate, with no deviations in style or structure across the seven tools.

Tool Count5/5

With 7 tools, the count is well-scoped for an orchestration server focused on managing external coding-agent runs. Each tool serves a specific function in the lifecycle of runs, from creation to monitoring and termination, without being overly sparse or bloated, fitting typical orchestration needs.

Completeness5/5

The tool set provides complete coverage for the orchestration domain: it supports the full lifecycle of runs with spawn_run (create), get_run and list_runs (read), continue_run (update input), and cancel_run (delete/terminate), plus event handling with poll_events and get_event_artifact. There are no obvious gaps, enabling agents to manage runs effectively from start to finish.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dufangshi/orchestration-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server