Skip to main content
Glama

Refy

Validar uso dos componentes

refy_validate
Read-onlyIdempotent

Confere código de tela contra o contrato do Refy: props obrigatórias, valores fora da união aceita, props fora da API, controles HTML crus, cor/fonte literal e import interno. Recebe o código da tela em code.

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": {
      "code": "<code>"
    },
    "name": "refy_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesCódigo da tela (TSX/JSX/TS/JS/CSS).
themeNoTema do projeto (RefyTheme, ou objeto com vários temas). Tokens declarados nele não geram unverified-token. Com files, sem theme, vale o theme.json da raiz do projeto.
versionNoVersão do pacote cuja API você quer ler (ex.: 1.2.0). Padrão: a versão deste servidor.
filenameNoNome do arquivo do código, define a linguagem. Padrão: Tela.tsx.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare this as a read-only, idempotent, non-destructive, closed-world operation, so the safety profile is covered. The description adds useful detail by listing the contract violations it checks, but it does not describe what happens on invalid input or what kind of validation result is returned.

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?

The description is tightly written in two sentences with no wasted wording. The validation scope is front-loaded and the required input parameter is stated immediately afterward.

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 validation tool with four parameters, a nested theme object, and no output schema, the description is adequate on inputs and checks but does not explain the return format or how validation failures are surfaced. An agent can invoke the tool, but it cannot fully predict the shape or semantics of the validation result.

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 100%, so every parameter is already documented in the input schema. The description adds only a small amount of meaning by explicitly naming the 'code' parameter as screen code; it says nothing extra about theme, version, or filename beyond the schema.

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 uses a specific verb, 'Confere,' and names the concrete checks performed against the Refy contract, including required props, union values, raw HTML controls, literal color/font, and internal imports. It clearly identifies the resource as screen code, though it does not explicitly distinguish itself from the sibling validation tool refy_theme_validate.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The description explains what the tool checks but gives no explicit guidance on when to use it versus alternatives such as refy_theme_validate or refy_component. There are no conditions, prerequisites, or exclusions to route the agent between validation and other Refy tools.

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.