Skip to main content
Glama

preview_flow

Read-onlyIdempotent

Check whether a flow can be wired together, and see what create_flow would produce — without creating anything. Returns compatibility, per-model wiring, required inputs and final outputs, plus the node structure and connections. Takes the same nodes and connections arguments as create_flow, so a hand-wired graph can be checked before it is created: a port-type mismatch comes back with the model's real port layout instead of a failed create.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nodesYesJSON array of models IN ORDER. Two formats: (1) SHORTHAND: '["ModelA","ModelB"]' (2) FULL: '[{"id":1,"type":"ai_model","model_id":"ModelA"}]'. Same as create_flow: FULL nodes may declare input/output nodes too ({"id":1,"type":"input","model_id":"Image-Loader"}), and the preview then reports that graph instead of generating one.
connectionsNoJSON array of explicit connections, same shape as create_flow: [{"out_node_id":1,"out_port_index":0,"in_node_id":2,"in_port_index":0}]. Pass the wiring you intend to create and the preview judges it by the same rules create_flow uses.
include_optionalNoWhether to auto-generate input nodes for OPTIONAL model input ports. Default true: every optional port also gets its own loader node (e.g. a multimodal model with an optional image input gets an Image-Loader). Set false to scaffold only REQUIRED inputs. DECIDE this yourself from the task — you do not need the user to ask: set false when the goal clearly uses only some modalities (e.g. 'summarize this text' on a text+optional-image model → skip the image loader), or when the user's input_files cover only the required ports. Keep true when the goal is genuinely multimodal, when the user supplied inputs for optional ports, or when you are unsure — so no modality is silently dropped. When in doubt, leave it true (or omit).

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint: true, idempotentHint: true, and destructiveHint: false. The description adds substantial behavioral detail beyond those: it enumerates the return payload ('compatibility, per-model wiring, required inputs and final outputs, plus the node structure and connections') and explains the error-handling behavior for port mismatches ('comes back with the model's real port layout instead of a failed create'). No contradictions exist with the annotations.

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?

The description is three sentences, with the most critical information front-loaded: the purpose and non-destructive nature first, then the return values, then the specific usage context and mismatch behavior. Each sentence contributes substantive information, with no filler or redundancy.

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 responsibly enumerates the return content and covers a key edge case (port-type mismatch behavior). Combined with the strong annotations and full schema coverage, the description provides enough context for an agent to understand what the tool does, when to invoke it, and what results to expect. No major gaps remain.

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 schema itself provides rich explanations for nodes, connections, and include_optional, including decision guidance for optional inputs. The tool description adds only that the nodes/connections arguments are 'the same as create_flow', which is already mentioned in the schema. Since the schema does the heavy lifting, baseline 3 is appropriate.

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 opens with 'Check whether a flow can be wired together, and see what create_flow would produce — without creating anything.' This uses a specific verb and resource while explicitly distinguishing preview_flow from create_flow by framing it as a dry-run validation tool. It is immediately clear that this is a non-destructive preview sibling to create_flow.

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?

The description gives clear context: it is for checking a hand-wired graph before creation, and it notes that nodes/connections arguments are shared with create_flow, so a port-type mismatch returns the model's real port layout instead of a failed create. However, it does not explicitly state when not to use it or compare it to other siblings like find_compatible_models, so it stops short of full when/when-not guidance.

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.

TDQS

A4/5.0
Disambiguation5/5

Each tool targets a distinct resource and action, with clear separation between flow lifecycle, execution, model exploration, community, and account tools. Even similar-sounding tools like create_flow, preview_flow, and suggest_flow have clearly different purposes (actually creating, dry-running, and recommending models). Descriptions prevent misselection.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern in snake_case (e.g., create_flow, list_flows, run_batch, cancel_flow). No mixed conventions or vague verbs like 'process' or 'handle'. The naming is uniform and predictable.

Tool Count3/5

At 33 tools, this is a large surface, but each tool addresses a distinct feature of the cnaps.ai platform, from flow CRUD and execution to community features and notifications. Still, it exceeds the typical well-scoped range and feels heavy, making it a borderline case between appropriate and too many.

Completeness3/5

The core flow lifecycle (create, read, update, delete, restore, duplicate) and execution (run, batch, cancel) are covered, but structural editing of flow graphs is missing—update_flow only changes parameters, not topology. Additionally, there is no run history, batch list/cancel, or community post update/delete, leaving notable gaps for a platform API.

Resources