Skip to main content
Glama
diagrammo
by diagrammo

preview_diagram

Render DGMO diagrams to an HTML browser view with theme toggling and optional source display.

Instructions

Render one or more DGMO diagrams and open an HTML preview in the browser. Supports theme toggle and optional source display. For DGMO syntax call get_language_reference.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
themeNoColor themelight
paletteNoColor paletteslate
diagramsYesOne or more diagrams to preview
include_sourceNoShow DGMO source in collapsible blocks

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.29.5
    • changedInput schema / properties / diagrams / items / properties / dgmo / description
      Previous value: -"DGMO diagram markup. Color a label by appending a lowercase color name as the trailing token (e.g. \"Sales red\"); capitalize (\"Red\") to use a color word as literal text."New value: +"DGMO diagram markup. For syntax call get_language_reference."
  2. Changed1 schema field changedv0.9.1
    • changedInput schema / properties / theme / default
      Previous value: -"dark"New value: +"light"
  3. Changed1 schema field changedv0.2.4
    • changedInput schema / properties / palette / default
      Previous value: -"nord"New value: +"slate"
  4. Addedv0.2.2
  5. Removedv0.1.21
  6. First observedv0.1.13

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint false and openWorldHint true, signaling a non-read-only, external-interacting operation. The description adds that it opens an HTML preview in the browser, which aligns with openWorldHint, but does not clarify permissions, temporary file side effects, or rate limits. It offers modest context beyond the annotations.

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?

Two sentences plus a routing pointer, front-loaded with the primary action and output medium. Every sentence earns its place; the syntax pointer prevents misuse and is not redundant.

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

Completeness4/5

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

For a simple preview tool with full schema coverage and no output schema, the description covers the essential behavior and optional features. It omits usage comparisons, but overall it is complete enough for correct invocation.

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 four parameters are fully documented in the schema. The description mentions theme toggle and optional source display, mapping to theme and include_source, but adds no format or syntax detail beyond what the schema provides. Baseline 3 is appropriate.

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 ('Render') and resource ('DGMO diagrams'), and names the output medium ('open an HTML preview in the browser'). It does not explicitly distinguish from siblings like render_diagram or open_in_app, but the scope is clear enough for selection.

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?

Provides a pointer for syntax ('call get_language_reference'), which is a prerequisite note rather than when-to-use guidance for this tool. There is no explicit comparison to alternatives like render_diagram, share_diagram, or open_in_app; usage is only implied by the tool name and purpose.

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