Skip to main content
Glama

generate_workflow_docs

Generate documentation for a named workflow to clarify its steps, conditions, and actions. Use this to review or share workflow logic without manual tracing.

Instructions

Generate documentation for a Workflow

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": {
      "workflow_name": "<workflow_name>"
    },
    "name": "generate_workflow_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
workflow_nameYesWorkflow name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it says nothing about what 'generate' entails: whether an artifact is written to disk or returned in the response, whether existing docs are overwritten, whether permissions are required, or whether the call is read-only. 'Generate' hints at a mutating/side-effecting operation but the description never confirms or qualifies that.

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?

It is a single short sentence with no filler or redundancy, so nothing is wasted. The tradeoff is that its brevity comes from under-specification rather than disciplined editing, but there is no verbosity to penalize.

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?

The tool is simple (one param, fully documented schema, no nested objects), but with no annotations and no output schema, the description is the only place an agent could learn what the generated documentation looks like or where it goes. It supplies none of that, so the definition is incomplete on the one dimension that structured fields do not cover.

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?

There is a single required parameter, workflow_name, and schema description coverage is 100%, so the schema already documents it. The description adds no meaning beyond that (e.g., what form the name takes, whether it must match an existing workflow). Per the high-coverage baseline rule, 3 is appropriate.

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 states a verb ('Generate') and a resource ('documentation for a Workflow'), which is slightly more informative than the tool name alone because it disambiguates 'docs' and fixes the scope to workflows. However, it offers no differentiation from near siblings such as generate_doctype_docs, and 'documentation' is left completely undefined (format, contents, destination). Minimal but not tautological.

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, no prerequisites (must a workflow already exist? does it need to be validated?), and no mention of alternatives such as generate_doctype_docs or validate_workflow. The agent must infer the usage context purely from the name.

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