Skip to main content
Glama

ai_diagram

Read-only

Text to Mermaid diagram — Turn a plain-language description into Mermaid diagram source (type=flowchart default, sequence, class, er, state, gantt, mindmap, timeline, pie). Returns ready-to-render Mermaid code for GitHub/GitLab markdown, Notion, Obsidian or mermaid.live, with line and edge counts. Llama 3.3 70B on Workers AI. Price: $0.008 USDC (Base, via x402).

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": "ai_diagram"
  }
}

Input Schema

NameRequiredDescriptionDefault
descriptionYesUser signs up, verifies email, then completes onboarding or abandons

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint, destructiveHint, openWorldHint), the description discloses the underlying model (Llama 3.3 70B on Workers AI), the cost ($0.008 USDC via x402), the output shape (ready-to-render Mermaid code with line and edge counts), and target platforms. This adds meaningful context for an agent deciding whether to call the tool.

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 description is front-loaded with the core action, then efficiently lists diagram types, output targets, model, and price. It is slightly dense with parenthetical content, but every clause conveys useful information for invocation or cost awareness.

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 text-to-diagram tool with annotations covering safety, the description provides good output and cost context. However, it omits any explanation of how the 'type' selection actually works given that the schema exposes no such parameter, leaving a gap that could cause incorrect invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has only one parameter ('description') and already documents it at 100% coverage. The description adds no syntax guidance for that parameter but does introduce a 'type' parameter (flowchart, sequence, etc.) that is absent from the schema, which could mislead an agent into supplying an invalid argument.

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?

The description opens with a specific verb+resource phrase ('Turn a plain-language description into Mermaid diagram source') and names the output format. Among the sibling tools there is no other diagram generator, so the purpose is immediately distinguishable.

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?

The description implies when to use it (converting text to diagrams) and hints at diagram type selection via 'type=flowchart default, sequence, ...', but it never explicitly states when-not to use it or names an alternative. Since no sibling appears to do the same job, the guidance is adequate but incomplete.

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