Skip to main content
Glama

vpp_render_diagram

Renders class diagrams from .vpp geometry to PNG for layout inspection, showing classes, relations, and overlaps; returns a description and image.

Instructions

Rysuje diagram klas do PNG z geometrii zapisanej w pliku .vpp (klasy ze składowymi, stereotypy, linie relacji ze strzałkami, rombami, licznościami, rolami). To nie jest renderer Visual Paradigm, ale pokazuje te same pozycje i rozmiary, więc wystarcza do oceny układu: nakładania, linie przez klasy, przecięcia, tłok. Zwraca opis i obraz. diagram: nazwa (domyślnie główny, czyli z największą liczbą klas); output_png: gdzie zapisać (domyślnie katalog tymczasowy); scale: np. 0.5 dla dużych diagramów; crop: [x0, y0, x1, y1] w współrzędnych diagramu. Wymaga Pillow.

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": "vpp_render_diagram"
  }
}

Input Schema

NameRequiredDescriptionDefault
cropNo
pathYes
scaleNo
diagramNo
output_pngNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.1/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 it discloses several non-obvious traits: it returns both a description and an image, it requires the Pillow dependency, and its fidelity is geometric rather than visual (same positions/sizes, different appearance than Visual Paradigm). It does not state whether an existing output_png is overwritten or what happens on malformed .vpp input, leaving some gaps for a write-producing tool.

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?

The purpose and the key caveat are front-loaded in the first two sentences, followed by a compact parameter digest. The parenthetical enumeration of rendered elements is long but earns its place by telling the agent exactly what fidelity to expect. No filler sentences.

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 five-parameter tool with no annotations and no output schema, the definition covers what it produces (description plus image), the dependency requirement, default behaviors, and parameter formats. Remaining gaps — overwrite semantics, error behavior on invalid files, and the path argument — are small but real.

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 description coverage is 0%, so the description must compensate, and it largely does: diagram (default = main, i.e. the one with the most classes), output_png (destination, default temporary directory), scale (e.g. 0.5 for large diagrams), and crop as [x0, y0, x1, y1] in diagram coordinates. Only the required path parameter is left implicit through 'plik .vpp', which is a minor omission.

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 opens with a specific verb and resource: it draws a class diagram to PNG from geometry stored in a .vpp file, and enumerates what is rendered (classes with members, stereotypes, relationship lines with arrows, diamonds, multiplicities, roles). It also explicitly states what it is not ('to nie jest renderer Visual Paradigm'), which bounds expectations. It does not, however, differentiate itself from siblings such as vpp_export_plantuml or vpp_render_sequence, so it stops short of full sibling routing.

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?

It gives a clear when-to-use rationale: because it reproduces the same positions and sizes as Visual Paradigm, it suffices for judging layout — overlaps, lines crossing classes, intersections, crowding. That is a concrete scenario an agent can match against a request. It offers no explicit exclusions or named alternative tools for other cases (e.g. sequence diagrams), so it is clear context without alternatives.

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