Skip to main content
Glama

Detalhar critério WCAG

get_wcag_criterion
Read-onlyIdempotent

Retrieve a WCAG 2.2 success criterion by number, including its level, principle, guideline, Portuguese summary, and Understanding link.

Instructions

Retorna um critério de sucesso da WCAG 2.2 pelo número (ex.: "1.4.3"): nível, princípio, diretriz, resumo em PT-BR e link Understanding.

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": {
      "id": "<id>"
    },
    "name": "get_wcag_criterion"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesNúmero do critério, ex.: "2.4.7"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so safety needs no restating. The description still adds real value beyond them: the version scope (WCAG 2.2), the localization of the summary (PT-BR), and the presence of an Understanding link — all things the annotations cannot convey.

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?

One sentence, front-loaded with the verb and scope, then the key, then the return fields. No filler, and every clause carries information an agent would otherwise lack.

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 single-parameter lookup tool with full annotation coverage and no output schema, listing the return fields in the description is exactly the needed compensation. The only untold piece is behavior on an unknown or malformed criterion number (e.g. empty result vs error).

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 100% and the single 'id' parameter already carries an example ("2.4.7"). The description's second example ("1.4.3") reinforces the dotted-number format but adds no new semantics 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 states a specific verb and resource ('Retorna um critério de sucesso da WCAG 2.2') and pins the lookup key ('pelo número'), which separates it from a keyword search like search_wcag without naming it. It also enumerates the returned payload (nível, princípio, diretriz, resumo em PT-BR, link Understanding), so an agent knows exactly what it gets back.

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: the agent must infer that this tool is for when an exact criterion number (e.g. "1.4.3") is already known. There is no explicit statement of when not to use it or that search_wcag is the route when only a topic/keyword is known.

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