Skip to main content
Glama

Add a font

add_font

Converts an uploaded font file into a selectable font for all accounts, rejecting unsupported or duplicate font families before installation.

Instructions

Admins only: turn an upload (POST /api/upload with the file; .ttf, .otf, .woff, .woff2, up to 30 MB) into a font every account can pick. The family is read from the file, and a file the renderer cannot draw is refused, as is a family already installed (remove_fonts it first to replace it). Returns the font as list_fonts shows it.

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": {
      "uploadId": "<uploadId>"
    },
    "name": "add_font"
  }
}

Input Schema

NameRequiredDescriptionDefault
uploadIdYesThe upload holding the font file

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.45.3

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it discloses the admin-only authorization requirement, the format/size constraints, that family name is derived from the file, and that unusable or duplicate files are refused. It stops short of stating what the mutation changes about existing fonts or whether the operation is reversible, but the main behavioral risks are covered.

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?

Two sentences, front-loaded with the admin constraint and the precondition, and every clause (formats, size cap, refusal rules, return shape) is actionable. It is dense with parentheticals, which slightly slows parsing, but nothing is filler.

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

Completeness5/5

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

For a one-parameter mutation with no annotations or output schema, the definition supplies the permission gate, the upload precondition, validation behavior, and a cross-reference to list_fonts for the response shape. An agent has everything needed to call it correctly.

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 coverage is 100%, so the baseline is 3, but the description adds meaning the schema lacks by explaining that uploadId must come from a prior POST /api/upload and that the file's contents (not a parameter) determine the family. That is genuine guidance about how to supply the single parameter.

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 concrete verb+resource ('turn an upload ... into a font') and explicitly frames it against siblings, naming remove_fonts for replacement and list_fonts for the return shape. An agent can distinguish this from list_fonts and remove_fonts without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives the admin-only prerequisite, the prior step required (POST /api/upload with the file), the accepted formats and 30 MB limit, and an explicit alternative path: call remove_fonts first when a family is already installed. When-to-use and when-blocked are both spelled out.

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