Skip to main content
Glama

Validate orchestration

validate_orchestration
Read-onlyIdempotent

Run wiring checks on an orchestration and return {ok, issues}. Checks: entry_step_id resolves, no duplicate ids, every route_map target + next_step_id + loop_step_ids + parallel_branches element resolves to an existing step (empty string = end), every reachable path terminates at an end step, and every step's input_keys are either user_input / user_query or the output_key of some step in the orchestration. Call this after adding/updating steps; fix any reported issues with update_step/add_steps/remove_step, then re-validate.

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

Input Schema

NameRequiredDescriptionDefault
orch_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/non-destructive/idempotent/closed-world, and the description goes beyond them by disclosing the return shape {ok, issues} and the complete rule set being evaluated, including the 'empty string = end' convention. Minor gap: it does not say what happens when orch_id does not exist (error vs ok:false).

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 purpose and return shape, then the check list, then the workflow tail — a sensible ordering with no filler sentences. The long single-sentence enumeration of checks is dense but each clause carries distinct information.

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

Completeness5/5

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

With no output schema, the description supplies the return contract ({ok, issues}) itself, and the check enumeration tells an agent how to interpret those issues. For a one-parameter read-only validator, nothing essential to correct invocation is missing.

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?

Only one parameter (orch_id) with 0% schema description coverage, so the description must compensate. It implies the parameter is the target orchestration via 'Run wiring checks on an orchestration', but never states the id format, where to obtain it, or whether the orchestration must exist.

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+resource ('Run wiring checks on an orchestration') and then enumerates exactly what is checked: entry_step_id resolution, duplicate ids, route_map/next_step_id/loop_step_ids/parallel_branches references, path termination, and input_keys provenance. This makes it clearly distinct from mutation siblings like update_step or get_orchestration.

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?

Explicitly says when to call it ('after adding/updating steps') and what to do with results ('fix any reported issues with update_step/add_steps/remove_step, then re-validate'), naming the concrete sibling tools for remediation. The validate→fix→re-validate loop is fully spelled out.

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.