Skip to main content
Glama

Export Workflow File

export_workflow
Read-onlyIdempotent

Export an owned saved workflow or a supplied valid spec without generation credits. Returns a file resource, not an embedded app. Use explicit export only when requested; normal conversational compilation returns Mermaid for the host to render. PDF remains vector. Requires workflow:read.

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": {
      "format": "<format>"
    },
    "name": "export_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoID of a saved workflow owned by the current account.
specNoA source-cited VisualSpec v0.1. Preserve original excerpts and attribution.
styleNoUnseen-rendered style; Mermaid appearance is controlled by the chatbot's renderer.
formatYes
viewModeNoUnseen-rendered layout. Snake wrapping and swimlane geometry are not encoded in Mermaid.
authTokenNoOptional existing session token for non-OAuth transports.
orientationNoMermaid emits TD for portrait or LR for landscape; choose uses existing auto-orientation. Final geometry depends on the host renderer.
layoutOverridesNoExisting canvas positions/sizes keyed by node ID; coordinates and sizes must be finite and bounded. Not encoded in Mermaid.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, and closed-world behavior, and the description adds genuinely new context beyond them: no generation credits are consumed, the result is a file resource rather than an embedded app, and the call requires the workflow:read scope. It stops short of documenting output size, naming/versioning of the produced file, or rate limits.

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?

Five short sentences, all front-loaded with the core action and return type before caveats. The terse fragments ("PDF remains vector.") are efficient but slightly cryptic in isolation, which keeps it just below the top score.

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 an eight-parameter, read-only tool with no output schema, the description supplies what an agent most needs: return shape, credit implications, auth scope, and the fact that Mermaid-encoded output cannot carry style/layout/viewMode details. The main residual gap is how id and spec interact if both are supplied, plus any file-naming behavior.

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?

Schema coverage is already 88%, so the baseline is 3, but the description adds a real semantic point the schema does not state: an owned saved workflow (id) and a supplied spec are alternative inputs to the same operation. "PDF remains vector" also clarifies the practical meaning of one format value, which the enum alone does not convey.

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 states a specific verb and resource ("Export an owned saved workflow or a supplied valid spec") and immediately disambiguates the output type ("Returns a file resource, not an embedded app"). It also contrasts itself with the normal conversational compilation path, so an agent can tell export apart from diagram-producing siblings without consulting schemas.

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?

It gives an explicit use rule: "Use explicit export only when requested," and describes the default alternative path (conversational compilation returns Mermaid for the host to render). It does not name the sibling tool that performs that default path, leaving a small inference step, but the when/when-not condition is clear.

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.