Skip to main content
Glama
MarySuneela

Visa Design System MCP Server

by MarySuneela

get-design-token-categories

Retrieve all available design token categories to access and organize Visa Design System resources for consistent product design and development.

Instructions

Get all available design token categories

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler implementation that fetches all design tokens, extracts unique categories using a Set, sorts them, and returns the list. This is the exact logic executed for the tool.
    async getTokenCategories(): Promise<string[]> { const tokens = await this.getTokens(); const categories = new Set(tokens.map(token => token.category)); return Array.from(categories).sort(); }
  • MCP server wrapper handler that calls the DesignTokenService.getTokenCategories() and formats the response as MCP CallToolResult with JSON content.
    private async handleGetDesignTokenCategories(args: Record<string, any>): Promise<CallToolResult> { const categories = await this.designTokenService.getTokenCategories(); return { content: [ { type: 'text', text: JSON.stringify({ categories, count: categories.length }, null, 2) } ] }; }
  • Tool registration in getToolDefinitions() including name, description, and empty input schema (no parameters required).
    { name: 'get-design-token-categories', description: 'Get all available design token categories', inputSchema: { type: 'object', properties: {} } },
  • Switch case router in handleToolCall that directs the tool call to the specific handler method.
    case 'get-design-token-categories': return await this.handleGetDesignTokenCategories(args);
  • Input schema definition for the tool: empty object (no required parameters).
    inputSchema: { type: 'object', properties: {} }

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/MarySuneela/mcp-vpds'

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