Skip to main content
Glama

Camden Tools

Get category

get_category
Read-only

A category's details and its products (paged) by slug. For a department or group slug, returns what is inside it instead, since only categories hold products.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "slug": "<slug>"
    },
    "name": "get_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, starting at 1.
slugYesCategory slug from list_categories.
sortNoSort order: price_low, price_high, name_asc, name_desc or newest. Omit for the default (most popular) order.
localeNoStorefront locale such as en-GB (default), en-US, de, fr-FR, es-ES, it-IT, nl-NL, pl. Controls product names, slugs and prices.
per_pageNoResults per page: 15, 30, 50 or 100 (default 15).

Output Schema

NameRequiredDescriptionDefault
categoryYes
productsYes
paginationYes
subcategoriesNoFor a department or group: what is inside it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / properties / slug / maxLength
      Previous value: -120New value: +160
    • addedOutput schema / properties / category / additionalProperties
      Added value: +false
    • removedOutput schema / properties / category / anyOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "description": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "id": {
      -        "type": "number"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "slug": {
      -        "type": "string"
      -      },
      -      "url": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "name",
      -      "slug",
      -      "url"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / category / properties
      Added value: +{
      +  "category_count": {
      +    "description": "Categories inside a department or group.",
      +    "type": "number"
      +  },
      +  "department": {
      +    "description": "Department slug.",
      +    "type": "string"
      +  },
      +  "description": {
      +    "type": "string"
      +  },
      +  "group": {
      +    "description": "Group slug; null when none.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "id": {
      +    "type": "number"
      +  },
      +  "level": {
      +    "description": "department and group hold categories; only a category (a leaf) holds products.",
      +    "enum": [
      +      "department",
      +      "group",
      +      "category"
      +    ],
      +    "type": "string"
      +  },
      +  "name": {
      +    "type": "string"
      +  },
      +  "product_count": {
      +    "type": "number"
      +  },
      +  "slug": {
      +    "type": "string"
      +  },
      +  "url": {
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / category / required
      Added value: +[
      +  "id",
      +  "level",
      +  "name",
      +  "slug",
      +  "url",
      +  "department",
      +  "group"
      +]
    • addedOutput schema / properties / category / type
      Added value: +"object"
    • addedOutput schema / properties / subcategories
      Added value: +{
      +  "description": "For a department or group: what is inside it.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "category_count": {
      +        "description": "Categories inside a department or group.",
      +        "type": "number"
      +      },
      +      "department": {
      +        "description": "Department slug.",
      +        "type": "string"
      +      },
      +      "description": {
      +        "type": "string"
      +      },
      +      "group": {
      +        "description": "Group slug; null when none.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "id": {
      +        "type": "number"
      +      },
      +      "level": {
      +        "description": "department and group hold categories; only a category (a leaf) holds products.",
      +        "enum": [
      +          "department",
      +          "group",
      +          "category"
      +        ],
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "product_count": {
      +        "type": "number"
      +      },
      +      "slug": {
      +        "type": "string"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "level",
      +      "name",
      +      "slug",
      +      "url",
      +      "department",
      +      "group"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. Changed1 schema field changed
    • addedOutput schema / properties / products / items / properties / categories / description
      Added value: +"Up to 8 category names; get_product has the product's details."
  3. Changed14 schema fields changed
    • changedOutput schema / properties / category / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "description": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "id": {
      -        "type": "number"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "slug": {
      -        "type": "string"
      -      },
      -      "url": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "name",
      -      "slug",
      -      "url"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "description": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "id": {
      +        "type": "number"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "slug": {
      +        "type": "string"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "slug",
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / products / items / properties / brand / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / products / items / properties / brand / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / products / items / properties / brand_slug / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / products / items / properties / brand_slug / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / products / items / properties / image / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / products / items / properties / image / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / products / items / properties / price / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "bulk_prices": {
      -        "description": "Lower unit prices from min_quantity up.",
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "ex_vat": {
      -              "type": "number"
      -            },
      -            "inc_vat": {
      -              "type": "number"
      -            },
      -            "min_quantity": {
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "min_quantity",
      -            "ex_vat",
      -            "inc_vat"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "currency": {
      -        "type": "string"
      -      },
      -      "ex_vat": {
      -        "type": "number"
      -      },
      -      "inc_vat": {
      -        "type": "number"
      -      },
      -      "on_sale": {
      -        "type": "boolean"
      -      },
      -      "vat_rate": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "VAT rate in percent (20 = 20%). null when unknown: ex_vat then equals inc_vat."
      -      },
      -      "was_ex_vat": {
      -        "type": "number"
      -      },
      -      "was_inc_vat": {
      -        "description": "Price before the sale; only when on_sale.",
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "currency",
      -      "ex_vat",
      -      "inc_vat",
      -      "on_sale",
      -      "vat_rate"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "bulk_prices": {
      +        "description": "Lower unit prices from min_quantity up.",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "ex_vat": {
      +              "type": "number"
      +            },
      +            "inc_vat": {
      +              "type": "number"
      +            },
      +            "min_quantity": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "min_quantity",
      +            "ex_vat",
      +            "inc_vat"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "currency": {
      +        "type": "string"
      +      },
      +      "ex_vat": {
      +        "type": "number"
      +      },
      +      "inc_vat": {
      +        "type": "number"
      +      },
      +      "on_sale": {
      +        "type": "boolean"
      +      },
      +      "vat_rate": {
      +        "description": "VAT rate in percent (20 = 20%). null when unknown: ex_vat then equals inc_vat.",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "was_ex_vat": {
      +        "type": "number"
      +      },
      +      "was_inc_vat": {
      +        "description": "Price before the sale; only when on_sale.",
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "currency",
      +      "ex_vat",
      +      "inc_vat",
      +      "on_sale",
      +      "vat_rate"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / products / items / properties / slug / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / products / items / properties / slug / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / products / items / properties / summary / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / products / items / properties / summary / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / products / items / properties / url / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / products / items / properties / url / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "category": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "description": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "id": {
      +              "type": "number"
      +            },
      +            "name": {
      +              "type": "string"
      +            },
      +            "slug": {
      +              "type": "string"
      +            },
      +            "url": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "name",
      +            "slug",
      +            "url"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "pagination": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "last_page": {
      +              "type": "number"
      +            },
      +            "page": {
      +              "type": "number"
      +            },
      +            "per_page": {
      +              "type": "number"
      +            },
      +            "total": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "page",
      +            "per_page",
      +            "total",
      +            "last_page"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "products": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "brand": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "brand_slug": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "categories": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "express_eligible": {
      +            "description": "Website Express (same-working-day UK dispatch); only when the listing reports it.",
      +            "type": "boolean"
      +          },
      +          "gtin": {
      +            "type": "string"
      +          },
      +          "id": {
      +            "type": "number"
      +          },
      +          "image": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "in_stock": {
      +            "type": "boolean"
      +          },
      +          "mpn": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "price": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "bulk_prices": {
      +                    "description": "Lower unit prices from min_quantity up.",
      +                    "items": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "ex_vat": {
      +                          "type": "number"
      +                        },
      +                        "inc_vat": {
      +                          "type": "number"
      +                        },
      +                        "min_quantity": {
      +                          "type": "number"
      +                        }
      +                      },
      +                      "required": [
      +                        "min_quantity",
      +                        "ex_vat",
      +                        "inc_vat"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "type": "array"
      +                  },
      +                  "currency": {
      +                    "type": "string"
      +                  },
      +                  "ex_vat": {
      +                    "type": "number"
      +                  },
      +                  "inc_vat": {
      +                    "type": "number"
      +                  },
      +                  "on_sale": {
      +                    "type": "boolean"
      +                  },
      +                  "vat_rate": {
      +                    "anyOf": [
      +                      {
      +                        "type": "number"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "VAT rate in percent (20 = 20%). null when unknown: ex_vat then equals inc_vat."
      +                  },
      +                  "was_ex_vat": {
      +                    "type": "number"
      +                  },
      +                  "was_inc_vat": {
      +                    "description": "Price before the sale; only when on_sale.",
      +                    "type": "number"
      +                  }
      +                },
      +                "required": [
      +                  "currency",
      +                  "ex_vat",
      +                  "inc_vat",
      +                  "on_sale",
      +                  "vat_rate"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "description": "null when the product has no online price."
      +          },
      +          "sku": {
      +            "type": "string"
      +          },
      +          "slug": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "stock_level": {
      +            "type": "number"
      +          },
      +          "summary": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "url": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "sku",
      +          "name",
      +          "slug",
      +          "url",
      +          "brand",
      +          "brand_slug",
      +          "categories",
      +          "price",
      +          "in_stock",
      +          "stock_level",
      +          "image",
      +          "summary"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "category",
      +    "products",
      +    "pagination"
      +  ],
      +  "type": "object"
      +}
  5. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=true). The description adds genuinely non-obvious behavior beyond them: results are paginated, and the response shape changes depending on whether the slug is a category versus a department or group. No auth or rate-limit notes are needed here.

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?

Two sentences, no filler, and the primary behavior (details plus paged products by slug) is front-loaded ahead of the edge case. The clarifying clause about department/group slugs earns its place as it prevents a misinterpretation.

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

Completeness5/5

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

With five fully documented parameters, an output schema, and complete safety annotations, the only thing the description must supply is the polymorphic response behavior for non-category slugs, which it does. Nothing an agent needs in order to call it correctly is missing.

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

Parameters3/5

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

Schema description coverage is 100% and every parameter (page, slug, sort, locale, per_page) is documented in the schema, so the baseline is 3. The description only gestures at paging with '(paged)' and adds no further semantics about sort, locale, or page limits beyond what the schema already provides.

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 names a concrete resource (a category) and says exactly what comes back: its details plus its products, paged, keyed by slug. It also flags the non-obvious dual mode (department/group slugs return their contents instead). It does not explicitly name siblings like list_categories or get_products, so routing is only partially handled.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: you need a slug, and the department/group clause tells you what happens for non-category slugs. There is no explicit 'use this when...' or 'for product lists use get_products instead' guidance, and no note that slugs should come from list_categories (that only appears in the schema).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources