Skip to main content
Glama

studio_add_font

Add a font file (TTF, OTF, WOFF or WOFF2) to a Design Studio file so text can use it by family name — for fonts that aren't on Google Fonts. Give either a public https URL or the file as base64. TTF, OTF and WOFF embed in PDF exports. Replaces a font of the same family. Changes are saved to the cloud file; an editor tab that already has the file open must be reloaded to see them (and would overwrite them if it saves first). Requires auth (write).

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": {
      "document_id": "<document_id>",
      "family": "<family>"
    },
    "name": "studio_add_font"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNohttps URL of the font file
familyYesFamily name text elements will use, e.g. 'Helyna'
data_base64NoThe font file, base64-encoded
document_idYesStudio document UUID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/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: it discloses replace-same-family semantics, which formats embed in PDF exports, that changes persist to the cloud file, the stale-editor-tab reload/overwrite hazard, and that write auth is required. The overwrite warning is exactly the kind of non-obvious destructive behavior an agent needs before calling.

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?

Roughly five short sentences, front-loaded with what the tool does, then constraints, then side effects. Every sentence adds a fact the caller needs; nothing is padding or restated from the schema.

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 4-parameter mutation tool with no annotations and no output schema, the definition covers input alternatives, format limitations, replacement behavior, persistence, concurrency hazard, and auth. An agent has enough to call it correctly and to warn the user about the overwrite case.

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 genuine meaning: the URL must be public https, the two file inputs are alternatives ('give either'), and family is the name text elements will use. It does not clarify which of url/data_base64 is required when, but nothing is misleading.

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 specific verb (add) and resource (font file) plus the concrete scope: custom fonts not on Google Fonts, added to a Design Studio file so text can reference them by family name. That distinguishes it from the sibling element/frame tools without needing their schemas.

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

Usage Guidelines4/5

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

Gives an explicit use condition ('for fonts that aren't on Google Fonts') and the two input routes (public https URL or base64 file), which is real when-to-use guidance. It stops short of naming a sibling or explicitly excluding the built-in/Google Fonts path, so no alternative is named.

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