Skip to main content
Glama

Draw letters

glyph_draw

Draw or redraw letters of the open font: glyphs {name: {ops, adv}}, up to 40 a call. A name is the character itself ("A", "é", "&") or its glyph name (A, eacute, ampersand, zero). ops: shapes in font units. adv: the letter's width, a number, or {lsb, rsb} (the space left and right of the ink); left out, the first drawing gets its ink's width plus its left side mirrored. add: true keeps what is there and adds to it. components [{glyph, dx, dy}] makes a letter from others (it follows them when they change). A new glyph needs u (its code point). Letters are drawn in font units: 1000 to the em, x to the right, y DOWN, the baseline at y = 0. So the cap height is y = -700, the x-height y = -500, the ascender -800 and the descender +200 (unless font_metrics changed them). A letter starts at x = 0 on the left; its width (adv) is where the next one starts. Shapes are canvas ops: path {d}, rect, polygon, circle, ellipse, and group or use of them (anything else is drawn on the canvas but left out of the file). Fill only: strokes are not outlines (canvas_edit outline turns them into shapes). Counters (the hole in o, the eye of e) are found and cut for you; holes: false keeps a path as drawn. Overlapping shapes are fine: the file keeps them (merge on export joins them). A letter made from parts (Aacute is A plus acute) fills in by itself once its parts are drawn. The reply says what each letter's checks found; font_proof shows them in words.

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": {
      "glyphs": "<glyphs>"
    },
    "name": "glyph_draw"
  }
}

Input Schema

NameRequiredDescriptionDefault
nextNo
noteNowhat you drew, for the replay ("rounder bowls")
proofNoattach a proof of these letters (true), or of this text
canvasNothe font's link or id (default the one you have open)
glyphsYes
model_labelNo
expected_revisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false and openWorldHint=false; the description adds substantial context the agent could not otherwise know — a 40-glyph call cap, the font-unit coordinate system with y DOWN and a baseline at 0, the default adv derivation ('ink's width plus its left side mirrored'), that omitted 'add' replaces the drawing, that components follow their source glyphs, that counters are cut automatically unless holes:false, that overlaps are preserved in the file, and what the reply reports.

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 one dense block rather than a list, but the information order is sensible: what is drawn, then the payload, then units/coordinate frame, then shape rules, then return. Most sentences carry unique information; the cap-height/x-height/ascender/descender enumeration is somewhat expendable, but nothing is redundant enough to obstruct reading.

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 authoring tool with no output schema, the description supplies the things an agent would otherwise get wrong: units, orientation, baseline, width semantics, call limit, defaults, and a summary of what the reply contains. The notable omissions are concurrency semantics (expected_revision) and the meaning of next/note/canvas, which matter for correct invocation but not for correct drawing.

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 coverage is only 43%, so the description carries a large burden and meets it well for the dominant nested 'glyphs' parameter — name resolution (character vs glyph name), ops, adv (number or {lsb, rsb} with the mirroring default), add, components, u, holes are all explained beyond the schema. However, six top-level parameters (next, note, proof, canvas, model_label, expected_revision) receive no explanation at all, leaving the coverage gap only partly closed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource: 'Draw or redraw letters of the open font,' and immediately names the payload shape (glyphs {name: {ops, adv}}). An agent can tell this is glyph/outline authoring rather than canvas drawing or proofing, though it never names a sibling tool explicitly to contrast with.

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

Usage Guidelines3/5

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

Usage context is implied rather than stated: 'add: true keeps what is there' tells you how to append instead of replace, and 'canvas_edit outline turns them into shapes' / 'merge on export joins them' / 'font_proof shows them in words' route to related tools. There is no explicit when-to-use-this-instead-of-X statement or precondition list, so selection still requires inference.

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.