Skip to main content
Glama
midarikawa

Aseprite MCP Tools

by midarikawa

measure_text

Measure text dimensions without rendering it to size panels or center labels accurately, avoiding guesswork and re-rendering.

Instructions

Measure text without drawing it.

Use this to size a panel or centre a label in one shot instead of guessing and re-rendering.

Args: text: The string to measure font: Font name from list_text_fonts, or a path to a .ttf/.otf or bitmap font directory size: Pixel size for TrueType fonts; integer scale factor for bitmap fonts (default 1) letter_spacing: Extra pixels between glyphs (default 0) bold: Faux-bold passes; each grows strokes by 1px (default 0) antialias: Keep greyscale edges instead of hard pixels (default False)

Returns: width, height, advance_width, and the ink extents above/below the baseline.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
boldNo
fontYes
sizeNo
textYes
antialiasNo
letter_spacingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it delivers: it clarifies this is a non-rendering measurement operation and describes the return shape (width, height, advance_width, ink extents above/below baseline). It does not state whether the canvas/sprite must exist or what font-loading failures do, but the core behavioral profile is clear.

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?

Front-loads the key distinction ('without drawing it') in the first line, then a use-case sentence, then structured Args/Returns. Slightly verbose in the bold/antialias lines but every line carries parameter meaning that the schema lacks.

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 read-only measurement tool with no annotations and no output schema, the description supplies the return fields and full parameter semantics. Minor omission: it does not reference list_text_fonts as a prerequisite step or confirm it is side-effect free, but nothing critical for correct invocation is missing.

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 0%, so the description must compensate, and it does for all six parameters: text, font source including list_text_fonts and file/dir paths, size semantics differing between TrueType (pixels) and bitmap (scale factor), plus letter_spacing, bold, and antialias semantics. This adds substantial meaning beyond the bare 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?

States a specific verb (measure) and resource (text) with explicit scope: 'without drawing it.' This distinguishes it cleanly from the sibling draw_text, which is the obvious alternative an agent might otherwise pick.

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?

Gives a concrete use case ('size a panel or centre a label in one shot instead of guessing and re-rendering') which clearly implies when to use it. It does not name draw_text as the contrasting alternative, so it stops short of explicit alternative routing.

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

Deploy Server

Other Tools