Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DIAGRAM_CONFIGNoPath to a diagram.config.json configuration file. Discovery order is --config, $DIAGRAM_CONFIG, ./diagram.config.json, then ~/.config/lv24-diagram/config.json.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
diagram_renderB

Render a Mermaid diagram to SVG and/or PNG. Returns a text summary plus a PNG image when requested.

diagram_lintB

Check a Mermaid diagram against readability budgets (node count, depth, cycles, edge labels, label length).

diagram_saveB

Render and store a diagram as NN-slug.mmd/.svg/.png under docs.dir, update the README index, and optionally publish a digest to lv24-brain.

schema_tablesB

List tables and views with row estimates from the configured PostgreSQL database.

schema_columnsB

Return columns, types, nullability and PK/UK flags for the given tables.

schema_queryA

Run one read-only SELECT/WITH statement with a row limit. The DB user must still be read-only; the guard is not a permission boundary.

schema_erB

Build a Mermaid erDiagram from the live database schema (tables ranked by size), optionally render and save it.

arch_scanB

Detect services from docker-compose, nginx proxy targets and packages. Facts only; unknowns are reported explicitly.

arch_diagramC

Build a Mermaid architecture view (container | context | deploy) from the repository scan, optionally save it.

drawio_statusB

Check the shared draw.io MCP server and list connected editor documents.

drawio_import_mermaidC

Convert Mermaid into native draw.io cells on a page of the connected editor document.

drawio_exportC

Export a page of the connected draw.io document to PNG, SVG or XML.

brain_contextA

Read the curated project state (goal, next action, active items) so diagrams match what the project is actually doing.

brain_publishA

Write one note describing the saved diagram set. Idempotent: skipped when the content hash was already published. Use dry_run to preview the note without writing.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 14 tools

Disambiguation4/5

Tools are grouped by clear domain prefixes (diagram_, schema_, arch_, drawio_, brain_) and mostly have distinct purposes. A few boundaries blur: diagram_save internally renders, schema_er and arch_diagram both produce Mermaid and can optionally save, and diagram_render overlaps with both save paths. Descriptions mostly resolve these, so misselection risk is low but not zero.

Naming Consistency4/5

All names use consistent snake_case with a domain prefix (diagram_, schema_, arch_, drawio_, brain_), making the set easy to scan. Minor deviations from a strict verb_noun pattern appear in noun-form names like schema_tables, schema_columns, schema_er, and arch_diagram, but the convention remains predictable.

Tool Count5/5

Fourteen tools fit comfortably within the well-scoped 3-15 range and each corresponds to a meaningful step in the diagram workflow. No tool appears redundant or trivially thin given the breadth of Mermaid, schema, architecture, draw.io, and project-context functionality.

Completeness4/5

The surface covers the core lifecycle: render, lint, save with README indexing, schema introspection, ER and architecture generation, draw.io import/export, and brain context/publish. Gaps remain around managing saved artifacts (no list/read/delete of existing diagrams) and draw.io page creation, though these can be worked around outside the server.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues