Skip to main content
Glama

Accessibility Fix Plan Generator

generate_fix_plan

Generate a structured accessibility fix plan from a scan result and write it to .navable-plan.json for actionable remediation.

Instructions

Convert a scan result into a structured AccessibilityFixPlan and write it to .navable-plan.json.

PREFERRED WORKFLOW:

  1. Call run_accessibility_scan — it returns a "scanId" field in the result.

  2. Call generate_fix_plan with { scanId: "<value from step 1>" }. The scanId lookup is server-side — no need to pass the full scan JSON back.

FALLBACK WORKFLOW: Pass the full scan JSON as { scan: }. Use only when the scanId is no longer available (server was restarted; last 10 scans are kept).

WRITE LOCATION: Writes .navable-plan.json to the project root (auto-detected via package.json / .git walk-up). If the file ends up in the wrong place, set the NAVABLE_PROJECT_ROOT environment variable in your MCP server config to the absolute path of your project directory.

RESPONSE: Always includes "planPath" — the absolute path where the file was written. On write failure, returns an error with the attempted path and instructions to set NAVABLE_PROJECT_ROOT.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scanNoFallback: full JSON output from run_accessibility_scan. Use only when scanId is unavailable (e.g. server was restarted).
scanIdNoPreferred: the "scanId" value from run_accessibility_scan output. Avoids passing the full scan object through MCP parameters.
compactNoReturn compact summary (default: true). When true and writeToDisk is true, returns only planPath + summary + top 5 items. Set to false for the full plan in the response.
writeToDiskNoWrite .navable-plan.json to project root (default: true). Set NAVABLE_PROJECT_ROOT env var in MCP config to control the write location.
Behavior4/5

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

Annotations (readOnlyHint=false, destructiveHint=false) are minimal. The description compensates by disclosing write-to-disk behavior, fallback mechanism, and potential write failure. It does not explicitly state whether the file is overwritten, but the response always includes planPath.

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?

Description is well-structured with clear sections (preferred workflow, fallback, write location, response). While slightly verbose, each sentence serves a purpose. Front-loaded with core function.

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

Completeness5/5

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

Given no output schema, the description explains the response includes planPath. It covers all usage scenarios, write location pitfalls, and parameter behaviors. Complete for a tool with 4 parameters and nested objects.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the description adds significant context: scanId vs scan as preferred/fallback, default values for compact and writeToDisk, and limitations (server keeps last 10 scans). This aids the agent in parameter selection beyond schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool converts a scan result into a structured AccessibilityFixPlan and writes to a file. It distinguishes from siblings by referencing run_accessibility_scan as a prerequisite and update_fix_status as a separate tool.

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

Usage Guidelines5/5

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

Explicitly provides preferred workflow (step 1: run_accessibility_scan, step 2: generate_fix_plan with scanId) and fallback workflow (pass full scan JSON). Also details write location and environment variable configuration, guiding the agent on when to use which approach.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/web-DnA/navable-web-accessibility-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server