Skip to main content
Glama

get_workflow

Load a saved workflow and return its raw JSON for use with enqueue, modify, or save actions.

Instructions

Load a saved workflow and return its raw JSON. Use analyze_workflow instead if you just need to understand the workflow — it returns a structured summary without flooding context with JSON. Use get_workflow only when you need the actual JSON for enqueue_workflow, modify_workflow, or save_workflow.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNoOutput format: 'api' (default, recommended) converts to compact API format with named inputs, connection references, and _meta.mode flags for muted/bypassed nodes. 'ui' returns the raw UI format with layout positions and links arrays.api
filenameYesWorkflow filename (e.g. 'my_workflow.json'). Use list_workflows to see available files.
Behavior3/5

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

No annotations are provided, so the description bears full burden. It states the tool returns 'raw JSON' and describes output format options ('api' vs 'ui'), but does not mention side effects, destructive behavior, authorization needs, or whether the operation is read-only. The transparency is adequate but not explicit about behavioral traits.

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, each serving a distinct purpose: stating the function, contrasting with a sibling, and specifying when to use. It is front-loaded with the core action and contains no extraneous information.

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?

Given the tool's simplicity (load a workflow, return JSON) and absence of an output schema, the description adequately explains the return value by detailing the format options. It does not cover error handling or prerequisites, but the tool is straightforward. The sibling context is large, but the description distinguishes the most relevant alternative.

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 has 100% description coverage, and the description adds value beyond it: it gives a filename example, explains the 'format' parameter's 'api' vs 'ui' options, and recommends using 'list_workflows' to see available files. This provides useful context that aids correct parameter use.

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 clearly states the action: 'Load a saved workflow and return its raw JSON.' It specifies the verb (load) and resource (workflow), and distinguishes itself from the sibling tool 'analyze_workflow' by noting this tool returns raw JSON.

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?

The description explicitly tells when to use this tool vs. 'analyze_workflow': use 'analyze_workflow' for understanding, use 'get_workflow' only when the actual JSON is needed for enqueue_workflow, modify_workflow, or save_workflow. This provides clear guidance on alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/artokun/comfyui-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server