Skip to main content
Glama

Buscar critérios WCAG

search_wcag
Read-onlyIdempotent

Search WCAG 2.2 success criteria by keyword in Portuguese or English, and filter by conformance level or principle; omit the query to list all criteria required for a level.

Instructions

Busca critérios da WCAG 2.2 por palavra-chave (PT ou EN, ex.: "contraste", "teclado", "drag"), nível de conformidade e princípio. Sem query, lista todos os critérios exigidos no nível.

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": "search_wcag"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryNoPalavras-chave. Ex.: "formulário erro", "touch target"
principleNoFiltra por princípio: 1-4, perceivable/operable/understandable/robust ou nome em PT
conformanceNoNível alvo. AA inclui A + AA (padrão de mercado e da LBI/eMAG).AA

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, closed-world safety, so the description only needs to add operational context. It does so by disclosing that keyword matching works in both Portuguese and English and that omitting the query falls back to listing all criteria for the level — behavior not derivable from the annotations. It says nothing about result ordering or how the limit interacts with the returned set.

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 dense sentences with no filler: the search action and filters come first, and the empty-query fallback follows immediately. Every clause carries actionable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter, read-only search tool with no output schema, the description covers what is searched, in which languages, by which filters, and what happens with no query. The remaining gap is that it does not describe the shape of a returned criterion, which matters since no output schema exists to compensate.

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 75%, so the schema already documents the principle formats, conformance enum, and limit bounds. The description's main addition is that the query accepts PT or EN keywords, which slightly extends the schema's PT-only examples, but it does not explain what limit controls or how results are ranked.

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?

States a specific verb ("Busca") and resource ("critérios da WCAG 2.2") plus the three filter dimensions, so an agent can tell this is a filtered search rather than a single-item lookup like get_wcag_criterion. It stops short of naming that sibling explicitly, so the differentiation is inferred from the search phrasing rather than stated.

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?

"Sem query, lista todos os critérios exigidos no nível" gives concrete guidance on the no-filter/list mode, which is the main usage fork an agent faces. It provides clear context but no exclusions or named alternative tools for narrower lookups.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.