Skip to main content
Glama

validate_workflow

Checks a dynamic workflow for missing node references and invalid output indices, so broken connections are caught before execution.

Instructions

Validate a dynamic workflow: checks that all node references exist and output indices are valid.

Input Schema

NameRequiredDescriptionDefault
workflow_idYesWorkflow id from create_workflow

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden; it does disclose the two categories of checks performed, which is real behavioral content beyond the name. However, it says nothing about what happens on failure (error list? raise?), whether it is read-only, or whether it mutates the workflow, leaving meaningful gaps for a no-annotation tool.

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?

A single front-loaded sentence with the scope of validation following the colon; every clause earns its place. It is arguably too terse rather than padded, but structurally clean.

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 simple one-parameter tool with no annotations, the description covers purpose but omits the return semantics (valid/invalid shape, error reporting) and workflow-state prerequisites, which matter since there is no output schema to fall back on.

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 single workflow_id parameter is already documented as coming from create_workflow, so the description adds nothing beyond the schema. Baseline 3 applies when the schema does the work.

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?

States a specific verb (validate) and resource (workflow) and enumerates what is checked: node references exist and output indices are valid. This distinguishes it from siblings like check_compatibility or validate_template_params, though it never explicitly names those alternatives.

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?

There is no guidance on when to call this versus check_compatibility or finalize_workflow, and no statement about ordering (e.g., before execute_workflow) or when validation is unnecessary. Usage is only inferred from the tool name.

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