Skip to main content
Glama
MarySuneela

Visa Design System MCP Server

by MarySuneela

get-guidelines

Retrieve design guidelines from Visa's Product Design System with optional category filtering to access specific resources and ensure consistent product design.

Instructions

Get design guidelines with optional category filtering

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryNoFilter guidelines by category

Implementation Reference

  • MCP tool handler for 'get-guidelines' that invokes GuidelinesService.getGuidelines and returns formatted JSON response with guidelines list, count, and filters.
    * Handle get-guidelines tool call */ private async handleGetGuidelines(args: Record<string, any>): Promise<CallToolResult> { const guidelines = await this.guidelinesService.getGuidelines(args); return { content: [ { type: 'text', text: JSON.stringify({ guidelines, count: guidelines.length, filters: args }, null, 2) } ] }; }
  • Registration of the 'get-guidelines' tool in getToolDefinitions(), including name, description, and input schema.
    { name: 'get-guidelines', description: 'Get design guidelines with optional category filtering', inputSchema: { type: 'object', properties: { category: { type: 'string', description: 'Filter guidelines by category' } } } },
  • Input schema definition for the 'get-guidelines' tool, allowing optional category filter.
    { name: 'get-guidelines', description: 'Get design guidelines with optional category filtering', inputSchema: { type: 'object', properties: { category: { type: 'string', description: 'Filter guidelines by category' } } } },
  • Helper method in GuidelinesService that retrieves guidelines from data cache, applies optional filters (including category), with error handling and circuit breaker.
    @handleErrors async getGuidelines(options?: GuidelineSearchOptions): Promise<Guideline[]> { return this.circuitBreaker.execute(async () => { const cachedData = this.dataManager.getCachedData(); if (!cachedData) { throw new DataError('No guidelines data available', [ 'Ensure data files are loaded', 'Check data directory configuration' ], { service: 'GuidelinesService', method: 'getGuidelines' }); } let guidelines = cachedData.guidelines; // Apply filters if provided if (options) { guidelines = this.filterGuidelines(guidelines, options); } return guidelines; }, { service: 'GuidelinesService', method: 'getGuidelines', options }); }

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