Skip to main content
Glama

list_native_components

Retrieve native iOS/Android accessibility components from MagentaA11y. Filter by category to find specific controls or components for accessibility testing and development.

Instructions

List all available native (iOS/Android) accessibility components from MagentaA11y. Optionally filter by category.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryNoOptional category filter (e.g., "controls", "components")

Implementation Reference

  • Primary handler function for the list_native_components tool. Lists native accessibility components and categories using ContentLoader, optionally filtered by category, and returns a JSON-formatted MCP response.
    async function handleListNativeComponents(args: any) { const components = contentLoader.listComponents('native', args?.category); const categories = contentLoader.getCategories('native'); return { content: [ { type: 'text', text: JSON.stringify( { components, categories, }, null, 2 ), }, ], }; }
  • Tool schema definition including name, description, and input schema allowing an optional category filter.
    { name: 'list_native_components', description: 'List all available native (iOS/Android) accessibility components from MagentaA11y. Optionally filter by category.', inputSchema: { type: 'object', properties: { category: { type: 'string', description: 'Optional category filter (e.g., "controls", "components")', }, }, }, },
  • src/index.ts:36-40 (registration)
    Registers the MCP list tools handler to return TOOL_DEFINITIONS, which includes list_native_components.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: TOOL_DEFINITIONS, }; });
  • Alternative inline handler for list_native_components in the Netlify HTTP transport implementation.
    case 'list_native_components': { const components = contentLoader.listComponents('native', args?.category); const categories = contentLoader.getCategories('native'); return { content: [{ type: 'text', text: JSON.stringify({ components, categories }, null, 2) }] };
  • src/index.ts:56-57 (registration)
    Dispatch case in the MCP CallToolRequestSchema handler that routes to the list_native_components handler function.
    case 'list_native_components': return await handleListNativeComponents(args);

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