Skip to main content
Glama

draw

Creates a character, object, or place in the current style’s format, saves it to the library, and optionally adds it to a shot. Use describe first to get the exact format and required fields.

Instructions

Draw a new character, object or place yourself, free, in the current style's own format, and add it to the person's library: a character or object also joins the shot's cast, a place becomes the shot's place (add_to_shot: false only saves it). Use it for simple things the style doesn't have; for a photo-like picture use generate_picture (paid). No Claude usage or credits are spent: you send the drawing as plain data and Dinoctor checks it (bad fields are dropped; a drawing that fails is refused with the reason). action draw (default) sends the drawing; action describe (read-only) returns the exact format for that kind in the current style (or style), with the look the style wants and an example when it has one: read it before drawing. Formats in short: Pixel = {"name","rows":["..##..",...],"colors":{"#":"#535353"}} (up to 28x28, '.' empty; a character also has "eyes":[[col,row]],"mouth":[col,row], faces right and is at least 20 columns wide); Toon character = {"name","skin","shirt","pants","hair":"tuft|bob|ears|antennae|cap|horns|none","hairColor","snout","tail","wide","tall"}, Toon object = {"name","w","h","shapes":[{"type":"rect|ellipse|poly","x","y","w","h","color","points"}]} (y up is negative, stands on y 0); Voxel = {"name","boxes":[{"at":[x,y,z],"size":[w,h,d],"color"}]} (a character's boxes also have "part":"body|legL|legR|armL|armR", plus "eyes","mouth","faceZ"); other styles have their own format (action describe). Places in every style: {"name","sky","horizon","floor","dark","stars","clouds","orb","items":[{"kind","x","z","size"}]}. Returns the new id. Then use look_at_shot to check it.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "kind": "<kind>"
    },
    "name": "draw"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNodraw, character or object: left to right, about -6 to 6. Empty spaces it automatically.
kindYesWhat you draw.
shotNoShot index from 0 inside that scene (with scene; alone: in the scene on screen). A shot id works here too.
sizeNodraw, character or object: 1 is normal.
sceneNoScene index from 0 (with shot). Used when shot_id isn't given.
styleNodescribe: a style id. Default: the project's style.
actionNodraw (default) sends a drawing; describe returns the format to use.
drawingNodraw: ONE drawing object in the style's format (not an array).
shot_idNoThe shot's id from get_project. Or give scene and shot instead. Left out: the shot on screen.
add_to_shotNodraw: false only saves it to the library. Default true: a character or object joins the shot's cast, a place becomes the shot's place.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false), it discloses that no credits or Claude usage are spent, that the payload is validated server-side with bad fields dropped and failures refused with a reason, and that the default behavior mutates the shot's cast/place. That is meaningful behavioral context the structured fields do not carry, though it doesn't cover side effects like overwriting an existing library entry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with purpose and routing before the format details, and nearly every clause carries information (costs, validation, default side effects, sibling routing). The long inline format dump is dense and would scan better as a compact list, but it is not padding.

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?

For a 10-parameter, nested-payload tool it covers the essentials: preconditions (describe first), scoping (shot_id/scene/shot), side effects, and next step (look_at_shot). It also notes 'Returns the new id' in lieu of an output schema, so the missing output schema is adequately compensated.

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?

Schema description coverage is already 100%, so the baseline is 3; the description goes further by giving concrete shape examples for Pixel, Toon, and Voxel drawings plus the universal place schema, which the schema leaves entirely opaque (drawing is additionalProperties:{}). It sensibly defers exact per-style formats to action=describe rather than pretending the abbreviation is complete.

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 opening states a concrete verb and three resource kinds (character, object, place), where the result lands (the person's library, the shot's cast/place), and names the sibling it is not: 'for a photo-like picture use generate_picture (paid)'. The dual action (draw vs describe) is spelled out so an agent knows the tool also serves as a format lookup.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit gates: use it for simple things the style doesn't have, use generate_picture for photo-like output, call action=describe and 'read it before drawing', and 'Then use look_at_shot to check it'. add_to_shot:false is explained as a save-only variant, and the paid/free distinction is stated so cost tradeoffs are visible.

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