Skip to main content
Glama

Refy

Gerar tema

refy_theme_generate
Read-onlyIdempotent

Gera um tema completo (claro e escuro) a partir da cor primária, com raio, densidade e fontes opcionais. O tema sai no formato do ThemeProvider e já conferido: tokens reconhecidos, referências e contraste AA.

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>",
      "primary": "<primary>"
    },
    "name": "refy_theme_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesIdentificador: minúsculas, números e hífen.
labelNoNome de exibição.
radiusNo
densityNo
primaryYesCor primária em hexadecimal, ex.: #2163ad.
fontBodyNo
fontMonoNo
descriptionNo
fontHeadingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint=false), so the description is not required to restate them. It still adds real behavioral value by stating the output is ThemeProvider-shaped and guaranteed to have recognized tokens, valid references and AA contrast, which tells the agent it does not need to re-validate results.

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?

Two sentences, no filler, with the core action and its main input front-loaded and the output/quality guarantee second. Nothing repeats the name or title and every clause carries information.

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?

With nine parameters, low schema coverage and no output schema, the description does a fair job by describing the return format and validation guarantees. It falls short on the five undocumented parameters and on whether the generated theme is stored anywhere, which matters for a tool an agent may chain with validate or collections.

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 only 33%, so the description must help; it does name the optional dimensions (radius, density, fonts) and confirms they are optional, which maps to four of the nine parameters. However label, description, and the split between fontBody/fontHeading/fontMono remain undocumented in both schema and description, leaving a real gap.

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 gives a specific verb and resource ('Gera um tema completo (claro e escuro)') plus the seed input (primary color), so an agent knows exactly what is produced. It also signals that validation is baked in ('já conferido'), which implicitly separates it from refy_theme_validate, though no sibling is named explicitly.

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 statement: generate a theme when you have a primary color. There is no explicit when-to-use/when-not-to-use guidance, no prerequisites, and no statement about whether the generated theme is persisted or merely returned, so an agent must infer whether a follow-up validate or save step is needed.

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.