Skip to main content
Glama

Audit an SVG

audit
Read-onlyIdempotent

Checks finished SVG or HTML figures for text overlap, arrows crossing boxes, spilling or tiny text, low contrast, and hidden 3D labels, then returns JSON errors with fixes and warnings.

Instructions

Check a finished SVG or HTML figure for what you cannot see in your own output: text over text, arrows through boxes, text that spills out of its shape, low contrast, tiny text, and in 3D figures text hidden behind a nearer face. Works on any SVG on disk, not only ones this tool drew. Returns JSON: ok, errors with a fix, and warnings. Read-only. render already audits its own output, so use this after hand edits or on a figure from elsewhere.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath of the .svg or .html figure to check.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.9.1
    • addedInput schema / properties / path / description
      Added value: +"Path of the .svg or .html figure to check."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations it discloses the return shape precisely (JSON with ok, errors carrying a fix, and warnings), which matters because no output schema exists, and it scopes the tool to arbitrary files on disk rather than only self-generated output. "Read-only" merely echoes readOnlyHint, but the rest is genuine added context.

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?

Front-loaded with the value proposition (what you cannot see in your own output) before the defect list, and every clause carries information. The first sentence is dense with a six-item enumeration, which is slightly hard to scan, but nothing is redundant enough to cut.

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

Completeness5/5

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

For a one-parameter read-only checker with no output schema, the description supplies the scope, the alternative to avoid, the difference from render, and the structure of the response. An agent has everything needed to decide and call it correctly.

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

Parameters5/5

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

A single required parameter with 100% schema description coverage, so the schema already fully documents `path`. The description adds the only meaningful semantic nuance available: the path may point to an .svg or .html file, and the file need not have been produced by this tool. Baseline for a fully covered single parameter.

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 concrete verb and resource and enumerates exactly what is detected (text-over-text, arrows through boxes, overflow, low contrast, tiny text, occluded 3D text) plus the file scope (any SVG/HTML on disk). An agent can tell this is a visual-correctness checker, not a schema checker, though the definition never contrasts itself with the sibling `validate`, which is the most likely source of misselection.

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?

Gives an explicit when: after hand edits, or on a figure produced elsewhere. And an implicit when-not: `render` already audits its own output, so running this right after render is redundant. It stops short of naming `validate` or `diff` as alternatives, so the boundary with those siblings stays unstated.

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

Deploy Server

Other Tools