Skip to main content
Glama

get_workflow

Reads a workflow by ID and returns its full definition, step statuses, results, and ready steps as JSON or a human-readable Markdown document with a Mermaid diagram.

Instructions

读取工作流全文。format=json 返回结构化对象(含每步六态状态、结果与当前 ready 列表),format=md 额外返回人类可读的 WORKFLOW.md(含 mermaid 图)。

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": {
      "id": "<id>"
    },
    "name": "get_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
formatNo默认 md

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the return payloads usefully (structured object with per-step six-state status, results, and the current ready list; md adds WORKFLOW.md with a mermaid diagram), which is real behavioral value, but it says nothing about read-only semantics, permission/auth requirements, or what happens if the id is unknown or the workflow is in trash.

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?

A single compact sentence with the core action front-loaded, followed by the two format branches in the order an agent would evaluate them. No filler; the parentheticals each carry concrete detail about return contents.

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?

With no output schema and no annotations, the description does the necessary work of explaining what the returned object contains, which is the key unknown for a read tool. The remaining gap is modest: the meaning/format of the required id and failure behavior are left implicit.

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 50%: format is documented only as '默认 md' in the schema, and the description usefully expands each enum value by describing the divergent payloads, which is genuine added meaning. The required id parameter, however, gets no explanation (workflow id vs run id vs name) in either schema or description, leaving half the surface undocumented.

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 and resource: reads the full workflow content (读取工作流全文), and the format clauses pin down exactly what is returned. It is clearly a full-content read, distinguishable from list_workflows or workflow_status by the word 全文, though it never names a sibling to contrast with explicitly.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: nothing says when to prefer this over workflow_status, list_workflows, or validate_workflow, nor any precondition such as the workflow needing to exist or not be trashed. The only selection hint is the internal json-vs-md choice, which is a parameter decision rather than tool-selection guidance.

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