Skip to main content
Glama

Fluid type scale

type_scale
Read-only

Generates responsive CSS clamp() type scales with named ratios, per-step line-height and letter-spacing, and continuous sizing between two viewports for modular typography.

Instructions

Builds a modular type scale that grows smoothly between two viewports, as CSS clamp() values, with line-height and letter-spacing per step. Named ratios: minor-second, major-second, minor-third, major-third, perfect-fourth, augmented-fourth, perfect-fifth, golden-ratio.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "type_scale"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxBaseNoBody size in px on large screens
minBaseNoBody size in px on small screens
stepsUpNo
maxRatioNomajor-third
minRatioNominor-third
stepsDownNo
maxViewportNo
minViewportNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description does add real value by disclosing the return shape (clamp() expressions plus line-height and letter-spacing per step), but with no output schema it says nothing about ordering, units, or how step count affects the returned list.

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 front-loaded sentences: capability first, then the ratio vocabulary. The trailing ratio list is long but functional as a lookup, though it largely duplicates the enum already present in the schema.

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 an 8-parameter generator with no output schema, the description explains what is produced but not how the undocumented parameters (steps, viewport range, numeric ratio bounds) shape that output. Adequate to select the tool, thin for invoking it correctly.

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?

Only 2 of 8 parameters have schema descriptions (25% coverage), so the description must carry weight; it partially does by evoking the two-viewport growth and by enumerating the named ratios used by minRatio/maxRatio. It says nothing about stepsUp/stepsDown or viewport bounds, leaving half the parameters undocumented in either place.

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 and resource ('Builds a modular type scale') and immediately names the output artifact (CSS clamp() values with per-step line-height and letter-spacing), which is exactly the distinction an agent needs versus a sibling like spacing_scale.

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?

Usage is only implied: the description makes clear this is for fluid typographic scales, but it gives no when-to-use/when-not guidance and never routes the agent to or away from siblings such as spacing_scale or export_tokens.

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