get_palette
取某一套配色的完整数据:角色色值(主色 / 功能色 / 中性色)、对比度、人工搭配建议。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | 配色 slug,如 jing-hu-lan | |
| platform | No | 平台,不填则在三端中查找该 slug |
取某一套配色的完整数据:角色色值(主色 / 功能色 / 中性色)、对比度、人工搭配建议。
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | 配色 slug,如 jing-hu-lan | |
| platform | No | 平台,不填则在三端中查找该 slug |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full behavioral burden. It does disclose the shape of the returned content (roles, contrast, human pairing advice), which is genuinely useful given there is no output schema, but it says nothing about read-only semantics, permission needs, or behavior on a nonexistent slug.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single front-loaded sentence with a colon-delimited payload list; nothing is padded. It is efficient, though the brevity leaves little room for the routing and behavioral context an unannotated tool needs.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a two-parameter read tool with no annotations and no output schema, the description covers what comes back but omits error behavior for an unknown slug and any guidance on the platform parameter's fallback. It is adequate but not complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so both slug and the platform enum are already documented in the schema, making 3 the baseline. The description adds only the implied notion of retrieving complete data for a palette, not any new syntax or format detail for the parameters.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description names a specific verb (取, retrieve) and resource (某一套配色, a single palette) and enumerates the payload (role color values, contrast, pairing suggestions), so it is clearly not list_palettes or suggest_palette. It never names those siblings, though, so the differentiation is inferable rather than explicit.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Usage is only implied: the required slug signals that this is the lookup-by-identifier path, distinct from listing or generating. There is no statement of when to prefer it over get_css_variables (e.g. raw variables vs. curated palette data) or what to do when a slug is unknown.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.