Skip to main content
Glama

Space and set the font

font_metrics

Change the font's spacing and settings: metrics {ascender, descender, capHeight, xHeight, lineGap}; glyphs {name: {lsb, rsb} or {adv}} (sides or widths); auto_space: true spaces the straight and round letters from n, o, H and O; kern {"A V": -70, "T o": -40} (null removes a pair); classes {"@round": ["O", "C", "G"]} for kerning many letters at once (Studio Plus); and family, style, weight, italic, note, licence, designer. Moving a letter's left side moves its drawing; its width follows. transform {weight -60 to 60, contrast -40 to 40, width 0.6 to 1.6, round 0 to 120, xheight 0.8 to 1.25, slant -20 to 20} reshapes every letter at once, as one change undo takes back: weight thickens (or, negative, thins) the strokes, in font units; contrast thickens the up-and-down strokes against the across ones; width scales widths and shapes (1.06 is 6% wider); round rounds the corners by that radius; xheight raises the lowercase (1.05 is 5% taller); slant leans the letters by degrees. Try first: heavier {"weight":12}; lighter {"weight":-10}; narrower {"width":0.94}; wider {"width":1.06}; rounder corners {"round":22}; taller x-height {"xheight":1.05}; more contrast {"contrast":10}; slant {"slant":7}. A font based on an open font keeps the Open Font License: its licence can't change.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "font_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
kernNo
noteNo
styleNo
canvasNo
familyNo
glyphsNo
italicNo
weightNo
classesNo
licenceNo
metricsNo
designerNo
transformNoreshape every letter at once (one undoable change), alone in its call
auto_spaceNo
model_labelNo
expected_revisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/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 goes well beyond that by disclosing cascading side effects ('Moving a letter's left side moves its drawing; its width follows'), the undo granularity of transform ('as one change undo takes back'), a destructive sub-behavior ('null removes a pair'), a plan gate ('Studio Plus' for classes), and a hard constraint ('A font based on an open font keeps the Open Font License: its licence can't change'). It does not address concurrency/revision semantics or what the call returns, which keeps it from a 5.

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

Conciseness3/5

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

Nearly all content earns its place given 16 parameters at 6% schema coverage, and the purpose is front-loaded. The problem is structure: the core is a single semicolon-chained mega-sentence with nested brace notation that is hard to parse, and the 'Try first' examples could have been tightened. Dense is warranted here, but readable formatting is not achieved.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 16-parameter mutation tool with no output schema and near-zero schema documentation, the description covers the domain thoroughly — but leaves gaps an agent would hit in practice: what the call returns (updated metrics? a new revision?), what canvas and model_label select, and why expected_revision exists. It also never states whether omitted fields are left untouched or reset.

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?

With only 6% schema description coverage across 16 parameters, the description carries almost the entire burden and largely succeeds: it names all five metrics fields, explains the lsb/rsb-vs-adv distinction, defines kerning pair syntax with a null convention, gives class syntax, and defines every transform sub-parameter with both range and physical meaning ('width 1.06 is 6% wider', 'slant leans the letters by degrees'). Three parameters — canvas, model_label, and expected_revision — receive no explanation at all, leaving the revision/concurrency parameter undocumented.

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 ('Change the font's spacing and settings') and then enumerates the exact editable surface: metrics, per-glyph sidebearings/advances, auto-spacing, kerning pairs, kerning classes, font identity fields, and a global transform. This makes it unmistakably a metric/typographic-settings tool rather than a drawing tool like glyph_draw or canvas_draw. It never names or contrasts a sibling explicitly, so it stops short of a 5.

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 is implied by the field list rather than stated: an agent infers 'use this to adjust spacing/metrics'. The 'Try first' block gives concrete starting values (e.g. {"weight":12}, {"width":0.94}) which is genuinely useful guidance for choosing parameter values. However, there is no when-to-use/when-not-to-use, no routing to alternatives such as font_check or glyph_draw, and no statement of prerequisites (the 'alone in its call' constraint for transform lives in the schema, not the description).

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.