Skip to main content
Glama

QuassLabs API

diagram_contrast

Diagram quality QA. Catch and fix the things that ruin diagrams: (1) unreadable label contrast - POST a mermaid/SVG or HTML diagram, get every WCAG-AA failure (incl. mermaid -block label colors, with unresolvable fills flagged honestly, not false-passed) + auto-corrected colors; (2) harden a mermaid SOURCE before it renders - rewrites every fill/label pair and remaps fills no label color can rescue, which scanning cannot do because a per-node style line overrides the theme block; (3) HTML-looks-fine-but-prints-broken - checks for the print-color-adjust/page-break gotchas and returns the fix CSS; (4) arrows crossing objects - returns the ELK-renderer config + layout rules that minimize crossings. Pure deterministic - no AI, no rate limit.

Input Schema

NameRequiredDescriptionDefault
bgNocontrast/readable: background/fill hex (#rrggbb).
fgNocontrast: foreground hex (#rrggbb).
modeNoDefault "scan". scan=check rendered output; harden=fix a mermaid source before rendering; print=print-safety check; layout=arrow-crossing reduction.
brandNobrand palette to use (e.g. appstango). Default from config.
largeNocontrast/harden: use the 3:1 large-text threshold.
formatNoscan: content format (default svg).
sourceNoharden: the mermaid SOURCE text (not rendered SVG).
autofixNoscan: include suggested corrected colors.
contentNoscan/print: the SVG or HTML diagram/document source.
add_initNoharden: prepend the %%{init}%% theme block (default true).
rendererNolayout: mermaid renderer (default "elk").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses deterministic behavior, no AI, no rate limit, honest flagging of unresolvable fills, and the mode-specific outputs. It does not cover error behavior, input prerequisites, or whether harden rewrites the source in place versus returning a new source.

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 purpose and uses a numbered list to organize the four capabilities. It is dense but justified by the multi-mode tool, with only minor verbosity in the parenthetical explanations.

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 an 11-parameter tool with no annotations and no output schema, the description is fairly complete: it explains each mode's purpose, key behavior, and the type of result returned. It could be stronger by clarifying output shape, error cases, and whether any mode writes or mutates external state.

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

Parameters4/5

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

Schema coverage is 100%, so parameter documentation is already strong. The description adds useful meaning beyond the schema by explaining the distinctions among scan, harden, contrast, print, and layout, including why source hardening cannot be achieved by scanning rendered output.

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?

The description states a specific purpose, 'Diagram quality QA,' and enumerates four concrete capabilities: contrast checking, mermaid source hardening, print-safety checks, and arrow-crossing reduction. It is clear what the tool does, though it does not explicitly differentiate itself from diagram-adjacent siblings such as convert_diagram or describe_diagram.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Each mode is given a clear usage scenario, and the description explains why source hardening is distinct from rendered scanning. It stops short of naming when not to use the tool or pointing to specific alternative sibling tools.

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