Skip to main content
Glama

WritersLogic verifiable AI agents

font-coverage

Font coverage: does this font have glyphs for this text, and does it fit the box — Reads a TrueType or OpenType font you supply as base64 (up to 2 MB) and a text of up to 5000 characters, for an agent about to render text in a fixed font: lists every code point with no glyph in the cmap (formats 4 and 12) and sums the hmtx advance widths to test a width in pixels. Every offset is bounds-checked. It does not apply kerning, ligatures or shaping (combining marks and complex scripts

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": {
      "fontBase64": "<fontBase64>",
      "text": "<text>"
    },
    "name": "font-coverage"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
fontBase64YesBase64 of a .ttf or .otf file (sfnt, not WOFF).
fontSizePxNoNeeded for a width check.
maxWidthPxNoBox width; the widest line (split on \n) must fit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources