Skip to main content
Glama

Write a SchLib

write_schlib
Destructive

Creates Altium Designer schematic symbol libraries (.SchLib) by writing pins, graphical shapes, and component parameters, and supports appending new symbols to existing library files.

Instructions

Write schematic symbols to an Altium .SchLib file (set 'append': true to add to an existing library instead of replacing it). Each symbol is defined by its primitives: pins, rectangles, round_rects, lines, polylines, polygons, arcs, pies, images, text_frames, beziers, ellipses, elliptical_arcs, labels, and text — plus its designator, parameters (Value, Manufacturer, ...) and footprint links ('footprints', name + optional library_path). Multi-part symbols set 'part_count' and tag each pin with 'owner_part_id'. Coordinates must be in schematic units (10 units = 1 grid square, not mm); a pin's (x, y) is its body-attach end and 'orientation' is the direction it points outward — the response echoes each pin's computed body_end and tip. No text field may contain '|', the separator of Altium's record format; Altium's own editor stores it as '¦' (U+00A6).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appendNoIf true, append to existing file; if false, create new file
symbolsYesArray of symbol definitions
filepathYesPath to the .SchLib file to create/modify

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description is consistent while adding substantial context beyond those flags: the replace-by-default behavior, the coordinate-unit trap ('10 units = 1 grid square, not mm'), the pin body-attach vs tip convention, the response echo of computed body_end and tip, and the hard '|' separator restriction. This is exactly the kind of failure-mode disclosure agents need.

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?

A single dense paragraph that front-loads purpose and the append decision before diving into details. Every sentence carries substantive guidance, though the enumeration of ~15 primitive kinds partially duplicates structure already visible in the schema array definitions.

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 tool of this complexity — a huge nested symbol schema and no output schema — the description covers the operational essentials an agent cannot safely infer: append/replace, units, pin geometry, multi-part tagging, the '|' constraint, and the response echo. The read-modify-write/raw_params round-trip behavior is left to the schema, which documents it exhaustively on every record type, so nothing critical 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% and the schema's own pin descriptions are already unusually rich. The description still adds meaning beyond it: the append-vs-replace decision, the 'not mm' unit warning, the multi-part convention (part_count + owner_part_id), and the '|' validation constraint. That meaningful supplement pushes it above the baseline 3 for fully-covered schemas.

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+resource: 'Write schematic symbols to an Altium .SchLib file'. The SchLib resource paired with the write verb clearly distinguishes it from siblings like read_schlib, write_pcblib, and write_libpkg. The symbol-composition list (pins, rectangles, parameters, footprints, ...) reinforces exactly what the tool produces.

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?

Provides clear context: the tool creates or modifies schematic symbol libraries, and the key operational decision is spelled out — 'set append: true to add to an existing library instead of replacing it'. However, it never names an alternative tool or states an explicit when-not-to-use condition, so it stops short of a 5.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/embedded-society/altium-designer-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server