Skip to main content
Glama

list_test_results

Retrieve all accessibility test result files to review WCAG compliance reports, violation summaries, and remediation guidance from comprehensive website audits.

Instructions

List all available accessibility test result files

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'list_test_results' MCP tool. It calls fileManager.listTestResults() to get the list of files and formats a numbered list as the tool response.
    private async handleListTestResults(): Promise<CallToolResult> { const files = await this.fileManager.listTestResults(); if (files.length === 0) { return { content: [ { type: 'text', text: 'No accessibility test results found.' } ] }; } const fileList = files.map((file, index) => `${index + 1}. ${file}`).join('\n'); return { content: [ { type: 'text', text: `Available test result files:\n\n${fileList}` } ] }; }
  • Registration of the 'list_test_results' tool in the ListToolsRequestSchema response, including name, description, and input schema.
    { name: 'list_test_results', description: 'List all available accessibility test result files', inputSchema: { type: 'object', properties: {}, additionalProperties: false } }
  • Input schema for the list_test_results tool, defining no required parameters.
    inputSchema: { type: 'object', properties: {}, additionalProperties: false }
  • Helper method in FileOutputManager that lists test result files by reading the output directory and filtering by filename pattern.
    async listTestResults(): Promise<string[]> { try { const files = await fs.readdir(this.outputDir); return files.filter(file => file.startsWith('accessibility-test-') && file.endsWith('.txt')); } catch (error) { console.error('Failed to list test results:', error); return []; } }

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/jbuchan/accessibility-mcp-server'

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