Skip to main content
Glama

generate_flowchart

Generate a flowchart from a natural-language process description, with Mermaid or Python Diagrams output and an optional custom title.

Instructions

Generate a flowchart from a process description.

Args:
    description: Natural language description of a process or workflow
                Example: "User places order, check inventory, if available process payment, send confirmation"
    output_format: Output format - "mermaid" or "python_diagrams" (default: "mermaid")
    title: Optional custom title for the flowchart

Returns:
    Dictionary with generated flowchart code and metadata

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": {
      "description": "<description>"
    },
    "name": "generate_flowchart"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNo
descriptionYes
output_formatNomermaid

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.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 provided, so the description carries the full burden. It discloses the default output format and that the result is code plus metadata, but says nothing about whether generated code is persisted, whether the description has length or complexity limits, or how failures (unparseable process steps) are reported. Generation-only semantics are implied but not declared.

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?

The leading sentence states the purpose up front, and the Args block is dense and readable. The Returns block is largely redundant with the existing output schema, which is minor waste but not harmful.

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?

Because an output schema exists, the return-value sentence is unnecessary, and the real gaps are elsewhere: no differentiation from sibling generators, no statement of scale limits for the description, and no explanation of what each output format yields. Adequate for a simple three-parameter generator, but not complete.

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 0%, so the description must compensate, and it does document all three parameters: description with a concrete example, output_format with its two allowed values and default, and title as optional. However, it omits what the enum-like values actually produce differently (Mermaid text vs. Python Diagrams code), which is the most decision-relevant detail for output_format.

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: 'Generate a flowchart from a process description.' An agent immediately knows the artifact produced. It does not, however, distinguish itself from siblings such as generate_diagram or generate_sequence_diagram, so the boundary between them is left to inference.

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 guidance on when to choose this tool over generate_diagram, generate_sequence_diagram, or generate_diagram_code. The input example implies the tool suits ordered/branching process steps, but that condition is never stated explicitly, and no exclusions or prerequisites are given.

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