Skip to main content
Glama

Preview a symbol

render_symbol
Read-only

Preview an Altium symbol from a .SchLib file as ASCII art, showing every pin, shape, and text element with per-kind counts. Use it to visually check a layout after authoring or editing.

Instructions

Render an ASCII-art preview of one symbol in a .SchLib — a quick visual check of a layout after authoring or editing, not a drawing to keep. Every record kind of the requested part — pins (with designators), rectangles, rounded rectangles, lines, polylines, polygons, arcs, pies, ellipses, elliptical arcs, beziers, images, text frames, labels and IEEE symbols — gets its own marker, followed by a per-kind count line and a legend. part_id picks one part of a multi-part symbol (default 1; 0 draws all parts); scale sets characters per 10 schematic units and the picture is limited to max_width x max_height characters. Coordinates are schematic units (10 units = 1 grid). Use get_component or read_schlib for exact coordinates and properties, and render_footprint for a .PcbLib footprint.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scaleNoCharacters per 10 schematic units (default: 1.0). Higher = more detail
part_idNoPart ID for multi-part symbols (default: 1, shows all parts if 0)
filepathYesPath to the Altium SchLib file
max_widthNoMaximum width in characters (default: 80)
max_heightNoMaximum height in characters (default: 40)
component_nameYesName of the symbol to render

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already mark the tool as read-only and non-destructive, but the description adds substantial behavioral detail: every record kind gets its own marker, followed by a per-kind count line and legend; coordinates are schematic units (10 units = 1 grid); output is limited to max_width x max_height characters. This fully paints the execution behavior and output format beyond what annotations convey.

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 a single dense paragraph but is well-organized: purpose, output format, parameter semantics, units, then routing to alternatives. Every sentence carries needed information, though the structure could be slightly broken up for easier scanning. No wasted words.

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 read-only preview tool with a full schema, the description covers the output structure, parameter effects, coordinate system, output size limits, and alternatives. There is no output schema, but the description explicitly describes what the ASCII-art output contains (markers, count line, legend), so an agent knows what to expect. Nothing essential is missing.

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 each parameter's basic meaning is documented. The description adds extra nuance by explaining scale in 'characters per 10 schematic units', clarifying part_id's default and the all-parts behavior of 0, and stating the coordinate-unit convention. This goes beyond the schema descriptions while remaining consistent with them.

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?

The description opens with a specific verb and resource: 'Render an ASCII-art preview of one symbol in a .SchLib.' It immediately clarifies the tool's scope (one symbol), its purpose (quick visual check), and its non-archival nature (not a drawing to keep), which distinguishes it from other library tools without needing to see sibling names.

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

Usage Guidelines5/5

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

Provides explicit routing: use get_component or read_schlib for exact coordinates/properties, and render_footprint for a .PcbLib footprint. This tells an agent exactly when to choose this tool over alternatives and when to defer to others, leaving no ambiguity about its niche.

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