Skip to main content
Glama

finalize_workflow

Retrieve the JSON for a dynamic workflow to execute or save it. Use after creating a workflow.

Instructions

Get the workflow JSON for a dynamic workflow (same as get_workflow_json). Use with execute_workflow or save_workflow.

Input Schema

NameRequiredDescriptionDefault
workflow_idYesWorkflow id from create_workflow

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It doesn't say whether finalizing mutates workflow state, whether it's idempotent, whether it validates before returning JSON, or what happens on an invalid/unbuilt workflow.

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?

Two short sentences, front-loaded with what is returned, then where to use it. No filler, though the parenthetical duplication reference muddies rather than clarifies.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool whose name implies a state-changing finalize step, with no annotations and no output schema, the description omits the essentials: whether state changes, whether validation occurs, and what the returned JSON represents. An agent cannot safely decide to call this over get_workflow_json.

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 coverage is 100% and the single workflow_id parameter is already documented as coming from create_workflow. The description adds no extra parameter meaning, so the schema does the work and baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description says it gets the workflow JSON for a 'dynamic workflow' and equates it to get_workflow_json, but it never explains what 'finalize' means or how finalizing differs from a plain read. Since it explicitly says it's the same as a sibling, an agent can't tell why both exist.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Use with execute_workflow or save_workflow' hints at the downstream context, which implies this belongs in a finalize-then-run pipeline. It gives no explicit when/when-not versus get_workflow_json, which is the natural alternative for the same output.

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