Skip to main content
Glama

get_product

Retrieve detailed product information from SAP Commerce Cloud using a product code or SKU to access specifications, inventory, and pricing data.

Instructions

Get detailed information about a specific product by its code

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
productCodeYesThe product code/SKU

Implementation Reference

  • The actual implementation of the getProduct logic that performs the API request to fetch product details.
    async getProduct(productCode: string): Promise<Product> {
      return this.request<Product>(
        `/occ/v2/${encodeURIComponent(this.config.baseSiteId!)}/products/${encodeURIComponent(productCode)}?fields=FULL`
      );
    }
  • src/index.ts:126-139 (registration)
    Registration of the get_product tool in the MCP tools list.
    {
      name: 'get_product',
      description: 'Get detailed information about a specific product by its code',
      inputSchema: {
        type: 'object',
        properties: {
          productCode: {
            type: 'string',
            description: 'The product code/SKU',
          },
        },
        required: ['productCode'],
      },
    },
  • The switch-case handler in index.ts that calls hybrisClient.getProduct when get_product is requested.
    case 'get_product':
      result = await hybrisClient.getProduct(
        validateString(args, 'productCode', true)
      );
      break;

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/mcieunic/hybris-mcp-main'

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