Skip to main content
Glama

Get font CSS

get_font_css
Read-onlyIdempotent

Use this when the person wants to use fonts on a web page, in an app or in a design tool that takes CSS. ids are 1 to 4 family ids, like "lora" or "space-mono". weights are 100 to 900; each family gets the ones it has, its regular and bold when left out. italic adds the italic of each weight a family has. For a Next.js or Tailwind project, give the nextjs or tailwind lines. Not for downloading font files to install on a computer. Answers one stylesheet link from cdn.onlyfonts.ai that loads every family asked for, the same as an @import line, each family's font-family line with a fallback, and the same ready for Next.js and for Tailwind CSS.

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": {
      "ids": "<ids>"
    },
    "name": "get_font_css"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYes1 to 4 family ids
italicNo
weightsNo

Output Schema

NameRequiredDescriptionDefault
urlYes
linkYes
importYes
nextjsYes
familiesYes
tailwindYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / properties / nextjs
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / tailwind
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "link",
      -  "import",
      -  "url",
      -  "families"
      -]New value: +[
      +  "link",
      +  "import",
      +  "url",
      +  "families",
      +  "nextjs",
      +  "tailwind"
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so safety is covered. The description adds substantive context: the response is one stylesheet link from cdn.onlyfonts.ai, an equivalent @import line, per-family font-family lines with fallback, and Next.js/Tailwind variants. It does not discuss rate limits or failure behavior, so not a 5.

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?

Dense but front-loaded: usage condition first, then parameter semantics, then output contents. The final sentence is long and list-heavy, and a couple of clauses are duplicated, but nearly every sentence carries information.

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?

An output schema exists, yet the description still spends its last third enumerating return artifacts, which is somewhat redundant. It never states the full set of valid font ids or that ids must be family ids from search_fonts/get_font, a gap for an id-driven tool with only 33% schema coverage.

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 only 33%, so the description must carry meaning, and it does: ids are family ids like "lora" or "space-mono", weights range 100-900 with per-family defaults to regular and bold, and italic adds each available italic weight. Absent detail is what happens when a requested weight doesn't exist beyond the 'each family gets the ones it has' hint.

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?

Names a specific verb and resource (get font CSS) and disambiguates from get_font by stating the deliverable is a stylesheet/import line rather than font metadata. The 'Not for downloading font files' clause further separates it from file-download siblings.

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?

Explicit when-to-use framing ('when the person wants to use fonts on a web page, in an app or in a design tool that takes CSS') plus an explicit exclusion ('Not for downloading font files to install on a computer'). It also gives conditional guidance to request the nextjs or tailwind lines for those projects.

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