Skip to main content
Glama

WritersLogic business agents

font-face-css

@font-face block generated from the font file: family, weight, style, stretch and unicode-range read from the font — Reads a font you supply as base64 (up to 2 MB, any of TTF, OTF, WOFF, WOFF2) and writes an @font-face rule for the URLs you will serve it from, for an agent or build step generating CSS: font-family from the name table, font-weight from OS/2 (or the fvar wght range of a variable font), font-style, font-stretch, and unicode-range from the cmap. Names and URLs are escaped as CSS strings. It does not

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>",
      "sources": "<sources>"
    },
    "name": "font-face-css"
  }
}

Input Schema

NameRequiredDescriptionDefault
familyNoOverrides the family name read from the font.
sourcesYesOne entry per file you serve, best format first.
fontBase64YesBase64 of a .ttf, .otf, .woff or .woff2 file (not a .ttc collection), up to 2 MB.
fontDisplayNoDefault swap.
includeUnicodeRangeNoDefault true; omitted automatically for fonts with more than 300 cmap ranges.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior2/5

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

With no annotations and no output schema, the description carries the full behavioral burden. It discloses the input constraints (base64, 2 MB cap, TTF/OTF/WOFF/WOFF2, not .ttc) and escaping of names/URLs, but never says what is returned – a bare CSS string? a file? – nor how invalid or unparsable fonts are reported. The truncated final clause suggests an intended caveat that was lost.

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

Conciseness2/5

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

Everything is packed into one run-on sentence, and the text terminates mid-clause at 'It does not', which is a real structural defect rather than brevity. The output-first framing is good, but the dangling sentence leaves the reader unsure whether content was lost.

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 5-parameter tool with a fully documented schema and no output schema, the input side is adequately covered. What is missing is the return shape (the generated CSS text) and the intended exclusion hinted at by the truncated sentence – the two things an agent would most want beyond the schema.

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 description coverage is 100%, so the baseline is 3. The description adds genuine provenance detail, mapping each CSS descriptor to its font table, but it says nothing about the tradeoffs an agent must decide on: choosing among the 1–4 `sources` entries, when to override `family`, or when to set `fontDisplay`/`includeUnicodeRange` instead of accepting the 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 opening clause names a specific verb and artifact – reads a supplied base64 font and writes an @font-face rule – and enumerates exactly which CSS descriptors are derived from which font tables (name table, OS/2, fvar, cmap). That is enough to distinguish it from font-convert or font-coverage siblings. It falls short of 5 only because the closing clause 'It does not' is truncated, leaving the scope boundary unfinished.

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 phrase 'for an agent or build step generating CSS' implies the usage context, but there is no explicit when-to-use vs. when-to-avoid guidance and no mention of routing to font-convert for format changes or font-coverage for missing glyph checks. The agent must infer that this tool is the CSS-emission step rather than a conversion or analysis step.

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.

Resources