Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoListening port for HTTP transport.8000
MCP_BINDNoBind address for HTTP transport.127.0.0.1
MCP_ENDPOINTNoMCP path for HTTP transport./mcp
MCP_TRANSPORTNoTransport mode: `stdio` or `http`. The server speaks stdio by default; set to `http` to serve stateless Streamable HTTP instead.stdio
MCP_ALLOWED_HOSTSNoComma-separated `Host` allowlist.loopback + bind
MCP_MAX_BODY_BYTESNoRequest body cap.4 MiB
MCP_ALLOWED_ORIGINSNoComma-separated `Origin` allowlist; non-browser clients send no `Origin`. An empty origin list refuses every cross-origin request.empty (refuse cross-origin)

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
render_animationA

Render animated SVG from JSON config. AI controls all design parameters.

Workflow: render_animation returns a PNG preview of the result plus an artifact id — critique the image, revise the config, render again. Iterate at least 3 times before finalizing. The SVG text stays on the server: pass the artifact id to save (and to preview for a different width).

output options (response shape, not content): {"svg":false,"preview":true,"previewWidth":800,"minify":false,"frames":4} — all optional. minify:true collapses whitespace in the stored/saved SVG. frames:N (2-10) replaces the static preview with one filmstrip image sampling the CSS animations at N times — use it to verify motion (rotation direction, timing, easing) since a single preview only shows t=0. SMIL is not sampled.

Element types: rect, circle, ellipse, line, polyline, polygon, path, image, text, textPath, group, use, radial-group, arc-group, grid-group, scatter-group, path-group, parametric

Pattern groups (use for repetitive designs): radial-group (circular: cx, cy, radius, count), arc-group (arc: cx, cy, radius, count, startAngle, endAngle), grid-group (matrix: cols, rows, colSpacing, rowSpacing), scatter-group (random: width, height, count, seed), path-group (along polyline: waypoints, count). Each takes ONE "child" element. The child is drawn at the local origin and, with rotateChildren true (the default), rotates so local +x points outward from the center: draw spokes, rays and petals long along the x axis, never the y axis, or they render as a chord ring.

Parametric curves (fn field): rose, heart, lissajous, spiral, star, superformula, epitrochoid, hypotrochoid, wave. Size via "scale" field. Server computes coordinates.

defs: gradients (linear/radial, SMIL animated stops), filters (presets: glow, neon, blur, drop-shadow, glitch, chromatic-aberration, noise, outline, inner-shadow, emboss + 5 more), clipPaths, masks, patterns (tile fills), markers (arrowheads: triangle, arrow, circle, square, diamond, bar; set markerStart/markerEnd:"id" on line/polyline/path, scales with strokeWidth).

Animations: CSS @keyframes via animations array. Set cssClass on element matching animation name. For transforms add transformBox="fill-box" transformOrigin="center". SMIL via smilAnimations on elements (animate, animateTransform, animateMotion).

Design guide (what makes output look good): Pick one spacing unit (e.g. 8) and use multiples of it for every gap and margin; keep content clear of the canvas edges by at least 5% of the smaller dimension (the bbox audit reports overflow in px). Use at most 3 font sizes per design with clear jumps (e.g. 12/16/24). Body-size text needs 4.5:1 contrast against its background, 3:1 from 24px up (the contrast audit checks plain hex pairs). Text ink boxes are measured after every render; escaping or overlapping text comes back as a named design note. Motion: ease-out for entrances, ease-in-out for back-and-forth loops, linear only for continuous rotation or travel; 0.8-3s durations read well for UI-scale loops.

Critical format rules:

  • Gradient type must be "linearGradient" or "radialGradient" (not "linear"/"radial"). Each needs id, stops (array with offset 0-1, color).

  • Filter type must be "preset" with a "preset" field: {"type":"preset","id":"myGlow","preset":"glow","stdDeviation":8,"color":"#ff00ff"}

  • Keyframe offset: use "from"/"to" or percentage number 0-100 (not "0%"/"100%").

  • Gradient stop and filter colors: hex only (#rrggbb or #rrggbbaa). Element fill/stroke accept '#rrggbb', 'none', or 'url(#id)' (hex is safest).

  • Every element needs "type" field. circle needs r, rect needs width+height, path needs d.

Field names that differ from raw SVG:

  • text: string goes in "content" (not "text"): {"type":"text","x":100,"y":50,"content":"Hello","fontSize":24,"textAnchor":"middle"}

  • textPath: {"type":"textPath","pathId":"idFromDefsPaths","text":"..."} — here the field IS "text".

  • group: {"type":"group","children":[...]} — children are shapes/text/use only, no nested groups.

  • Pattern groups take ONE "child" element drawn at local origin (child uses cx=0/cy=0); set rotateChildren:false to keep text upright.

Output: Pure SVG XML. No JavaScript. CSS @keyframes + SMIL only.

preview_animation_frameA

Render SVG content to a PNG image so the AI can visually inspect the output.

When to use:

  • render_animation already returns a preview image by default; call this tool to re-preview a stored artifact at a different width, or to preview SVG that did not come from render_animation

  • Stop iterating when the visual result matches the intent

Input: pass EITHER artifact (id from render_animation, e.g. "art-1" — preferred, no SVG resend) OR content (raw SVG string).

Behavior:

  • Returns a PNG image (base64) rendered from the SVG

  • Background is transparent by default

  • CSS animations and SMIL are rendered as a static snapshot (t=0) — motion is not captured

Width:

  • Omit width to use the SVG's own declared width/viewBox

  • Pass width to scale the output (useful for small SVGs that need a larger preview)

save_animationA

Save a rendered animation to the server output directory and return its local path.

IMPORTANT: Use this only AFTER iterating on the design with render_animation's preview/filmstrip images. Do not save on the first render.

Input: pass EITHER artifact (id from render_animation, e.g. "art-1" — preferred, no SVG resend) OR content (raw SVG string).

Output file: --<6hex>.<svg|png> inside ANIM_OUTPUT_DIR (/app). The absolute path is returned; pass it unchanged to the wiki upload tool (mediawiki-mcp upload-file).

Safety: this build always rejects unsafe SVG (script, event handlers, external href/url targets, CSS @import) and names the offending element path.

Format: 'svg' (default — the wiki serves it natively, CSS/SMIL animation preserved) or 'png' (raster still).

describe_animation_schemaA

Return the SVGConfig reference: canvas, defs, element types and their required fields, CSS/SMIL animation syntax, and the output options.

Read this once before authoring a complex config. It is cheaper than discovering field names through validation errors, and it names the two field differences that trip up most configs (text uses "content"; transform animations need transformBox + transformOrigin).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.2/5.0

Scored across 4 tools

Disambiguation4/5

The four tools have largely distinct purposes: render, preview, save, and schema reference. The only real overlap is that render_animation and preview_animation_frame both produce PNG previews, but the descriptions explicitly explain when to use each, reducing misselection risk.

Naming Consistency4/5

All names are snake_case and verb-first, with a clear domain term ('animation') appearing consistently. Minor deviation: preview_animation_frame and describe_animation_schema add an extra qualifier noun compared with render_animation and save_animation, but the pattern remains readable and predictable.

Tool Count5/5

Four tools is well-scoped for a focused SVG animation renderer. Each tool earns its place: authoring/rendering, re-previewing, saving, and schema documentation. There is no obvious bloat or missing essential operation at this surface level.

Completeness4/5

The core authoring lifecycle is covered: render with preview, inspect/re-preview, save, and consult the schema. Minor gaps exist around artifact management (e.g. list/delete/get saved artifacts), but the main workflow has no dead ends for its stated purpose.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues