Skip to main content
Glama
uniwire-dev

uniwire

Official

Draw the single-line or multi-line diagram

render
Read-onlyIdempotent

Draw electrical single-line or multi-line diagrams from a uniwire document, exporting them as SVG or PDF with optional color coding, views, and sheet selection.

Instructions

Draw the electrical diagram (schéma unifilaire / multifilaire). kind: 'single-line' or 'multi-line'; view: a view id of the document (e.g. a wire-marking view). format 'svg' returns the SVG text of every sheet (or of 'sheet', numbered from 1); 'pdf' writes to 'path' if given, else returns base64 (requires the uniwire[pdf] extra); on the hosted server it returns pdf_url (the PDF drawn by uniwire) instead. color: 'none' | 'conductors' | 'phase' | 'source' | 'status' | 'voltage' (adds a legend); conductor_colors: 'iec' (IEC 60445) | 'us'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNo'single-line' or 'multi-line' (one line per conductor).single-line
pathNoFile to write the PDF to (local server only).
viewNoId of a view of the document (its 'views' list); default: the first view of the requested kind.
colorNoColouring: 'none', 'conductors', 'phase', 'source', 'status' or 'voltage' (adds a legend).
sheetNoOnly this sheet (numbered from 1); default: all.
formatNo'svg' or 'pdf'.svg
documentYesThe uniwire document of the electrical installation: a JSON object, or its JSON text, as returned by get_example, apply_patch or normalize (a file path is accepted when the server runs locally).
conductor_colorsNoConductor colour convention: 'iec' (IEC 60445) or 'us'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.1.3-dev
    • addedInput schema / properties / color / description
      Added value: +"Colouring: 'none', 'conductors', 'phase', 'source', 'status' or 'voltage' (adds a legend)."
    • addedInput schema / properties / conductor_colors / description
      Added value: +"Conductor colour convention: 'iec' (IEC 60445) or 'us'."
    • addedInput schema / properties / document / description
      Added value: +"The uniwire document of the electrical installation: a JSON object, or its JSON text, as returned by get_example, apply_patch or normalize (a file path is accepted when the server runs locally)."
    • addedInput schema / properties / format / description
      Added value: +"'svg' or 'pdf'."
    • addedInput schema / properties / kind / description
      Added value: +"'single-line' or 'multi-line' (one line per conductor)."
    • addedInput schema / properties / path / description
      Added value: +"File to write the PDF to (local server only)."
    • addedInput schema / properties / sheet / description
      Added value: +"Only this sheet (numbered from 1); default: all."
    • addedInput schema / properties / view / description
      Added value: +"Id of a view of the document (its 'views' list); default: the first view of the requested kind."
  2. First observedv0.1.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds genuinely useful operation context beyond that: the uniwire[pdf] extra requirement, the hosted-server pdf_url behavior, and that certain color modes add a legend.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the body is a dense multi-clause run-on with embedded line breaks and a parenthetical example ('e.g. a wire-marking view') that adds little. Several clauses duplicate schema content rather than adding new information.

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?

An output schema exists, yet the description still usefully clarifies the return shape differences (SVG text vs written PDF vs base64 vs pdf_url), which is the main ambiguity for an 8-parameter render call. Combined with the annotations, an agent has what it needs to invoke correctly.

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 every parameter (kind, view, format, color, sheet, conductor_colors, path, document) is already documented in the schema. The description largely restates those definitions verbatim, adding only the legend note and the 'numbered from 1' sheet detail, so the baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Draw') and resource ('the electrical diagram', with the domain terms schéma unifilaire/multifilaire), and immediately scopes it to the two variants via 'kind'. An agent can distinguish this rendering tool from siblings like viewer_link, wiring, or bom without opening the schema.

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 clear conditional guidance for invocation: 'pdf' writes to 'path' if given, else returns base64, and on the hosted server returns pdf_url instead; 'svg' returns SVG text of every sheet or of 'sheet'. It never explicitly names an alternative sibling (e.g. viewer_link for interactive viewing), so it stops short of full when/when-not routing.

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