Skip to main content
Glama
taurgis

SFCC Development MCP Server

by taurgis

get_available_best_practice_guides

Retrieve a list of all available Salesforce B2C Commerce Cloud best practice and how-to guides. Discover resources for cartridge creation, hooks, controllers, and custom endpoints to ensure accurate SFCC feature implementation.

Instructions

Get a list of all available SFCC best practice and how-to guides. Use this first to discover what guidance is available before implementing any SFCC features. Essential for understanding what best practice resources exist for cartridge creation, hooks, controllers, and custom endpoints

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler configuration for 'get_available_best_practice_guides' tool. The 'exec' function executes the tool logic by calling SFCCBestPracticesClient.getAvailableGuides() via the execution context.
    get_available_best_practice_guides: { defaults: (args: ToolArguments) => args, validate: (_args: ToolArguments, _toolName: string) => { // No validation needed for list operation }, exec: async (_args: ToolArguments, context: ToolExecutionContext) => { const client = context.bestPracticesClient as SFCCBestPracticesClient; return client.getAvailableGuides(); }, logMessage: (_args: ToolArguments) => 'List guides', },
  • Tool schema definition including name, description, and input schema (no parameters required).
    { name: 'get_available_best_practice_guides', description: 'Get a list of all available SFCC best practice and how-to guides. Use this first to discover what guidance is available before implementing any SFCC features. Essential for understanding what best practice resources exist for cartridge creation, hooks, controllers, and custom endpoints', inputSchema: { type: 'object', properties: {}, }, },
  • Registration of tool schemas in the MCP server's listTools handler by spreading BEST_PRACTICES_TOOLS array which includes this tool.
    tools.push(...SFCC_DOCUMENTATION_TOOLS); tools.push(...BEST_PRACTICES_TOOLS); tools.push(...SFRA_DOCUMENTATION_TOOLS);
  • Instantiation and registration of BestPracticesToolHandler which handles execution for best practices tools including 'get_available_best_practice_guides'.
    new DocsToolHandler(context, 'Docs'), new BestPracticesToolHandler(context, 'BestPractices'),
  • Core helper method SFCCBestPracticesClient.getAvailableGuides() that returns the hardcoded list of available best practice guides. Called by the tool handler.
    async getAvailableGuides(): Promise<Array<{name: string; title: string; description: string}>> { const cacheKey = 'best-practices:available-guides'; const cached = this.cache.getSearchResults(cacheKey); if (cached) {return cached;} const guides = [ { name: 'cartridge_creation', title: 'Cartridge Creation Best Practices', description: 'Instructions and best practices for creating, configuring, and deploying custom SFRA cartridges', }, { name: 'isml_templates', title: 'ISML Templates Best Practices', description: 'Comprehensive best practices for developing ISML templates within the SFRA framework, including security, performance, and maintainability guidelines', }, { name: 'job_framework', title: 'Job Framework Best Practices', description: 'Comprehensive guide for developing custom jobs in the SFCC Job Framework, covering both task-oriented and chunk-oriented approaches with performance optimization and debugging strategies', }, { name: 'localserviceregistry', title: 'LocalServiceRegistry Best Practices', description: 'Comprehensive guide for creating server-to-server integrations in SFCC using dw.svc.LocalServiceRegistry, including configuration patterns, callback implementation, OAuth flows, and reusable service module patterns', }, { name: 'ocapi_hooks', title: 'OCAPI Hooks Best Practices', description: 'Best practices for implementing OCAPI hooks in Salesforce B2C Commerce Cloud', }, { name: 'scapi_hooks', title: 'SCAPI Hooks Best Practices', description: 'Essential best practices for implementing SCAPI hooks with AI development assistance', }, { name: 'scapi_custom_endpoint', title: 'Custom SCAPI Endpoint Best Practices', description: 'Best practices for creating custom SCAPI endpoints in B2C Commerce Cloud', }, { name: 'sfra_controllers', title: 'SFRA Controllers Best Practices', description: 'Best practices and code patterns for developing SFRA controllers', }, { name: 'sfra_models', title: 'SFRA Models Best Practices', description: 'Best practices for developing SFRA models in Salesforce B2C Commerce Cloud', }, { name: 'sfra_client_side_js', title: 'SFRA Client-Side JavaScript Best Practices', description: 'Comprehensive patterns for architecting, extending, validating, and optimizing client-side JavaScript in SFRA storefronts using jQuery', }, { name: 'sfra_scss', title: 'SFRA SCSS Best Practices', description: 'Implementation-focused SCSS override strategies for SFRA storefronts covering cartridge overlays, theming tokens, responsive mixins, and plugin extension guardrails', }, { name: 'performance', title: 'Performance and Stability Best Practices', description: 'Comprehensive performance optimization strategies, coding standards, and stability guidelines for SFCC development including caching, index-friendly APIs, and job development', }, { name: 'security', title: 'Security Best Practices', description: 'Comprehensive security best practices for SFCC development covering SFRA Controllers, OCAPI/SCAPI Hooks, and Custom SCAPI Endpoints with OWASP compliance guidelines', }, ]; this.cache.setSearchResults(cacheKey, guides); return guides; }

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/taurgis/sfcc-dev-mcp'

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