Skip to main content
Glama

Export a SOP's geometry as SVG

export_sop_to_svg
Destructive

Export a TouchDesigner SOP to an SVG document of polylines, suitable for pen-plotter, laser cutting, or print deliverables. Configurable stroke, fill, scale, and flip Y axis.

Instructions

Walk a SOP's primitives via the bridge and emit an SVG document of polylines (each primitive becomes one <polyline>). Projects to x/y (drops z), auto-fits viewBox, supports stroke/fill/scale/flip_y. Writes to disk when output_path is supplied and always returns the SVG string in the report. Pen-plotter / laser / print deliverable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
source_pathYesSOP path to export (e.g. '/project1/geo1/circle1').
output_pathNoFilesystem path to write the SVG to. Absolute is recommended; relative paths are resolved against the server's current working directory. Omit to only return the SVG inline.
stroke_colorNoCSS color for polyline strokes (default black). Accepts hex, rgb()/rgba()/hsl()/hsla(), or a named colour; anything that could break out of an SVG attribute is rejected.#000000
stroke_widthNoStroke width in SVG units.
fill_colorNoCSS color for fills (default 'none' — outlines only, plotter-style). Same allowlist as stroke_color.none
scaleNoScale factor applied to SOP units (TD SOPs are typically [-1..1]).
flip_yNoFlip Y so the SVG matches TD's viewport orientation.
Behavior5/5

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

The description discloses key behaviors beyond annotations: projects to x/y (drops z), auto-fits viewBox, supports stroke/fill/scale/flip_y, writes to disk when output_path supplied, always returns SVG string. No contradiction with annotations (readOnlyHint=false, destructiveHint=true, openWorldHint=true).

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 concise (4 sentences) and front-loaded with the key action and resource. Each sentence adds value without redundancy. Structure is clear and efficient.

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?

Given the tool has 7 parameters and complex behavior (SVG generation, file output), the description is mostly complete. It covers input, process, output format, and file writing. Missing details like coordinate system origin or error handling, but overall adequate.

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 the baseline is 3. The description adds some semantic context (e.g., 'each primitive becomes one <polyline>', 'auto-fits viewBox'), but most parameter meanings are already well-defined in the schema. No significant additional insight beyond what the schema provides.

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 it exports SOP geometry to SVG, detailing the process (walk primitives, emit polylines) and use cases (pen-plotter, laser, print). The tool name is self-explanatory, and the description adds specific context that distinguishes it from siblings (e.g., no other export SVG tool listed).

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 context on when to use the tool (for vector output like pen-plotter/laser/print) but does not explicitly state when not to use it or mention alternatives. While the use cases are clear, the lack of explicit exclusions lowers the score slightly.

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/Pantani/tdmcp'

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