list_sfcc_classes
Retrieve a full list of SFCC classes to explore APIs, understand the class hierarchy, and support SFCC development tasks efficiently.
Instructions
Get a complete list of all available SFCC classes. Use this for exploration and discovery when you need to understand the full scope of SFCC APIs, or when you're new to SFCC development and want to see what's available. Good starting point for understanding the SFCC class hierarchy.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- Tool handler configuration defining the execution logic, validation, defaults, and logging for 'list_sfcc_classes'. Delegates to SFCCDocumentationClient.getAvailableClasses()list_sfcc_classes: { defaults: (args: ToolArguments) => args, validate: (_args: ToolArguments, _toolName: string) => { // No validation needed for list operation }, exec: async (args: ToolArguments, context: ToolExecutionContext) => { const client = context.docsClient as SFCCDocumentationClient; return client.getAvailableClasses(); }, logMessage: (_args: ToolArguments) => 'List classes', },
- src/core/tool-definitions.ts:85-92 (schema)Defines the MCP tool schema including name, description, and empty input schema (no required arguments){ name: 'list_sfcc_classes', description: "Get a complete list of all available SFCC classes. Use this for exploration and discovery when you need to understand the full scope of SFCC APIs, or when you're new to SFCC development and want to see what's available. Good starting point for understanding the SFCC class hierarchy.", inputSchema: { type: 'object', properties: {}, }, },
- src/clients/docs-client.ts:72-77 (helper)Actual implementation of listing available SFCC classes by scanning documentation cache, sorting, and formatting class namesasync getAvailableClasses(): Promise<string[]> { await this.initialize(); return Array.from(this.classCache.keys()) .sort() .map(className => ClassNameResolver.toOfficialFormat(className)); }
- src/core/server.ts:98-108 (registration)Registers the DocsToolHandler which handles 'list_sfcc_classes' among other doc toolsthis.handlers = [ new LogToolHandler(context, 'Log'), new JobLogToolHandler(context, 'JobLog'), new DocsToolHandler(context, 'Docs'), new BestPracticesToolHandler(context, 'BestPractices'), new SFRAToolHandler(context, 'SFRA'), new SystemObjectToolHandler(context, 'SystemObjects'), new CodeVersionToolHandler(context, 'CodeVersions'), new CartridgeToolHandler(context, 'Cartridge'), ]; }
- src/core/handlers/docs-handler.ts:36-38 (registration)DocsToolHandler returns the DOCS_TOOL_CONFIG which includes the 'list_sfcc_classes' handler spec for registration with MCP serverprotected getToolConfig(): Record<string, GenericToolSpec<ToolArguments, any>> { return DOCS_TOOL_CONFIG; }