Skip to main content
Glama
nmassi

glyphs-mcp

by nmassi

set_glyph_color

Assign a color label to a glyph in the font view using a color index (0-11) to visually categorize and organize glyphs.

Instructions

Set the color label of a glyph in the font view.

Color index (0–11): 0=red, 1=orange, 2=brown, 3=yellow, 4=light green, 5=dark green, 6=teal, 7=blue, 8=purple, 9=pink, 10=light gray, 11=charcoal

Use None/no color by setting any value outside this range.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colorYes
glyph_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden. It explains the color index mapping (0-11) and the boundary behavior of clearing the color with out-of-range values. This goes beyond a bare 'set color' statement, though it does not discuss error handling for invalid glyph names or mutation side effects.

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?

The description is compact and well-structured. The purpose is front-loaded in the first sentence, followed by a necessary color-index table and one clear usage note. Every sentence earns its place without padding.

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 simple two-parameter setter with no output schema, the description provides the essential semantics: the action, the target, the valid values, and the clearing behavior. It stops short of stating what happens if the glyph does not exist or whether the change is persisted, but these are not critical for a basic invocation.

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?

The schema provides only types and titles for the two parameters, with 0% schema description coverage. The description compensates richly for the 'color' parameter by enumerating the valid indices and their meanings. The 'glyph_name' parameter is left to inference, but its purpose is clear from the name and the tool's function.

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?

The description uses a specific verb and resource: 'Set the color label of a glyph in the font view.' This clearly identifies the action and target, and differentiates it from sibling tools like set_glyph_width, set_glyph_unicode, and set_glyph_paths. The focused phrasing leaves no ambiguity about what the tool does.

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 description implies usage by stating the core action, and it provides one explicit usage instruction: 'Use None/no color by setting any value outside this range.' However, it does not mention when to prefer this tool over alternatives such as measure_color or audit_font_color, nor does it state exclusions.

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