Skip to main content
Glama

Validate Flow definition

validate_flow_definition
Read-onlyIdempotent

Validates and normalizes a complete inviomail Flow automation definition against sendout://flows/definition/schema/v2, compiles the graph, and checks tenant references including central and per-step sender identities. Top-level senderIdentityId selects the central sender (null or omission uses the tenant default); senderIdentityId on a send_flow_email node overrides it for that step only, and omission inherits. Reusable Flow Emails have no sender setting. It does not save. Use normalizedDefinition for create_flow or update_flow_draft when valid is true.

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": {
      "definition": "<definition>"
    },
    "name": "validate_flow_definition"
  }
}

Input Schema

NameRequiredDescriptionDefault
definitionYes
sourceFlowIdNoExisting Flow ID when validating an update

Output Schema

NameRequiredDescriptionDefault
validYes
issuesYes
warningsYes
requestIdYes
referencesYes
normalizedDefinitionYes

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?

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so safety is covered; the description adds real substance beyond that by disclosing that it compiles the graph, resolves tenant references, and never persists anything. It does not discuss failure reporting (e.g., what an invalid definition returns), though an output schema exists to cover that.

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 purpose is front-loaded in the first clause, followed by sender-resolution rules and then the downstream usage instruction — a logical order. Dense but nearly every sentence carries distinct information; the 'Reusable Flow Emails have no sender setting' sentence is the only marginal one, though it prevents a plausible mistake.

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 validation/normalization tool with rich annotations and an output schema, the description covers what is validated, how sender identity resolves, that nothing is saved, and what to do with the normalized result. The only gap is explicit guidance on interpreting validation failures, which the output schema presumably handles.

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?

The schema description coverage is 50% and the `definition` param is an opaque object with no description, so the description must compensate — and it does, spelling out senderIdentityId at the top level (null/omission = tenant default), override-vs-inherit semantics on send_flow_email nodes, and that reusable Flow Emails carry no sender. The `sourceFlowId` param is documented in-schema, so no repetition is needed.

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 specific verbs and resource: 'validates and normalizes a complete inviomail Flow automation definition', names the target schema (sendout://flows/definition/schema/v2), and adds compilation and tenant-reference checks. This is clearly distinguishable from siblings like validate_flow_email_content or validate_campaign_content, which validate other artifact types.

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?

'Use normalizedDefinition for create_flow or update_flow_draft when valid is true' gives explicit downstream routing and the gating condition, and 'It does not save' clarifies this is a pre-flight check. It does not explicitly state when to prefer this over the other validate_* siblings, but the artifact-type scoping makes the boundary evident.

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.

Resources