Skip to main content
Glama

get_color_scale

从一个基准色生成 50 到 900 的 10 级色阶(500 等于基准色本身),每阶附白字与黑字的实测对比度;format 可取 list / json / css / tailwind。

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": {
      "color": "<color>"
    },
    "name": "get_color_scale"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorYes基准色,如 #4c8df6
formatNo输出形态,默认 list

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the burden itself and does decent work: it discloses the deterministic structure (10 levels, 500 anchors the base), that each step ships measured white-text and black-text contrast values, and that output shape is selectable. It does not say whether the contrast figures are WCAG ratios or confirm the tool is a pure, side-effect-free computation.

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?

A single front-loaded sentence opens with the generating action and the scale's range, then adds contrast output and format options in a tight second clause. Nothing is redundant with the schema text.

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 two-parameter generator with no output schema, the description covers the main things an agent needs: what is produced, how levels are anchored, what accompanies each level, and what formats exist. Minor omissions are the exact level keys and the meaning of the contrast numbers.

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 parameters are already documented, including the format enum and its default. The description adds only the '500 equals the base color' anchoring idea, which is output semantics rather than parameter semantics, so the baseline 3 applies.

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 specific verb and resource: generate a 10-step 50–900 color scale from a base color, with 500 defined as the base itself. That is materially more specific than the sibling names alone, but it never names which sibling it differs from (get_palette, darken_palette, suggest_palette all sound adjacent).

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: use this when you need a full tonal ramp from one seed color. There is no when-not guidance and no statement of how it relates to suggest_palette, darken_palette, or check_contrast, even though the embedded contrast data clearly overlaps with check_contrast's territory.

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.