Skip to main content
Glama

產生 CSS 漸層

motion__generate_gradient
Read-onlyIdempotent

[網頁動畫工具箱]產生 CSS 漸層(linear、radial、conic),可選流動動畫與漸層文字。colors 用逗號分隔 HEX。

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": {
      "colors": "<colors>"
    },
    "name": "motion__generate_gradient"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNo
angleNo
speedNo
colorsYes
animateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds that optional animation and gradient-text variants are supported, but says nothing about default output (e.g. whether a full CSS rule or only a value is returned) or what enabling animate changes in the emitted code.

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 front-loaded sentence in bracketed-toolbox style, packing gradient types, optional features, and the required color format without filler. It is dense but readable, and nothing is redundant with the title.

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 a five-parameter generator tool with no output schema and no schema-level documentation, the description is just enough to make a minimal valid call (colors only). It stops short of the details that matter for correct advanced invocation: defaults for `type` and `angle`, units for `angle`/`speed`, and the shape of the returned CSS.

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 0%, so the description must carry parameter meaning, and it only does so partially. It documents `colors` (逗號分隔 HEX) and implicitly maps `type` to linear/radial/conic and `animate` to 流動動畫, but `angle` and `speed` receive no unit, range, or default information.

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?

The description states a concrete verb+resource (產生 CSS 漸層) and enumerates the three gradient shapes (linear、radial、conic) plus two optional extras (流動動畫、漸層文字). It is clear enough to be told apart from the motion toolbox siblings (easing, keyframes, spring), though it does not explicitly name any alternative.

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 by the purpose: an agent can infer this is the tool for producing gradient CSS when an animation task requires a gradient. There is no explicit when-to-use versus when-not guidance, and no sibling routing, but the sibling list contains no competing gradient generator, so the practical risk of mis-selection is low.

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.

Resources