Skip to main content
Glama

adaptorch_run

Submit one task to the AdaptOrch control plane, which routes it through an execution topology, runs it with the configured model provider and synthesizes the outputs. Pass either prompt (with optional context) for a single task, or payload with a subtask DAG. By default the call waits up to timeout_seconds and returns the run summary: run_id, status and artifact references. If the wait ends first, collection_status is 'pending' and the run keeps going; read it with adaptorch_get_run instead of submitting again. Every submission creates a new run and counts against the plan's monthly run quota; model tokens bill to the caller's own provider account. Use adaptorch_get_artifacts for the files of a finished run.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "adaptorch_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoModel ID, or 'auto' on control-plane backends to resolve this tenant's provider default or confirmed run history. Provider credentials are still required.
traceNoAsk the control plane to record execution traces for this run; read them with adaptorch_get_traces.
promptNoTask instruction in plain language. Required unless payload is given; ignored when payload is present.
contextNoOptional background for prompt, such as file excerpts or constraints. Used only together with prompt.
payloadNoTask DAG. subtasks is required and non-empty; dependencies may be omitted.
budget_policyNoOptional flat key/value limits forwarded to the control plane with the run. Values must be numbers, strings or booleans; omit to use the plan defaults.
connector_nameNoConnector that turns prompt and context into a task payload and is recorded as the run's origin. adaptorch_capabilities lists the available connectors.mcp
synthesis_modeNoSynthesis strategy executed by the installed engine. Supported modes: paper, robust, robust_lite, stable_hybrid. Deprecated aliases resolve to a supported mode: fourier_aggressive -> stable_hybrid. The serving-layer value 'auto' asks the control plane to pick a supported engine mode per run (control-plane backends only; the choice is reported via synthesis_mode_used). Hosted callers that omit the field receive robust.robust
timeout_secondsNoMaximum seconds to wait, greater than 0. Ending the wait does not cancel the run.
ensemble_membersNoBYOK request-scoped ensemble fan-out: 2-5 'provider:model' members riding the process provider credential (ADAPTORCH_MCP_PROVIDER, ADAPTORCH_MCP_PROVIDER_MODEL, ADAPTORCH_MCP_PROVIDER_API_KEY). Quota: one run debits one unit regardless of member count; model token cost bills to the caller's own provider account.
output_extractorNoEnsemble output extraction mode hint. Engine extractors: final_answer, multiple_choice_letter. Use 'none' to request no extractor; it is not forwarded to the engine.
wait_for_terminalNotrue waits for a terminal status (up to timeout_seconds); false returns right after submission with the run_id.
poll_interval_secondsNoSeconds between status reads while waiting, greater than 0.
verification_commandsNoOptional list of shell commands to verify the generated output. Disabled by default; accepted only when ADAPTORCH_MCP_ALLOW_VERIFICATION_COMMANDS is truthy. Control-plane consumers must run commands only under allowlist/sandbox.
prefer_ensemble_singletonNoHint the router to prefer multi_model_ensemble for single-node DAGs. true = explicit on, false = explicit off (the ensemble auto preference will not re-enable it), null/omitted = auto policy.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=false), the description adds high-value behavior: every call creates a new run, consumes a unit of the plan's monthly quota, bills model tokens to the caller's own provider account, and a timed-out wait does not cancel the run (collection_status 'pending'). The only gap is that it doesn't note side effects for less common options like ensemble fan-out or verification commands.

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?

The description is front-loaded with purpose and then flows logically through input modes, wait semantics, and alternatives. Every sentence carries information, but the quota/billing sentence and the artifact pointer make it slightly long relative to what an agent needs before calling.

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 15-parameter tool with nested objects and no output schema, the description covers the critical operational facts: default blocking behavior, the return summary fields (run_id, status, artifact references), quota impact, and where to go for files or a pending run. It leaves advanced options (ensemble_members, budget_policy, synthesis_mode) entirely to the schema, which is acceptable given that schema's thoroughness.

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 per-parameter text is already very detailed (including enum deprecation aliases and the verification-command env gate), so the description adds little parameter-level meaning. Its contribution is the interaction between timeout_seconds, wait_for_terminal, and the pending collection_status, which is behavioral context rather than parameter explanation.

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?

The opening sentence gives a specific verb and resource ('Submit one task to the AdaptOrch control plane') and immediately explains the downstream behavior: routing through an execution topology, running with the configured provider, and synthesizing outputs. It explicitly distinguishes itself from adaptorch_get_run and adaptorch_get_artifacts, so an agent knows this is the submission entry point rather than a read tool.

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?

It states the two mutually exclusive input paths (prompt with optional context vs payload with a subtask DAG) and the key exclusion: if the wait times out, 'read it with adaptorch_get_run instead of submitting again.' It also routes artifact retrieval to adaptorch_get_artifacts, so the when-to-use-with-what decision is fully specified.

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.