ArchSmith
v0.8.2Render and validate ArchSmith architecture diagrams from a governed JSON IR.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_schema Get the diagram IR JSON Schema
Returns the ArchSmith diagram IR JSON Schema (draft 2020-12) — the structural contract a diagram IR document must satisfy. Call this, and get_registry for governed vocabulary, before authoring an IR.
validate Validate a diagram IR
Validates an ArchSmith diagram IR document against the schema and governed registries (sub-layers, colors). Call get_schema and get_registry first to learn the required structure and governed vocabulary before authoring an IR. Returns { valid, errors }.
| Parameter | Type | Description |
|---|---|---|
ir * | object | The diagram IR document to validate. |
render Render a diagram IR to SVG
Validates then renders an ArchSmith diagram IR to a complete SVG document. Call get_schema and get_registry first to learn the required IR structure and governed vocabulary before authoring a document. Font embedding defaults to false to keep MCP responses compact; only opt in if the SVG must render portably without installed fonts — embedding adds a font subset sized to this diagram's own text, not a fixed cost, but it's still an added cost worth opting into deliberately. A render under 25,000 bytes is returned as one text content block; a larger one (e.g. a big diagram, or embedFonts:true…
| Parameter | Type | Description |
|---|---|---|
ir * | object | The diagram IR document to render. |
embedFonts | boolean | Embed the bundled Arimo font for portable rendering, subset to just the glyphs this diagram's text needs (not the whole font). Default: false. |
list_registries List governed registry names
Lists the governed registries (e.g. sub-layers, colors, icons) available via get_registry.
get_registry Get a governed registry's contents
Returns the raw, current contents of a governed registry — the live source of truth for which colors/sub-layer types a diagram IR may use. This is governed vocabulary, not the IR's structural document contract; see get_schema for that. For 'colors' specifically, pass family to get just one color family instead of the whole registry.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
family | string | For the 'colors' registry only: restrict to a single family, e.g. 'standard'. |