Skip to main content
Glama
ai-naming-standard

AI Naming Standard MCP Server

Official

addNamingWizardRule

Add custom naming rules to automatically generate standardized file names for microservices architecture by mapping keywords to structured components like domain, action, and layer identifiers.

Instructions

πŸ†• v6: Add custom rule to NAMING_WIZARD_RULES.yaml

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ruleTypeYesType of rule
keywordsYesKeywords to match
outputYesOutput mapping

Implementation Reference

  • The core handler function implementing the addNamingWizardRule tool. It accepts ruleType, keywords, and output parameters and returns a confirmation that the rule would be added to NAMING_WIZARD_RULES.yaml.
    export async function addNamingWizardRule({ ruleType, keywords, output }) { return { ruleType, keywords, output, status: 'Rule would be added to NAMING_WIZARD_RULES.yaml', example: { input: keywords[0], output: output } }; }
  • Input schema definition for the addNamingWizardRule tool, specifying parameters ruleType (enum), keywords (array of strings), and output (object), all required.
    name: 'addNamingWizardRule', description: 'πŸ†• v6: Add custom rule to NAMING_WIZARD_RULES.yaml', inputSchema: { type: 'object', properties: { ruleType: { type: 'string', description: 'Type of rule', enum: ['domainMapping', 'actionMapping', 'layerMapping', 'detailMapping'] }, keywords: { type: 'array', description: 'Keywords to match', items: { type: 'string' } }, output: { type: 'object', description: 'Output mapping' } }, required: ['ruleType', 'keywords', 'output'] } },
  • src/index.js:656-657 (registration)
    Registration in the main tool dispatch switch statement, calling the handler with arguments.
    case 'addNamingWizardRule': result = await addNamingWizardRule(args);
  • Re-export of the addNamingWizardRule function from v6-tools.js for use in the main index.
    addNamingWizardRule,

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/ai-naming-standard/mcp'

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