Skip to main content
Glama

get_component_condensed

Retrieve focused accessibility testing instructions for web or native UI components to verify compliance with accessibility standards.

Instructions

Get condensed acceptance criteria for a component. These are shorter, more focused testing instructions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
platformYesPlatform (web or native)
componentYesComponent name (e.g., "button", "checkbox")

Implementation Reference

  • Primary MCP tool handler for 'get_component_condensed'. Fetches condensed acceptance criteria content via ContentLoader, with error handling providing suggestions and available formats.
    async function handleGetComponentCondensed(args: any) { try { const content = await contentLoader.getComponentContent(args.platform, args.component, 'condensed'); return { content: [ { type: 'text', text: content, }, ], }; } catch (error: any) { const suggestions = contentLoader.getSimilarComponents(args.platform, args.component); const formats = contentLoader.getAvailableFormats(args.platform, args.component); return { content: [ { type: 'text', text: JSON.stringify( { error: error.message, component: args.component, suggestions, availableFormats: formats, }, null, 2 ), }, ], isError: true, }; } }
  • Tool schema definition including name, description, and input schema requiring 'platform' (web/native) and 'component'.
    { name: 'get_component_condensed', description: 'Get condensed acceptance criteria for a component. These are shorter, more focused testing instructions.', inputSchema: { type: 'object', properties: { platform: { type: 'string', enum: ['web', 'native'], description: 'Platform (web or native)', }, component: { type: 'string', description: 'Component name (e.g., "button", "checkbox")', }, }, required: ['platform', 'component'], }, },
  • src/index.ts:64-65 (registration)
    Tool registration/dispatch in the MCP CallToolRequestSchema switch statement.
    case 'get_component_condensed': return await handleGetComponentCondensed(args);
  • Handler implementation for 'get_component_condensed' in the Netlify HTTP serverless function deployment.
    case 'get_component_condensed': { const content = await contentLoader.getComponentContent(args.platform, args.component, 'condensed'); return { content: [{ type: 'text', text: content }] }; }
  • Tool dispatch/registration in Netlify handleToolCall switch (inline handler).
    case 'get_component_condensed': { const content = await contentLoader.getComponentContent(args.platform, args.component, 'condensed'); return { content: [{ type: 'text', text: content }] }; }

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/joe-watkins/magentaa11y-mcp-remote'

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