Skip to main content
Glama

get_test_results

Retrieve saved accessibility test results by filename to review compliance reports and remediation guidance for websites.

Instructions

Retrieve saved accessibility test results by filename

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNameYesName of the test result file to retrieve

Implementation Reference

  • The primary handler function for the 'get_test_results' tool. Retrieves test result content from FileOutputManager based on fileName argument and returns it as MCP CallToolResult content.
    private async handleGetTestResults(args: { fileName: string }): Promise<CallToolResult> { const content = await this.fileManager.getTestResult(args.fileName); if (!content) { throw new Error(`Test result file '${args.fileName}' not found`); } return { content: [ { type: 'text', text: content } ] }; }
  • Registration of the 'get_test_results' tool within the ListToolsRequestHandler response. Includes name, description, and input schema.
    { name: 'get_test_results', description: 'Retrieve saved accessibility test results by filename', inputSchema: { type: 'object', properties: { fileName: { type: 'string', description: 'Name of the test result file to retrieve' } }, required: ['fileName'] } },
  • Input schema defining the expected arguments for the get_test_results tool: an object with required 'fileName' string property.
    inputSchema: { type: 'object', properties: { fileName: { type: 'string', description: 'Name of the test result file to retrieve' } }, required: ['fileName'] }
  • Supporting utility method in FileOutputManager that performs the file system read operation for retrieving test result content by filename.
    async getTestResult(fileName: string): Promise<string | null> { const filePath = path.join(this.outputDir, fileName); try { const content = await fs.readFile(filePath, 'utf-8'); return content; } catch (error) { console.error('Failed to read test result:', error); return null; } }

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