Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SQUIGLY_NAMENoThe name on Claude's cursorClaude
SQUIGLY_SPEEDNoHow fast shapes appear: `slow` (600 ms each), `normal` (300 ms), `fast` (120 ms) or `instant`. Claude can also pick a speed per drawingnormal
SQUIGLY_STATE_DIRNoWhere it keeps per-board hints~/.squigly-mcp/rooms

Instructions

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

Work on a live Squigly whiteboard (squigly.app) together with the user, who watches and draws in their browser. Start with new_board (give the user the link to open) or join_board with a link they paste. When the user says to look, check, or see what they drew, call look_at_board: it shows you the board as an image, reads its structure (boxes, arrows and what they connect, labels, notes, sketches) and lists what others changed since you last looked. Use wait_for_changes when you are taking turns and want to react once the user stops drawing. New diagrams: draw_mermaid (flowchart, sequenceDiagram, mindmap, erDiagram, classDiagram) or draw_diagram (nodes + edges), both laid out for you. Changing a diagram that is already there, including one the user drew or edited: edit_diagram, which adds, connects, updates and removes by reference (an id, a node key you used, or the text on a box) and never redraws the rest, so the user's moves and styling survive. Prefer it over redrawing. Use relayout only when the user asks to tidy or rearrange. To point things out while explaining: highlight (a temporary ring), move_cursor, add_note (a sticky note). People who follow you see your view: move_cursor with frame or zoom chooses it, to walk them through a diagram part by part. undo takes back your last change without touching the user's edits. export_board saves the board as SVG, PNG, Mermaid or JSON. Coordinates are board pixels, x right and y down. The link holds the encryption key: treat it like a password.

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
new_boardA

Creates a fresh end-to-end encrypted Squigly room and joins it. Returns the link: give it to the user to open in their browser so they can watch (and draw too). The room is saved, so the link keeps working later.

join_boardA

Joins an existing Squigly live room from its link (https://squigly.app/#room=,). Leaves any board you were on. Then look_at_board to see it.

leave_boardA

Finishes sending, removes your cursor and disconnects. The board stays as it is.

look_at_boardA

Shows you the board as an image (each shape tagged with its id), reads its structure (boxes and the text in them, frames, arrows and what both ends attach to, arrow labels, free text, freehand sketches) and lists what other people added, moved, changed or deleted since you last looked, and who. Call it whenever the user asks you to look at or check the board, or before building on something they drew.

wait_for_changesA

Waits until someone else changes the board and then pauses (so you see a finished thought, not half a stroke), then returns the same as look_at_board. For taking turns: "sketch it and I will tidy it", "circle what you mean". Returns early with nothing if the time runs out.

get_boardA

Every shape on the board with exact positions, sizes and styles, for precise edits. look_at_board is usually what you want.

draw_mermaidA

Draws Mermaid source as hand-drawn shapes, laid out for you. Supports flowchart/graph (shapes, labels, -->, -.->, ==>, -->|label|, &, chains, subgraphs), sequenceDiagram (participants, actors, ->> -->> -x -), notes, loop/alt/opt/par/critical/break blocks, autonumber), mindmap, erDiagram (entities with fields, cardinalities) and classDiagram (members, relationships). Returns ids keyed by node so you can edit_diagram it later.

draw_diagramA

Draws nodes and the edges between them, laid out automatically in layers (direction TB, LR, BT or RL), with optional dashed group frames. You choose keys, labels, shapes and colors; it picks every coordinate. To change it afterwards use edit_diagram with the same keys.

edit_diagramA

Changes what is already on the board, whoever drew it, without redrawing the rest: the user's moves, colours and text stay as they are. Refer to shapes by id, by a node key you used before, or by the text on them (e.g. "API"). New nodes go next to what they connect to, continuing the flow; their arrows are drawn as they appear. remove takes a box's arrows and labels with it. relayout slides the connected boxes into a fresh tidy layout (only when asked to tidy or rearrange).

add_shapesA

Adds individual shapes: rect, ellipse, diamond (with an optional label inside), text, line, arrow (points, or from_id/to_id to join two shapes, which then stay joined when moved) and draw (a freehand stroke). For diagrams, draw_mermaid, draw_diagram and edit_diagram place things for you.

update_shapesA

Changes shapes by reference: move them (dx/dy, or new x/y), resize, relabel, recolor or restyle. Fields you leave out stay as they are, and arrows attached to a moved box follow it. For lines and arrows, points replaces the whole path.

delete_shapesA

Removes exactly these shapes, for everyone. (edit_diagram remove also takes a box's arrows and labels.)

clear_boardA

Deletes EVERY shape on the board, including what other people drew. Only when the user asks for a clean board. undo brings it back.

undoA

Takes back your last change(s) to the board (a drawing, an edit, a clear). Anything someone else has changed since is left as they made it, and reported as kept.

set_titleB

Sets the board's title for everyone.

highlightA

Draws a ring around shapes while you talk about them, then takes it away by itself after a few seconds. Returns right away.

add_noteA

Puts a sticky note on the board, next to a shape (with a short arrow to it) or in free space. It finds room so it covers nothing.

move_cursorA

Moves your cursor, which everyone on the board sees. Point at a shape while you explain it, or go to x/y. With none of the options, it parks just outside the drawing, out of the way. (Drawing tools already park it when they finish.)

People who click Follow on you see your view, zoom included. Choose it with frame (fit these shapes, or "all" for the whole board), zoom (1 = actual size, 2 = twice as close, 0.5 = further out, centred where the cursor goes) or view (an exact board rectangle). Use it to walk people through a diagram: frame a part, explain it, frame the next. The view stays until you change it or draw; pointing outside it pans it along at the same zoom. It can only steer people who are following you.

export_boardA

Writes the board (or some shapes and what connects them) to a file: svg or png (a picture), mermaid (a flowchart read back from the boxes and arrows, to keep in docs and redraw later) or json (the raw shapes). Relative paths are from the directory Claude Code was started in.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 19 tools

Disambiguation4/5

Most tools have clearly distinct roles, and the descriptions actively steer the agent (e.g. look_at_board vs get_board: 'look_at_board is usually what you want'; edit_diagram remove vs delete_shapes). The main soft spots are update_shapes vs edit_diagram (both edit existing shapes by reference) and move_cursor, whose description also covers follow/view/zoom steering that has no tool of its own, which muddies what that tool actually does.

Naming Consistency4/5

The set follows a verb_noun pattern almost throughout (join_board, look_at_board, add_shapes, delete_shapes, draw_diagram, edit_diagram, export_board). Minor deviations: new_board uses an adjective rather than a verb (create_board would match), and undo/highlight are bare verbs, but nothing is ambiguous or mixed-convention in style.

Tool Count4/5

At 19 tools this is slightly above the comfortable range, but the domain is broad (live collaboration, freehand drawing, diagram generation/editing, export), and each tool covers a genuinely separate capability rather than a duplicate. It sits just short of feeling padded.

Completeness4/5

The lifecycle is well covered: create/join/leave a room, read (visual + exact), add/update/delete/clear shapes, undo, diagrams in and out, export to four formats, presence (cursor, highlight, wait_for_changes). Gaps are minor: no redo to pair with undo, no way to delete/close or list rooms, and follow/view control is only exposed as options on move_cursor rather than its own operation.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues