Skip to main content
Glama

validate_process_definition

Read-onlyIdempotent

Validates a process definition before publishing: checks structure, execution rules, and tenant ownership of referenced agents, approval policies, and MCP servers. Returns errors with paths, reasons.

Instructions

Validate a process definition without saving: structure, execution rules and tenant ownership of referenced agents, approval policies and MCP servers. Returns errors with paths and reasons. Run before publishing.

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": {
      "spec": "<spec>"
    },
    "name": "validate_process_definition"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYesComplete process definition, including key, title, description, variables_schema and steps

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.4
    • changedInput schema / properties / spec / description
      Previous value: -"A definição completa (key, title, description, variables_schema, steps…)"New value: +"Complete process definition, including key, title, description, variables_schema and steps"
  2. Addedv2.2.3

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so safety is covered; the description adds genuinely new behavior by stating that nothing is persisted and that errors come back with paths and reasons. It does not say whether validation short-circuits on the first error, reports all errors at once, or distinguishes error severity, which is the sort of detail a validation tool would benefit from.

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?

Three short sentences, front-loaded with the action and its key constraint ('without saving'), followed by return behavior and timing advice in that order of usefulness. No filler or repeated schema content.

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?

For a one-parameter, non-destructive validation tool with no output schema, the definition covers purpose, side-effect profile, result shape (errors with paths and reasons) and recommended call timing. An agent has everything needed to invoke it correctly without further inference.

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

Parameters4/5

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

With a single required parameter at 100% schema coverage, the schema already defines 'spec' and its constituents, so the baseline applies. The description adds mild value by implying which aspects of the spec are inspected (structure, execution rules, cross-entity tenant ownership), but it adds no format or syntax guidance beyond that.

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 description names a specific verb (validate) and resource (process definition) and immediately scopes it with 'without saving', which cleanly separates it from publish_process_definition. It also enumerates what gets checked (structure, execution rules, tenant ownership of referenced agents, approval policies, MCP servers), so an agent can tell exactly what this tool does before opening the schema.

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

Usage Guidelines4/5

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

'Run before publishing' gives an explicit sequencing cue that implicitly points at publish_process_definition as the follow-up action. It stops short of naming the alternative tool outright or stating when not to use it (e.g. no need to validate an unchanged spec), so it is strong but not a full when/when-not pair.

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