Skip to main content
Glama

check_colour_stock

Verify whether a specific colour is available before configure_product. Returns in_stock boolean, expected_restock_date if out of stock, and up to 5 alternative in-stock colours ordered by similarity. Call this when a customer requests a named colour or when you want to prevent a configure_product failure due to an out-of-stock selection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
product_idYes
colour_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
foundNo
messageNo
in_stockYes
product_idNo
swatch_urlNo
colour_nameNo
expected_restockNo
matching_coloursNo
available_coloursNo
exact_colour_matchNo
alternative_coloursNo
requires_exact_colour_selectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "alternative_colours": {
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "colour_name": {
      +            "type": "string"
      +          },
      +          "in_stock": {
      +            "type": "boolean"
      +          },
      +          "swatch_url": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "colour_name",
      +          "in_stock"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "available_colours": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "colour_name": {
      +      "type": "string"
      +    },
      +    "exact_colour_match": {
      +      "type": "boolean"
      +    },
      +    "expected_restock": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "found": {
      +      "type": "boolean"
      +    },
      +    "in_stock": {
      +      "type": "boolean"
      +    },
      +    "matching_colours": {
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "colour_name": {
      +            "type": "string"
      +          },
      +          "in_stock": {
      +            "type": "boolean"
      +          },
      +          "swatch_url": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "colour_name",
      +          "in_stock"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "product_id": {
      +      "type": "string"
      +    },
      +    "requires_exact_colour_selection": {
      +      "type": "boolean"
      +    },
      +    "swatch_url": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "in_stock"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources