Skip to main content
Glama

create_text_style

Create a reusable text style or update an existing one by name, defining font family, size, case, line height, and letter spacing in a Figma file.

Instructions

Create (or update by name) a text style.

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": {
      "name": "<name>",
      "fontFamily": "<fontFamily>",
      "fontSize": "<fontSize>"
    },
    "name": "create_text_style"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
nameYes
fontSizeYes
textCaseNo
fontStyleNo
fontFamilyYes
lineHeightNopx number, '150%' or 'auto'
descriptionNo
letterSpacingNopx number or '2%'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the important upsert trait (matching an existing style by name), but says nothing about required permissions, what happens to an existing style's other properties when updated, or whether the operation overwrites or merges.

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?

A single short sentence with zero filler and the create/update duality front-loaded. It is efficient but borders on under-specification rather than being genuinely tight.

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

Completeness2/5

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

For a 9-parameter mutation tool with no annotations, no output schema, and low schema description coverage, this definition is far too thin. An agent cannot learn default behavior for unspecified typography fields, permission requirements, or the result of an update from one sentence.

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 description coverage is only 33% across 9 parameters, so the description would need to compensate for the eight undocumented properties (fontSize, fontFamily, textCase, fontStyle, letterSpacing, etc.). The only added meaning is that 'name' acts as the upsert key; the remaining parameter semantics are left entirely to the schema.

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+resource ('Create ... a text style') and disambiguates the style family implicitly through the resource name, so it is separable from create_paint_style/create_effect_style. It stops short of describing what a text style controls, so it is clear but minimal.

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?

The parenthetical '(or update by name)' implies the upsert case and thereby hints when an existing style will be modified rather than created. There is no explicit guidance on when to prefer this over apply_style or create_text, and no prerequisites or exclusions are stated.

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