Skip to main content
Glama

Search catalogue

search_catalogue
Read-onlyIdempotent

Search every product in the workspace's readable catalogue by text, supplier or category, optionally only those with an open recommendation. Use it whenever a product, brand, barcode or supplier is named and you need to know whether and where it is stocked. Pass up to 100 exact identifiers in ids (SKU, PLU, supplier or manufacturer SKU, or the product's own store page URL) to resolve a list in one call; each comes back matched or in not_found. Overly broad identifier results fail explicitly; use fewer or more specific ids. For figures on the results use twelfth_list_products; to resolve a supplier's exact name first use find_supplier.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_catalogue"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNoUp to 100 exact identifiers (barcode/SKU, source product id/PLU, supplier SKU, manufacturer SKU, alternate barcode, or the product's page URL on the workspace's own store, compared on host and path), matched case-insensitively; case-variant duplicates resolve once. Use on its own, without query, supplier_id, supplier_name, category, only_recommended or limit. Overly broad results fail explicitly; use fewer or more specific ids.
limitNoMaximum rows to return (1 to 100), taken after order_by.
queryNoFree text: source brand, manufacturer, product words, SKU/barcode, source product id/PLU, supplier code, category or source lifecycle such as discontinued. Every word must appear somewhere in the row.
contextNoOptional, analytics only: why you are calling this, in a few words; name roles, never people or figures.
categoryNoCategory name to filter by.
order_byNoRank every match by a measure before the limit: slowest_selling or fastest_selling (units over 4 weeks), most_stock_at_cost, most_cover (days of cover). Omit for recommended first, then name, which ranks nothing.
supplier_idNoA supplier's id as find_supplier returned it: that supplier's products, without pre-owned trade-ins. Prefer it to supplier_name once the supplier is resolved.
in_stock_onlyNoTrue = only lines with stock on hand (available stock above zero), filtered server-side over every match. Use it whenever the question says "still have stock" or "holding stock"; never state that condition from rows read without it.
supplier_nameNoSupplier name, fragment or acronym; resolved against the real supplier list. Without pre-owned trade-ins.
conversation_idNoOptional, analytics only: one opaque id reused on every call in this conversation.
units_l4w_belowNoOnly lines that sold FEWER than this many units over the last 4 weeks, counted server-side over every match ("amiibo that haven't sold 8 in 30 days" = 8). Lines with no measured sales are left out.
only_recommendedNoTrue = only SKUs named by an open recommendation.

Output Schema

NameRequiredDescriptionDefault
rowsYesMatching catalogue products.
scopeYesWhat population was searched.
not_foundNoWith ids: identifiers no product in the caller's remit carries.
truncatedYesTrue when more rows matched than were returned.
evidence_idYesHandle for these rows within this call's results. Not a citation.
returned_rowsYesRows in this response.
resolved_suppliersNoHow a supplier_name filter resolved, when one was given.
source_evidence_idsYesWorkspace evidence IDs backing these rows. Empty when the source carries no evidence records.
total_matching_rowsYesRows that matched before any limit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Optional, for analytics only: in about 15 to 25 words, why this tool is being called and how it serves the person's goal. Describe people and things by role (\"a buyer\", \"a supplier\"); never include names, emails, figures or other details from the conversation or results. It never changes the result."New value: +"Optional, analytics only: why you are calling this, in a few words; name roles, never people or figures."
    • changedInput schema / properties / conversation_id / description
      Previous value: -"Optional, for analytics only: one id for this conversation, such as a random UUID chosen on the first call, passed unchanged on every later call in the same conversation so the calls can be grouped. It never changes the result."New value: +"Optional, analytics only: one opaque id reused on every call in this conversation."
  2. Changed2 schema fields changed
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "Optional, for analytics only: in about 15 to 25 words, why this tool is being called and how it serves the person's goal. Describe people and things by role (\"a buyer\", \"a supplier\"); never include names, emails, figures or other details from the conversation or results. It never changes the result.",
      +  "type": "string"
      +}
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "Optional, for analytics only: one id for this conversation, such as a random UUID chosen on the first call, passed unchanged on every later call in the same conversation so the calls can be grouped. It never changes the result.",
      +  "type": "string"
      +}
  3. Changed3 schema fields changed
    • changedInput schema / properties / ids / description
      Previous value: -"Up to 100 exact identifiers (barcode/SKU, source product id/PLU, supplier SKU, manufacturer SKU or alternate barcode), matched case-insensitively; case-variant duplicates resolve once. Use on its own, without query, supplier_id, supplier_name, category, only_recommended or limit. Overly broad results fail explicitly; use fewer or more specific ids."New value: +"Up to 100 exact identifiers (barcode/SKU, source product id/PLU, supplier SKU, manufacturer SKU, alternate barcode, or the product's page URL on the workspace's own store, compared on host and path), matched case-insensitively; case-variant duplicates resolve once. Use on its own, without query, supplier_id, supplier_name, category, only_recommended or limit. Overly broad results fail explicitly; use fewer or more specific ids."
    • changedInput schema / properties / ids / items / maxLength
      Previous value: -64New value: +500
    • changedOutput schema / properties / rows / items / properties / matched_on / enum
      Previous value: -[
      -  "sku",
      -  "source_product_id",
      -  "supplier_sku",
      -  "manufacturer_sku",
      -  "alternate_barcode"
      -]New value: +[
      +  "sku",
      +  "source_product_id",
      +  "supplier_sku",
      +  "manufacturer_sku",
      +  "alternate_barcode",
      +  "url"
      +]
  4. Changed3 schema fields changed
    • changedInput schema / properties / query / description
      Previous value: -"Free text: brand, product words, SKU/barcode, source product id/PLU, supplier code, category or source lifecycle such as discontinued. Every word must appear somewhere in the row."New value: +"Free text: source brand, manufacturer, product words, SKU/barcode, source product id/PLU, supplier code, category or source lifecycle such as discontinued. Every word must appear somewhere in the row."
    • addedOutput schema / properties / rows / items / properties / brand
      Added value: +{
      +  "description": "Source-declared brand, licence or product-line labels; several can be valid for one product.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / rows / items / properties / manufacturer
      Added value: +{
      +  "description": "Source-declared maker, distinct from supplier and buyer.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"Free text: brand, product words, SKU/barcode, source product id/PLU, supplier code or category. Every word must appear somewhere in the row."New value: +"Free text: brand, product words, SKU/barcode, source product id/PLU, supplier code, category or source lifecycle such as discontinued. Every word must appear somewhere in the row."
  6. Changed1 schema field changed
    • addedOutput schema / properties / rows / items / properties / range_channel
      Added value: +{
      +  "description": "Where the product is ranged: Online only (held at the warehouse, not stocked in store), Store only, or Online and store. Absent when the source does not say.",
      +  "type": "string"
      +}
  7. Changed14 schema fields changed
    • removedOutput schema / properties / rows / items / properties / category / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / rows / items / properties / category / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / rows / items / properties / manufacturer_sku / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / rows / items / properties / manufacturer_sku / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / rows / items / properties / out_of_range_since / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / rows / items / properties / out_of_range_since / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / rows / items / properties / recommendation_kind / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / rows / items / properties / recommendation_kind / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / rows / items / properties / source_product_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / rows / items / properties / source_product_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / rows / items / properties / supplier / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / rows / items / properties / supplier / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / rows / items / properties / supplier_sku / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / rows / items / properties / supplier_sku / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  8. Changed1 schema field changed
    • addedInput schema / properties / in_stock_only
      Added value: +{
      +  "description": "True = only lines with stock on hand (available stock above zero), filtered server-side over every match. Use it whenever the question says \"still have stock\" or \"holding stock\"; never state that condition from rows read without it.",
      +  "type": "boolean"
      +}
  9. Changed6 schema fields changed
    • changedInput schema / properties / ids / description
      Previous value: -"Up to 100 exact identifiers (barcode/SKU, source product id/PLU, supplier SKU, manufacturer SKU or alternate barcode), matched case-insensitively; case-variant duplicates resolve once. Use on its own, without query, supplier_name, category, only_recommended or limit. Overly broad results fail explicitly; use fewer or more specific ids."New value: +"Up to 100 exact identifiers (barcode/SKU, source product id/PLU, supplier SKU, manufacturer SKU or alternate barcode), matched case-insensitively; case-variant duplicates resolve once. Use on its own, without query, supplier_id, supplier_name, category, only_recommended or limit. Overly broad results fail explicitly; use fewer or more specific ids."
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum rows to return (1 to 100)."New value: +"Maximum rows to return (1 to 100), taken after order_by."
    • addedInput schema / properties / order_by
      Added value: +{
      +  "description": "Rank every match by a measure before the limit: slowest_selling or fastest_selling (units over 4 weeks), most_stock_at_cost, most_cover (days of cover). Omit for recommended first, then name, which ranks nothing.",
      +  "enum": [
      +    "slowest_selling",
      +    "fastest_selling",
      +    "most_stock_at_cost",
      +    "most_cover"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / supplier_id
      Added value: +{
      +  "description": "A supplier's id as find_supplier returned it: that supplier's products, without pre-owned trade-ins. Prefer it to supplier_name once the supplier is resolved.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • changedInput schema / properties / supplier_name / description
      Previous value: -"Supplier name, fragment or acronym; resolved against the real supplier list."New value: +"Supplier name, fragment or acronym; resolved against the real supplier list. Without pre-owned trade-ins."
    • addedInput schema / properties / units_l4w_below
      Added value: +{
      +  "description": "Only lines that sold FEWER than this many units over the last 4 weeks, counted server-side over every match (\"amiibo that haven't sold 8 in 30 days\" = 8). Lines with no measured sales are left out.",
      +  "maximum": 100000,
      +  "minimum": 0,
      +  "type": "number"
      +}
  10. Changed3 schema fields changed
    • changedInput schema / properties / ids / description
      Previous value: -"Up to 100 exact identifiers (barcode/SKU, source product id/PLU or supplier SKU), matched case-insensitively; case-variant duplicates resolve once. Use on its own, without query, supplier_name, category, only_recommended or limit. Overly broad results fail explicitly; use fewer or more specific ids."New value: +"Up to 100 exact identifiers (barcode/SKU, source product id/PLU, supplier SKU, manufacturer SKU or alternate barcode), matched case-insensitively; case-variant duplicates resolve once. Use on its own, without query, supplier_name, category, only_recommended or limit. Overly broad results fail explicitly; use fewer or more specific ids."
    • addedOutput schema / properties / rows / items / properties / manufacturer_sku
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "With ids: the manufacturer's part code, when the warehouse carries one."
      +}
    • changedOutput schema / properties / rows / items / properties / matched_on / enum
      Previous value: -[
      -  "sku",
      -  "source_product_id",
      -  "supplier_sku"
      -]New value: +[
      +  "sku",
      +  "source_product_id",
      +  "supplier_sku",
      +  "manufacturer_sku",
      +  "alternate_barcode"
      +]
  11. Changed2 schema fields changed
    • changedInput schema / properties / ids / description
      Previous value: -"Up to 100 exact identifiers (barcode/SKU, source product id/PLU or supplier SKU), matched case-insensitively. Use instead of query, not with it."New value: +"Up to 100 exact identifiers (barcode/SKU, source product id/PLU or supplier SKU), matched case-insensitively; case-variant duplicates resolve once. Use on its own, without query, supplier_name, category, only_recommended or limit. Overly broad results fail explicitly; use fewer or more specific ids."
    • changedOutput schema / properties / rows / items / properties / out_of_range_since / description
      Previous value: -"When the product left the active range (ISO), or null while in range."New value: +"When sync first observed the product outside the active range (ISO), or null while in range; not a last-sale or exact exit date."
  12. Changed7 schema fields changed
    • addedInput schema / properties / ids
      Added value: +{
      +  "description": "Up to 100 exact identifiers (barcode/SKU, source product id/PLU or supplier SKU), matched case-insensitively. Use instead of query, not with it.",
      +  "items": {
      +    "maxLength": 64,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 100,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedOutput schema / properties / not_found
      Added value: +{
      +  "description": "With ids: identifiers no product in the caller's remit carries.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / rows / items / properties / id
      Added value: +{
      +  "description": "With ids: the identifier this row answers.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / rows / items / properties / matched_on
      Added value: +{
      +  "description": "With ids: the column the identifier matched.",
      +  "enum": [
      +    "sku",
      +    "source_product_id",
      +    "supplier_sku"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / rows / items / properties / out_of_range_since
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "When the product left the active range (ISO), or null while in range."
      +}
    • addedOutput schema / properties / rows / items / properties / source_product_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The source system's own product id (e.g. Retail Express id / PLU)."
      +}
    • addedOutput schema / properties / rows / items / properties / supplier_sku
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The supplier's part number."
      +}
  13. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"Free text: brand, product words, SKU/barcode or category. Every word must appear somewhere in the row."New value: +"Free text: brand, product words, SKU/barcode, source product id/PLU, supplier code or category. Every word must appear somewhere in the row."
  14. Changed2 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum rows to return (1–100)."New value: +"Maximum rows to return (1 to 100)."
    • changedOutput schema / properties / rows / items / required
      Previous value: -[
      -  "sku",
      -  "product",
      -  "category",
      -  "supplier",
      -  "remit",
      -  "recommended",
      -  "recommendation_kind"
      -]New value: +[
      +  "sku",
      +  "product",
      +  "category",
      +  "supplier",
      +  "recommended",
      +  "recommendation_kind"
      +]
  15. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile needs no restating. The description still adds real behavior: ids resolve in one call with each identifier returned matched or in not_found, and overly broad identifier sets fail explicitly rather than silently truncating. It stops short of describing what an empty match set means or how results are paged.

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?

Four sentences, front-loaded with scope, then the when-to-use trigger, then the batch-identifier capability, then sibling routing. Every sentence carries either scope, a trigger or a routing decision; there is no filler.

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

Completeness4/5

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

With 12 optional parameters, full schema coverage, an output schema and rich annotations, the description covers the main entry paths and the non-obvious batch-identifier mode. It leaves the ranking and stock-filter parameters entirely to the schema, which is acceptable given 100% coverage, but a brief note on the default recommended-first ordering would round it out.

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%, so every parameter including ids, order_by, in_stock_only and units_l4w_below is already documented in structured data; a baseline of 3 applies. The description adds the operating mode of ids (one-call batch resolution with per-item not_found) and the failure behavior on broad identifiers, but largely restates what the schema already says.

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

Purpose5/5

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

States a specific verb and resource with scope: 'Search every product in the workspace's readable catalogue by text, supplier or category'. It immediately differentiates itself from siblings by naming twelfth_list_products for figures and find_supplier for resolving supplier names, so an agent can route without opening a schema.

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

Usage Guidelines5/5

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

Gives an explicit trigger: 'Use it whenever a product, brand, barcode or supplier is named and you need to know whether and where it is stocked', plus an explicit alternative route for figures (twelfth_list_products) and for supplier resolution (find_supplier). It also states the bulk-identifier mode and its constraint to use ids alone.

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.