Skip to main content
Glama

Refy

Tema a partir de um site

refy_theme_extract
Read-onlyIdempotent

Lê cores, fontes e raios de um site e monta um tema do Refy (claro e escuro) já conferido em contraste AA, com a razão de cada escolha. Recebe url (lê o HTML e o CSS servidos), html/css, ou observations da sonda refy://theme-probe rodada no navegador do agente, que é a leitura mais fiel para site montado por JavaScript.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "refy_theme_extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
cssNoFolhas de estilo, no lugar de url.
urlNoEndereço público do site, http ou https.
htmlNoHTML da página, no lugar de url.
nameNoIdentificador do tema: minúsculas, números e hífen. Padrão: o domínio.
labelNo
descriptionNo
observationsNoSaída da sonda refy://theme-probe (campo observations).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds real context beyond that: it fetches HTML and CSS as served, guarantees AA contrast checking, and returns the reasoning behind each choice. It does not mention network/rate behavior, failure modes for unreachable sites, or what happens with partial CSS.

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?

Three dense sentences, front-loaded with the outcome (a light/dark, AA-checked theme with rationale) before the input options. Every sentence carries information, though the final sentence's parenthetical clause is long and slightly harder to parse than needed.

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 read-only tool with no output schema, the description adequately signals the output shape (a theme plus the rationale for each choice). However, with zero required parameters, it never states that at least one of url, html/css, or observations must be supplied, which is critical invocation guidance. That omission is the main completeness gap.

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 71%, so most parameters are already documented in the schema itself, and description restates that url reads served HTML/CSS. Its only added semantic value over the schema is ranking the inputs, noting that probe observations are the most faithful for JavaScript-built sites. The name, label, and description parameters get no explanation in the description.

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 opens with a concrete verb-plus-resource pair: it reads a site's colors, fonts, and radii and assembles a Refy theme in light and dark, AA-checked, with the rationale for each choice. That is specific enough to distinguish extraction-from-a-site from siblings like refy_theme_generate, but no sibling is named so the differentiation is implicit 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.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It clearly states the alternate input modes (url, html/css, or observations from the refy://theme-probe) and adds a selection rule: the probe reading is the most faithful for sites built by JavaScript. It gives no when-not-to-use guidance or prerequisites, and does not compare against sibling tools, which keeps it below a 5.

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.