Skip to main content
Glama

get_workflow_json

Retrieve the current workflow JSON for a dynamic workflow by workflow_id so it can be executed or saved.

Instructions

Get the current workflow JSON for a dynamic workflow (for 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

B3.3/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 burden, yet it says nothing about read-only semantics (only implied by 'Get'), behavior for invalid or missing workflow ids, or whether the returned JSON is a live snapshot that can drift from the persisted copy. Only the bare minimum is conveyed.

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?

One short sentence, front-loaded with the verb and resource, with no filler. Nothing could be removed without losing information.

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

Completeness3/5

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

For a single-parameter retrieval tool the description covers the essential shape, and 'workflow JSON' effectively names the return value in the absence of an output schema. It stops short of stating error behavior or whether re-fetching is needed after edits, which an agent would need for reliable chaining.

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 single workflow_id parameter is documented as 'Workflow id from create_workflow', so the description adds nothing about the parameter. Baseline 3 applies.

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?

States a specific verb ('Get') and resource ('the current workflow JSON') scoped to a dynamic workflow. The parenthetical naming execute_workflow and save_workflow hints at where the result goes, which helps separate it from list_saved_workflows/load_workflow, though that distinction is never made explicit.

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?

Usage is only implied: the agent can infer 'call this before execute_workflow or save_workflow'. It never says when NOT to use it, e.g. that load_workflow is the path for previously saved workflows, leaving the sibling overlap unresolved.

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