Skip to main content
Glama
nmassi

glyphs-mcp

by nmassi

analyze_kerning

Diagnoses kerning problems across masters—missing pairs, sign flips, outliers, redundant exceptions, and ungrouped glyphs—and outputs a markdown report.

Instructions

Analyze kerning quality across all masters.

RECIPE: For kerning from scratch, call get_recipe("kerning_from_scratch") first — it covers group assignment, critical pairs, and verification.

Checks for:

  • Cross-master missing pairs (pair in some masters but not all — causes interpolation jumps)

  • Cross-master sign changes (positive in one master, negative in another)

  • Outlier values (extreme kerning > 40% of UPM)

  • Redundant exceptions (glyph-level overrides that match group value — can be removed)

  • Group orphans (Letter glyphs missing kerning group assignments)

Returns a formatted markdown report without modifying glyph colors. When mark_glyphs=True, marks cross-master issues red and warnings yellow.

Args: master_id: Optional master ID (cross-master checks always run across all masters) mark_glyphs: Color glyphs by verdict only when explicitly requested

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
master_idNo
mark_glyphsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and handles it well. It discloses that the tool returns a formatted markdown report, does not modify glyph colors by default, and only colors glyphs when mark_glyphs=True. It also clarifies the cross-master behavior of master_id. This is transparent about side effects and scope.

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 appropriately detailed for a complex analysis tool. It is front-loaded with the core purpose, then uses a bulleted list for checks and a compact Args section. Every sentence earns its place, including the recipe pointer and side-effect note.

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?

Given the tool has no annotations and multiple behavioral nuances, the description covers the key aspects: input parameters, side effects, checks performed, and return format. An output schema exists, so not detailing the full report fields is acceptable. Minor gaps remain, such as not mentioning whether the analysis requires any permissions or what 'verdict' precisely means, but overall it is complete enough for correct invocation.

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 for the bare schema. It does: master_id is explained as optional with cross-master checks always running across all masters, and mark_glyphs is explained as coloring glyphs by verdict only when explicitly requested. This adds real meaning beyond the schema's titles and defaults.

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 and resource: 'Analyze kerning quality across all masters.' It enumerates exactly what checks are performed (missing pairs, sign changes, outliers, redundant exceptions, group orphans). However, it does not explicitly differentiate itself from the nearby sibling analyze_kerning_groups, which could overlap on the group-orphans check.

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?

The description gives useful context: for kerning from scratch, call get_recipe('kerning_from_scratch') first, which implies this tool is for analyzing existing kerning rather than creating it. However, it does not explicitly state when to use this tool versus alternatives like analyze_kerning_groups or get_kerning, and there are no clear exclusion conditions.

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