Skip to main content
Glama

export_workflow_json

Read-onlyIdempotent

Export a ComfyUI workflow as JSON: choose UI format to preserve canvas layout and notes for sharing, or API format for POST /prompt automation.

Instructions

The workflow as JSON: 'ui' (shareable, opens in the editor, keeps layout & notes) or 'api' (for POST /prompt automation).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNoui
workflow_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed3 schema fields changedv0.15.1
    • removedInput schema / properties / format / title
      Removed value: -"Format"
    • removedInput schema / properties / workflow_id / title
      Removed value: -"Workflow Id"
    • removedInput schema / title
      Removed value: -"export_workflow_jsonArguments"
  2. First observedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare the tool read-only and idempotent, and the description adds meaningful behavioral detail by explaining the purpose and effect of each output format. The described behavior is consistent with the read-only annotation since it presents an export/rendering action rather than a mutating one.

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?

A single, tightly written sentence places the core concept first and packs precise format guidance into a minimal structure. There is no filler or repetition.

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 that an output schema is present and the annotations cover read-only and idempotency, the description provides sufficient context for selecting between formats. The main gap is that it doesn't mention how the workflow_id is obtained or when to choose this tool over alternative workflow-related tools.

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?

The schema has 0% description coverage, so the description must compensate for parameter meaning. It thoroughly explains the 'format' parameter's enum values, but it does not explicitly describe 'workflow_id', even though the name and type make its role largely self-evident.

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?

The description clearly states the tool returns a workflow as JSON and distinguishes between the 'ui' and 'api' export formats. It relies on the tool name and the two format options to convey the export action, and it does not explicitly differentiate this tool from sibling tools, but the core purpose is unambiguous.

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 concrete guidance on which format to use: 'ui' for a shareable editor-compatible JSON and 'api' for POST /prompt automation. It provides clear context for the tool's main decision but does not explain when to reach for this tool over siblings like save_workflow or inspect_workflow.

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

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/EnragedAntelope/comfy-draftsman'

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