Skip to main content
Glama

axe-core で自動検査

axe_scan

Scans web pages for accessibility violations with axe-core and returns Japanese results annotated with WCAG success criteria numbers, Japanese names, and JIS X 8341-3 applicability.

Instructions

axe-core でページを自動検査し、違反を日本語で返す。WCAG の達成基準番号・日本語名・JIS X 8341-3 の対象かどうかも付ける

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

Input Schema

NameRequiredDescriptionDefault
urlNo検査する URL。省略すると現在開いているページを検査
langNoメッセージの言語ja
levelNo基準。wcag2aa は JIS X 8341-3:2016 AA 相当wcag22aa
includeNo検査範囲を絞る CSS セレクタ(例: main, #modal)
max_nodesNo1 ルールあたり表示する要素数
best_practicesNoWCAG 外のベストプラクティスも含めるか

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the shape of the return payload (violations enriched with WCAG criterion numbers, Japanese names, and JIS X 8341-3 applicability), which is genuinely useful, but it says nothing about read-only vs mutating behavior, that the scan targets the browser's currently open page, execution time, or how many results come back.

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 short sentences with zero filler: the first states the action and the primary output, the second adds the enrichment detail that differentiates the response. It is front-loaded 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?

For a six-parameter, zero-required scan tool with no annotations and no output schema, the description covers what the tool does and what the response embellishes, but omits operational context an agent needs: that it operates on the currently loaded page, expected latency, and whether violations are truncated.

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 (url, lang, level, include, max_nodes, best_practices) is already documented, and the baseline of 3 applies. The description hints at the lang and level effects by promising Japanese output and WCAG/JIS mapping, but adds no syntax, format, or trade-off detail 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?

Names a specific tool and action (axe-core でページを自動検査) plus the resource (ページ), and adds what the output contains (違反, WCAG 達成基準番号, 日本語名, JIS X 8341-3 対象判定). This is clearly an accessibility audit rather than a contrast or structure-only check, though it never explicitly distinguishes itself from siblings like contrast_scan or page_structure.

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?

The stated purpose (automatic accessibility inspection) implies when to reach for it, but there is no explicit when/when-not guidance, no mention of the narrower sibling tools (contrast_scan, tab_order, page_structure) as alternatives, and no prerequisite note such as needing a page already loaded.

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