Skip to main content
Glama
taurgis

SFCC Development MCP Server

by taurgis

list_sfcc_classes

Discover all available SFCC classes to explore the API scope and understand the class hierarchy for development tasks.

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler specification defining the execution logic for list_sfcc_classes tool. Performs no validation (no params), executes client.getAvailableClasses(), and provides logging.
    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',
    },
  • Tool schema definition with name, description, and empty inputSchema (no required parameters).
    {
      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: {},
      },
    },
  • Registration of list_sfcc_classes in DOC_TOOL_NAMES array, used by DocsToolHandler.canHandle() to determine if it can process this tool.
    export const DOC_TOOL_NAMES = [
      'get_sfcc_class_info',
      'search_sfcc_classes',
      'search_sfcc_methods',
      'list_sfcc_classes',
      'get_sfcc_class_documentation',
    ] as const;
  • Core helper method getAvailableClasses() that initializes documentation cache if needed and returns sorted list of all available SFCC class names.
    async getAvailableClasses(): Promise<string[]> {
      await this.initialize();
      return Array.from(this.classCache.keys())
        .sort()
        .map(className => ClassNameResolver.toOfficialFormat(className));
    }
  • Server registration includes SFCC_DOCUMENTATION_TOOLS (containing list_sfcc_classes schema) in the list of available tools returned by ListToolsRequestHandler.
    tools.push(...SFCC_DOCUMENTATION_TOOLS);
    tools.push(...BEST_PRACTICES_TOOLS);
    tools.push(...SFRA_DOCUMENTATION_TOOLS);
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It describes the tool as a read operation ('Get a complete list'), which is helpful, but lacks details on behavioral traits such as rate limits, pagination, or response format. The description adds some context about being a 'starting point' but doesn't fully disclose operational aspects, making it adequate but with gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized and front-loaded: the first sentence states the core purpose, followed by two sentences explaining usage context. Every sentence adds value without redundancy, making it efficient and well-structured for quick understanding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (0 parameters, no output schema, no annotations), the description is somewhat complete but could be more robust. It covers purpose and usage but lacks details on output format or behavioral constraints. For a read-only list tool, this is minimally viable but leaves room for improvement in transparency.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters, and schema description coverage is 100%, so no parameter documentation is needed. The description does not mention parameters, which is appropriate. Baseline for 0 parameters is 4, as it doesn't need to compensate for any gaps, but it doesn't add extra semantic value beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Get a complete list of all available SFCC classes.' It specifies the verb ('Get') and resource ('SFCC classes'), and distinguishes it from siblings like 'search_sfcc_classes' by emphasizing 'complete list' versus search functionality. However, it doesn't explicitly name the sibling distinction, keeping it at a 4 instead of 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use this tool: 'for exploration and discovery when you need to understand the full scope of SFCC APIs' and 'when you're new to SFCC development.' It implies usage as a starting point but does not explicitly state when not to use it or name alternatives like 'search_sfcc_classes,' so it scores a 4 rather than 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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