Skip to main content
Glama

Flowchart From Text — Text-to-Mermaid Flowchart Generator

Convert structured text or outline into a Mermaid flowchart

text_to_mermaid_flowchart
Read-onlyIdempotent

Deterministically convert a plain-text step list, numbered list, indented outline, or arrow chain (A -> B -> C) with optional Yes/No decision branches into valid Mermaid flowchart syntax, returning node and edge metadata. Pure rule-based engine with no LLM calls.

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": {
      "text": "<text>"
    },
    "name": "text_to_mermaid_flowchart"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesPlain-text steps, numbered list, indented outline, or arrow chain (e.g. "Start -> Valid Input? -> Yes: Save -> Done").
titleNoOptional short diagram title used for the suggested export filename and header metadata.
directionNoOptional Mermaid flowchart layout direction: TD (top-down), TB, LR (left-to-right), RL, or BT. Defaults to TD.TD

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuinely non-redundant behavior: it is deterministic and rule-based with no LLM calls, and it returns node and edge metadata, which tells the agent to expect stable output and structured data rather than a bare string.

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?

A single front-loaded sentence with the verb and supported input forms first, followed by the determinism and return-value clauses. No filler, no repetition of the title, and nothing that could be cut without losing information.

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

Completeness5/5

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

For a small, pure, side-effect-free conversion tool with a fully described three-parameter schema, the definition covers inputs, guarantees, and the shape of the result ('node and edge metadata') despite there being no output schema. The only unstated item, behavior on unparseable input, is minor for an idempotent read-only transformer.

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%, so all three parameters (text, title, direction) are already documented in the schema, including the direction enum and defaults. The description reinforces the 'text' semantics by describing parseable formats and Yes/No branching, but adds no format rules, size limits, or failure behavior beyond that.

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

Purpose5/5

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

States a specific verb (convert) and resource (plain-text step lists, numbered lists, indented outlines, arrow chains into Mermaid flowchart syntax) with the exact accepted input formats and the decision-branch capability. The conversion purpose is unmistakably distinct from the sibling validate_mermaid_diagram, so an agent can route without opening a schema.

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

Usage Guidelines4/5

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

The enumeration of accepted input shapes ('plain-text step list, numbered list, indented outline, or arrow chain (A -> B -> C) with optional Yes/No decision branches') gives an agent a concrete test for whether this tool applies. What is missing is an explicit pointer to the validate_mermaid_diagram sibling for checking or repairing output, and there are no exclusion cases.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources