Skip to main content
Glama
pzfreo

build123d-mcp

save_drawing_annotations

Save annotation metadata from a build123d drawing as a sidecar JSON file for later inspection. Use after exporting SVG to preserve label strings.

Instructions

Write a .dims.json sidecar file alongside an SVG with label metadata.

build123d renders Text as filled glyph paths, not <text> SVG elements, so
label strings are irrecoverable from a finished SVG. Call this tool after
completing a drawing (annotate all dims/leaders with annotate()) and before
or after exporting the SVG. The sidecar is read automatically by
inspect_drawing(svg_path=...) to restore annotation content.

Workflow:
    1. Build your drawing with Dimension / Leader / annotate()
    2. Export SVG:  execute("exporter.write('drawing.svg')")
    3. Save metadata: save_drawing_annotations("drawing.svg")
    4. Inspect later: inspect_drawing(svg_path="drawing.svg")
       → includes full annotations dict from the sidecar

Args:
    svg_path: path to the SVG file (sidecar written as <svg_path>.dims.json).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
svg_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations indicate readOnlyHint=false and destructiveHint=false. The description adds that the tool writes a sidecar file (non-destructive write) and explains the file naming convention (<svg_path>.dims.json). It also describes how the sidecar is used by inspect_drawing. This provides good behavioral context beyond the annotations.

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 description is approximately 150 words, well-structured with sections for purpose, why needed, workflow, and args. It is front-loaded with the core purpose and every sentence adds value. No unnecessary repetition or fluff.

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?

Given the tool's simplicity (one parameter, no nested objects, output schema exists), the description is complete. It explains the sidecar file, workflow steps, and the relationship with inspect_drawing. An agent has enough information to invoke the tool correctly in the intended context.

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?

The description includes an 'Args' section that adds value to the schema: it explains that svg_path is the path to the SVG file and that the sidecar is written as <svg_path>.dims.json. This clarifies the parameter's purpose and the naming convention, improving on the schema's minimal definition.

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 clearly states the tool writes a .dims.json sidecar file alongside an SVG with label metadata. It explains why this is necessary (build123d renders Text as filled glyph paths, making label strings irrecoverable) and distinguishes from sibling tools like inspect_drawing which reads the sidecar.

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?

The description provides a clear workflow: build drawing, export SVG, save annotations, inspect later. It specifies when to call (after completing a drawing and before/after exporting) and prerequisites (annotate() for all dims/leaders). However, it does not explicitly state when not to use or mention alternatives, though the workflow implicitly guides usage.

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

Install Server

Other Tools

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/pzfreo/build123d-mcp'

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