Line9
Server Details
Render Mermaid with Line9 layout in your assistant.
- Status
- Healthy
- Uptime
- 100.0% over 42 days
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
TDQS
Scored across 3 tools
list_diagrams (discover), get_diagram (fetch a published diagram) and render_diagram (render arbitrary Mermaid source) have largely distinct targets and actions. The only soft boundary is that both get_diagram and render_diagram return a rendered diagram, so an agent must distinguish 'existing published diagram' from 'source I just wrote' — the descriptions make this clear, though not instantly.
All three tools follow a strict verb_noun, all-lowercase snake_case pattern: list_diagrams, get_diagram, render_diagram. The naming is fully predictable and readable.
Three tools is on the thin side but each covers a distinct step — discover, fetch, render — and the server's remit is deliberately narrow (viewing and rendering, no authoring). Nothing appears redundant or missing within that scope, though the surface is minimal enough that it borders on sparse.
For a read/render-only connector the lifecycle is covered: discovery, retrieval, and render-with-verdict validation. The absence of create/update/publish is an explicit, documented dead end handled via open_url, so agents can work around it, but there is no programmatic way to persist an edit.
Available Tools
3 toolsget_diagramGet a diagramARead-onlyIdempotentInspect
Fetch a published diagram's current Mermaid source by name or slug, and show it rendered. The returned source is stamped with the diagram's identity — keep the line9: frontmatter block when you edit it so that Line9 recognises the diagram when it is opened and published there instead of creating a new one. Requires Line9 sign-in. This connector cannot publish or save. To publish, the user opens the diagram in Line9 (the open_url link) and publishes there — not with the Line9 CLI.
| Name | Required | Description | Default |
|---|---|---|---|
| diagram | Yes | Diagram name, slug, or trailing public_ref. |
Output Schema
| Name | Required | Description |
|---|---|---|
| svg | No | |
| path | No | |
| plan | No | |
| error | No | |
| width | No | |
| config | No | |
| height | No | |
| source | No | |
| status | Yes | |
| themes | No | |
| diagram | No | |
| controls | No | |
| diagrams | No | |
| open_url | No | |
| warnings | No | |
| signed_in | No | |
| truncated | No | |
| watermark | No | |
| edge_count | No | |
| node_count | No | |
| orientation | No | |
| render_mode | No | |
| stop_reason | No | |
| diagram_type | No | |
| engine_version | No | |
| schema_version | Yes | |
| fallback_reason | No | |
| mermaid_version | No | |
| pro_theme_refused | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already cover the read-only/idempotent/non-destructive profile, but the description goes well beyond that: it discloses the auth requirement, the hard capability limit (no publish or save), the side-effect-free nature of edits unless the line9: frontmatter is preserved, and the identity-stamping consequence of dropping that block. This is exactly the kind of mutation-adjacent context annotations cannot express.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loaded with the core action, then layered with the frontmatter warning and capability limits; every sentence carries information relevant to calling it correctly. It is dense but not padded, though the CLI aside is slightly tangential to the call itself.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With an output schema present, return values need not be explained, and the description still extends it by noting the rendered view and the open_url link. Auth, capability boundaries, and the identity-preservation caveat are all covered, leaving nothing an agent needs in order to call it correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Only one parameter and schema description coverage is 100%, so the schema already documents 'name, slug, or trailing public_ref'. The description repeats 'by name or slug' but adds no format or resolution-order detail beyond the schema — baseline 3.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (fetch) and resource (a published diagram's Mermaid source) with both lookup modes (name or slug) and the rendering behavior. It is clear on its own, but it never names or distinguishes itself from the siblings list_diagrams and render_diagram, and 'show it rendered' arguably overlaps with render_diagram's territory.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives real usage context: Line9 sign-in is required, the connector cannot publish or save, and the publish workflow is via the Line9 UI/open_url rather than the CLI. It stops short of routing between sibling tools (when to call this vs render_diagram vs list_diagrams), which keeps it out of the top band.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_diagramsList my diagramsARead-onlyIdempotentInspect
List the diagrams published in the user's Line9 workspace(s): name, visibility, version, last update and permalink. Use it to find a diagram before get_diagram. Requires Line9 sign-in.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum rows to return (1–100; default 50). | |
| query | No | Case-insensitive substring of the diagram name. |
Output Schema
| Name | Required | Description |
|---|---|---|
| svg | No | |
| path | No | |
| plan | No | |
| error | No | |
| width | No | |
| config | No | |
| height | No | |
| source | No | |
| status | Yes | |
| themes | No | |
| diagram | No | |
| controls | No | |
| diagrams | No | |
| open_url | No | |
| warnings | No | |
| signed_in | No | |
| truncated | No | |
| watermark | No | |
| edge_count | No | |
| node_count | No | |
| orientation | No | |
| render_mode | No | |
| stop_reason | No | |
| diagram_type | No | |
| engine_version | No | |
| schema_version | Yes | |
| fallback_reason | No | |
| mermaid_version | No | |
| pro_theme_refused | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint/idempotentHint/destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds a genuinely useful prerequisite the annotations cannot express: 'Requires Line9 sign-in.' It does not discuss pagination or result ordering, but the auth note is real added value for a read tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two tight sentences: the first states what is returned, the second states when to call it, followed by the auth prerequisite. Nothing is padded and the most important content (scope and returned fields) is front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, so the field list in the description is a bonus rather than a necessity, and the auth requirement is the key operational caveat. The definition is essentially complete for a two-parameter, zero-required-parameter list tool, with only minor omissions like result ordering or pagination behavior.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% – limit (1–100, default 50) and query (case-insensitive substring of diagram name) are fully documented in the schema. The description adds no additional semantics for either parameter, so the baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Names a specific verb and resource ('List the diagrams published in the user's Line9 workspace(s)'), enumerates the returned fields, and differentiates itself from the sibling get_diagram by positioning itself as the discovery step before it. An agent can tell what this does and where it sits in the workflow without opening the schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives an explicit use case ('Use it to find a diagram before `get_diagram`'), establishing the ordering relative to a sibling. It does not address render_diagram or state when not to use this tool (e.g. when the diagram id is already known), so it falls short of full when/when-not coverage.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
render_diagramRender diagramARead-onlyIdempotentInspect
Render Mermaid source with Line9's layout engine. Call this whenever you write or change Mermaid and the user should see the result. Flowcharts and sequence diagrams get Line9's layout; other Mermaid kinds are rendered with Mermaid's own layout and flagged as such. Returns a short verdict — kind, size, warnings, or a parse error with its line and column — plus an "Open in Line9" link. On a parse error, fix the named line and call again. Assistants that support MCP Apps show the diagram in a panel; there, do not paste the SVG or repeat the source in your reply. In an assistant with no panel (a terminal or editor), reply with the verdict line and the open_url link — that link is the only way the user sees the diagram. Write flowcharts as flowchart LR unless the user asks for top-to-bottom; chat panels are wide and short. No sign-in needed; renders carry a small Line9 mark unless the user is signed in to Line9 Pro. Set theme, orientation, spacing and legend in the source itself (line9: frontmatter; flowchart LR), never as arguments. This connector cannot publish or save. To publish, the user opens the diagram in Line9 (the open_url link) and publishes there — not with the Line9 CLI.
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | Opaque plan from a previous result (widget use). A hint only: skips the solve when it still fits the source. | |
| source | Yes | Mermaid source. Optional YAML frontmatter is honoured — set it in the source, never as arguments: `title`, and a nested `line9:` block with `theme` (one of `boardroom`, `linen`, `blueprint`), `scale: { node, spacing }` and `flowchart: { legend: on | off }`. The flowchart direction directive is also honoured. Maximum 100000 characters. Line9 Pro accounts can also use: kingfisher. |
Output Schema
| Name | Required | Description |
|---|---|---|
| svg | No | |
| path | No | |
| plan | No | |
| error | No | |
| width | No | |
| config | No | |
| height | No | |
| source | No | |
| status | Yes | |
| themes | No | |
| diagram | No | |
| controls | No | |
| diagrams | No | |
| open_url | No | |
| warnings | No | |
| signed_in | No | |
| truncated | No | |
| watermark | No | |
| edge_count | No | |
| node_count | No | |
| orientation | No | |
| render_mode | No | |
| stop_reason | No | |
| diagram_type | No | |
| engine_version | No | |
| schema_version | Yes | |
| fallback_reason | No | |
| mermaid_version | No | |
| pro_theme_refused | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare read-only/idempotent, but the description goes well beyond: environment-dependent behavior (panel vs terminal), the watermark rule, no sign-in requirement, and the error-recovery loop. The 'cannot publish or save' limitation is consistent with readOnlyHint and adds real operational context.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loaded with purpose and trigger, then logically sequenced through output, errors, environment, styling and auth. It is long, but the complexity justifies most of it; the publishing sentence partly repeats 'cannot publish or save' and could be tightened.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Output schema exists, yet the description still frames the verdict and error shape usefully, and it covers auth, environment handling, styling, and limitations. An agent has everything needed to call it correctly and to act on the result in either UI mode.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so baseline is 3; the schema already documents frontmatter, theme values and the max length. The description reinforces the styling directive ('set... in the source itself... never as arguments') but never mentions the opaque `plan` parameter and largely restates schema content rather than adding new semantics.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource — 'Render Mermaid source with Line9's layout engine' — and is immediately distinguishable from get_diagram/list_diagrams, which are retrieval rather than rendering. It also scopes which Mermaid kinds get native layout versus Mermaid's own, so the agent knows exactly what the tool produces.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives a clear trigger ('Call this whenever you write or change Mermaid and the user should see the result') and an explicit when-not ('This connector cannot publish or save... not with the Line9 CLI'). It does not name the sibling tools as alternatives for read/retrieve cases, so the routing advice is strong but not fully closed.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
3 tool updates
- Changed
get_diagram2 fields changed- added
Output schema / properties / pro_theme_refusedAdded value: +{ + "type": "string" +} - added
Output schema / properties / themesAdded value: +{ + "items": { + "type": "string" + }, + "type": "array" +}
- Changed
list_diagrams2 fields changed- added
Output schema / properties / pro_theme_refusedAdded value: +{ + "type": "string" +} - added
Output schema / properties / themesAdded value: +{ + "items": { + "type": "string" + }, + "type": "array" +}
- Changed
render_diagram3 fields changed- changed
Input schema / properties / source / descriptionPrevious value: -"Mermaid source. Optional YAML frontmatter is honoured — set it in the source, never as arguments: `title`, and a nested `line9:` block with `theme` (one of `boardroom`, `linen`, `blueprint`), `scale: { node, spacing }` and `flowchart: { legend: on | off }`. The flowchart direction directive is also honoured. Maximum 100000 characters."New value: +"Mermaid source. Optional YAML frontmatter is honoured — set it in the source, never as arguments: `title`, and a nested `line9:` block with `theme` (one of `boardroom`, `linen`, `blueprint`), `scale: { node, spacing }` and `flowchart: { legend: on | off }`. The flowchart direction directive is also honoured. Maximum 100000 characters. Line9 Pro accounts can also use: kingfisher." - added
Output schema / properties / pro_theme_refusedAdded value: +{ + "type": "string" +} - added
Output schema / properties / themesAdded value: +{ + "items": { + "type": "string" + }, + "type": "array" +}
3 tool updates
- Changed
get_diagram1 field changed- changed
Output schema / properties / fallback_reason / enumPrevious value: -[ - "unsupported_diagram_kind", - "node_cap_exceeded" -]New value: +[ + "unsupported_diagram_kind", + "node_cap_exceeded", + "engine_panic" +]
- Changed
list_diagrams1 field changed- changed
Output schema / properties / fallback_reason / enumPrevious value: -[ - "unsupported_diagram_kind", - "node_cap_exceeded" -]New value: +[ + "unsupported_diagram_kind", + "node_cap_exceeded", + "engine_panic" +]
- Changed
render_diagram1 field changed- changed
Output schema / properties / fallback_reason / enumPrevious value: -[ - "unsupported_diagram_kind", - "node_cap_exceeded" -]New value: +[ + "unsupported_diagram_kind", + "node_cap_exceeded", + "engine_panic" +]
3 tool updates
- First observed
get_diagram - First observed
list_diagrams - First observed
render_diagram
Publisher details
- Operator
- Line9 · Publisher source
- Operator website
- https://line9.ai · Publisher source
- Vendor relationship
- First-party
- Documentation
- https://line9.ai/docs/mcp · Publisher source
- Trust center
- https://line9.ai/legal/privacy · Publisher source
- Restrictions
- No account or authorisation is needed to use the Line9 MCP connector. With an account, access to previously published diagrams is made available in your AI assistant UI.
Related MCP Connectors
Generate dynamic Mermaid diagrams and charts with AI assistance. Customize styles and export diagr…
Create and manage Mermaid.js flowcharts and diagrams with AI agents via MCP.
Let Claude, Cursor, or ChatGPT author Mermaid diagrams your team can read and share.
Create workflow, sequence, architecture, and mind map diagrams via AI assistants.
Related MCP Servers
- AlicenseAqualityCmaintenanceLets agents construct Mermaid diagrams from structured JSON IR and render them as PNG or SVG.3MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to generate and render Mermaid diagrams (flowcharts, sequence diagrams, etc.) as PNG/SVG images with local file saving and HTTP access URLs. Supports batch processing and intelligent caching for efficient diagram creation.14 npm1MIT
- AlicenseBqualityDmaintenance❤️ Generate mermaid diagram and chart with AI MCP dynamically.13,615 npm646TypeScriptMIT
- AlicenseNot gradedqualityCmaintenanceRenders Mermaid diagrams in an interactive viewer with pan, zoom, and split-view source editing, enabling LLM hosts to create and edit diagrams through natural language and synchronize updates back to the conversation.153 npm1MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.