Skip to main content
Glama

draw

Draw or update boxes, text, arrows and frames. Connect shapes by their ids using an arrow's from and to fields. The board calculates arrow geometry. Give new shapes ids to connect them or put them in a frame in the same call. Omit x and y to let the board place new shapes below what is already there. Boxes size to fit their text and frames wrap their contents.

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": {
      "board": "<board>",
      "shapes": "<shapes>"
    },
    "name": "draw"
  }
}

Input Schema

NameRequiredDescriptionDefault
boardYesThe board's id, as in its URL.
shapesYes
directionNoWhich way arrows run between the shapes the board places: right unless given.

Output Schema

NameRequiredDescriptionDefault
idsYesEach shape's id, in the order given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / description
      Added value: +"Draw or update boxes, text, arrows and frames. Connect shapes by their ids using an arrow's from and to fields. The board calculates arrow geometry. Give new shapes ids to connect them or put them in a frame in the same call. Omit x and y to let the board place new shapes below what is already there. Boxes size to fit their text and frames wrap their contents."
    • removedInput schema / properties / shapes / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / shapes / items / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "color": {
      +        "description": "Stroke color, as a CSS color.",
      +        "type": "string"
      +      },
      +      "fill": {
      +        "description": "A box's background, as a CSS color.",
      +        "type": "string"
      +      },
      +      "fontSize": {
      +        "description": "The text's size in pixels: 20 unless given, 28 or 36 for a heading.",
      +        "maximum": 200,
      +        "minimum": 8,
      +        "type": "number"
      +      },
      +      "frame": {
      +        "description": "The id of the frame the shape sits in. An empty string takes it out.",
      +        "type": "string"
      +      },
      +      "from": {
      +        "description": "The id of the shape an arrow leaves.",
      +        "type": "string"
      +      },
      +      "height": {
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "id": {
      +        "description": "Names the shape. The id of a shape on the board changes that shape, keeping the fields you leave out.",
      +        "maxLength": 64,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "stroke": {
      +        "description": "The line of a box's outline or an arrow.",
      +        "enum": [
      +          "solid",
      +          "dashed",
      +          "dotted"
      +        ],
      +        "type": "string"
      +      },
      +      "text": {
      +        "description": "The label of a box or an arrow, what a text shape says, or a frame's name.",
      +        "maxLength": 2000,
      +        "type": "string"
      +      },
      +      "to": {
      +        "description": "The id of the shape an arrow points at.",
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "Required for a new shape.",
      +        "enum": [
      +          "rectangle",
      +          "ellipse",
      +          "diamond",
      +          "text",
      +          "frame"
      +        ],
      +        "type": "string"
      +      },
      +      "width": {
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "x": {
      +        "description": "Left edge, in pixels. Leave out x and y of a new shape to have the board place it.",
      +        "type": "number"
      +      },
      +      "y": {
      +        "description": "Top edge, in pixels. y grows downward.",
      +        "type": "number"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "color": {
      +        "description": "Stroke color, as a CSS color.",
      +        "type": "string"
      +      },
      +      "fill": {
      +        "description": "A box's background, as a CSS color.",
      +        "type": "string"
      +      },
      +      "fontSize": {
      +        "description": "The text's size in pixels: 20 unless given, 28 or 36 for a heading.",
      +        "maximum": 200,
      +        "minimum": 8,
      +        "type": "number"
      +      },
      +      "frame": {
      +        "description": "The id of the frame the shape sits in. An empty string takes it out.",
      +        "type": "string"
      +      },
      +      "from": {
      +        "description": "The id of the shape an arrow leaves.",
      +        "type": "string"
      +      },
      +      "height": {
      +        "description": "Ignored for arrows. The board derives it from the connected shapes.",
      +        "type": "number"
      +      },
      +      "id": {
      +        "description": "Names the shape. The id of a shape on the board changes that shape, keeping the fields you leave out.",
      +        "maxLength": 64,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "stroke": {
      +        "description": "The line of a box's outline or an arrow.",
      +        "enum": [
      +          "solid",
      +          "dashed",
      +          "dotted"
      +        ],
      +        "type": "string"
      +      },
      +      "text": {
      +        "description": "The label of a box or an arrow, what a text shape says, or a frame's name.",
      +        "maxLength": 2000,
      +        "type": "string"
      +      },
      +      "to": {
      +        "description": "The id of the shape an arrow points at.",
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "arrow",
      +        "type": "string"
      +      },
      +      "width": {
      +        "description": "Ignored for arrows. The board derives it from the connected shapes.",
      +        "type": "number"
      +      },
      +      "x": {
      +        "description": "Ignored for arrows. The board derives it from the connected shapes.",
      +        "type": "number"
      +      },
      +      "y": {
      +        "description": "Ignored for arrows. The board derives it from the connected shapes.",
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties / shapes / items / properties
      Removed value: -{
      -  "color": {
      -    "description": "Stroke color, as a CSS color.",
      -    "type": "string"
      -  },
      -  "fill": {
      -    "description": "A box's background, as a CSS color.",
      -    "type": "string"
      -  },
      -  "fontSize": {
      -    "description": "The text's size in pixels: 20 unless given, 28 or 36 for a heading.",
      -    "maximum": 200,
      -    "minimum": 8,
      -    "type": "number"
      -  },
      -  "frame": {
      -    "description": "The id of the frame the shape sits in. An empty string takes it out.",
      -    "type": "string"
      -  },
      -  "from": {
      -    "description": "The id of the shape an arrow leaves.",
      -    "type": "string"
      -  },
      -  "height": {
      -    "exclusiveMinimum": 0,
      -    "type": "number"
      -  },
      -  "id": {
      -    "description": "Names the shape. The id of a shape on the board changes that shape, keeping the fields you leave out.",
      -    "maxLength": 64,
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  "stroke": {
      -    "description": "The line of a box's outline or an arrow.",
      -    "enum": [
      -      "solid",
      -      "dashed",
      -      "dotted"
      -    ],
      -    "type": "string"
      -  },
      -  "text": {
      -    "description": "The label of a box or an arrow, what a text shape says, or a frame's name.",
      -    "maxLength": 2000,
      -    "type": "string"
      -  },
      -  "to": {
      -    "description": "The id of the shape an arrow points at.",
      -    "type": "string"
      -  },
      -  "type": {
      -    "description": "Required for a new shape.",
      -    "enum": [
      -      "rectangle",
      -      "ellipse",
      -      "diamond",
      -      "text",
      -      "arrow",
      -      "frame"
      -    ],
      -    "type": "string"
      -  },
      -  "width": {
      -    "exclusiveMinimum": 0,
      -    "type": "number"
      -  },
      -  "x": {
      -    "description": "Left edge, in pixels. Leave out x and y of a new shape to have the board place it.",
      -    "type": "number"
      -  },
      -  "y": {
      -    "description": "Top edge, in pixels. y grows downward.",
      -    "type": "number"
      -  }
      -}
    • removedInput schema / properties / shapes / items / type
      Removed value: -"object"
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the minimal destructiveHint=false annotation, the description explains important behavioral traits: the board calculates arrow geometry, auto-places new shapes when x/y are omitted, sizes boxes to text, and wraps frame contents. It also explains how new shape ids enable same-call connections and framing.

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 front-loaded and efficient. Each sentence conveys useful behavior or usage information without repetition, and the key drawing semantics are stated before lower-level placement details.

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 complex drawing tool with a rich input schema and an output schema, the description covers the essential behavioral model: shape ids, arrow connections, auto-placement, and sizing. Some parameter details, such as direction and width/height handling, are left to the schema, which is reasonable but keeps it short of complete.

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 adds meaningful semantics beyond the schema for key parameters: from/to connect arrows by shape id, x/y omission triggers automatic placement, and ids allow new shapes to be connected or framed. It does not mention the direction parameter or width/height behavior, leaving some schema-documented details to the schema.

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 begins with a specific verb and resource set: 'Draw or update boxes, text, arrows and frames.' It clearly distinguishes the tool from read-only or erase siblings by describing drawing and updating board content, including shape connection and placement behavior.

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 gives clear usage context: use it to draw or update shapes, connect shapes by ids, and omit x/y for automatic placement. It does not explicitly compare against alternatives such as erase or read_board, so it falls short of full when-to-use/when-not-to-use guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.