Skip to main content
Glama

download_font

Idempotent

Downloads fonts from Google Fonts or direct URLs, caches them locally, and prepares them for embedding in SVGs via render_svg.

Instructions

Download a font from Google Fonts or a direct URL for use in SVG rendering. Fonts are cached locally and can be embedded in SVGs via render_svg. Popular fantasy/map fonts: Cinzel, Pirata One, MedievalSharp, UnifrakturMaguntia, Almendra.

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": {
      "source": "<source>"
    },
    "name": "download_font"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesFont source - either Google Fonts or a direct URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true, idempotentHint=true and readOnlyHint=false, and the description adds the reason for the write hint: fonts are cached locally. It also discloses the downstream effect (embeddable in SVGs) and external fetching. No detail on failure modes for invalid families/URLs or on cache invalidation, so it stays below full marks.

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?

Three short sentences with the action and supported sources front-loaded, followed by the caching/embedding behavior and a practical example list. The font examples earn their place for the map/fantasy use case, though the definition could be trimmed slightly without losing meaning.

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?

For a single-parameter tool with a fully documented schema and no output schema, the description covers sourcing, caching, and downstream use. Missing only error/edge behavior (unknown family, invalid file type) which an agent could reasonably need.

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 coverage is 100%, so both the google family/weight and url/name branches are already documented, giving a baseline of 3. The 'popular fantasy/map fonts' list mildly supplements family naming, but it largely repeats the schema's own example values ('Cinzel', 'Pirata One', 'MedievalSharp').

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?

States a concrete verb and resource ('Download a font') plus both supported source modes (Google Fonts or a direct URL) and the end purpose (SVG rendering). It does not explicitly distinguish itself from the sibling list_fonts, which is the most likely confusion point, so it stops short of a 5.

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 clear when-to-use context: fetch a font so it can be embedded via render_svg, which routes the agent into the correct workflow. There is no explicit when-not guidance (e.g., use list_fonts first to see what is already cached), but the usage context is unambiguous.

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