Skip to main content
Glama
diagrammo
by diagrammo

preview_diagram

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.

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

NameRequiredDescriptionDefault
themeNoColor themelight
paletteNoColor palette for the page and every diagram. Given, it beats each diagram's own palette line; omitted, each diagram uses its own, and the page uses slate.
diagramsYesOne or more diagrams to preview
include_sourceNoShow DGMO source in collapsible blocks

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.29.10
    • removedInput schema / properties / palette / default
      Removed value: -"slate"
    • changedInput schema / properties / palette / description
      Previous value: -"Color palette"New value: +"Color palette for the page and every diagram. Given, it beats each diagram's own palette line; omitted, each diagram uses its own, and the page uses slate."
  2. 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."
  3. Changed1 schema field changedv0.9.1
    • changedInput schema / properties / theme / default
      Previous value: -"dark"New value: +"light"
  4. Changed1 schema field changedv0.2.4
    • changedInput schema / properties / palette / default
      Previous value: -"nord"New value: +"slate"
  5. Addedv0.2.2
  6. Removedv0.1.21
  7. First observedv0.1.13

TDQS

A3.5/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false, openWorldHint=true and destructiveHint=false, so safety is partly covered. The description usefully adds that the tool opens a browser window (an observable side effect consistent with openWorldHint) and that source display is optional, which is real context. It stops short of saying whether a browser window is spawned on every call, whether the page persists, or any auth/environment requirements.

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?

Three short sentences, purpose front-loaded, with no padding. The middle sentence lists features that are largely already enumerated in the schema, which is mild redundancy, so it is efficient but not flawless.

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 preview tool with no output schema and full schema coverage, the description covers what the tool does and the browser-based output. It leaves unaddressed whether diagrams render inline, how multiple diagrams are laid out, and how the browser preview is surfaced to the agent, so it is nearly but not fully complete.

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 the schema already documents theme, palette, diagrams, include_source and the nested dgmo/title fields, making the baseline a 3. The description's mention of 'theme toggle and optional source display' loosely maps to two parameters but adds no formatting or override semantics beyond what the schema states; palette is not mentioned at all.

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?

Names a specific verb+resource ('Render one or more DGMO diagrams and open an HTML preview in the browser'), which is concrete and actionable. It does not, however, distinguish itself from the sibling render_diagram, which an agent must infer from the 'HTML preview' phrasing. Without that explicit sibling contrast, it stops short of a 5.

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 only routing guidance is 'For DGMO syntax call get_language_reference', which points at a supporting tool rather than saying when to choose preview_diagram over render_diagram or share_diagram. Usage is only implied by the phrase 'preview'. No when-not conditions or alternatives are stated.

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