Skip to main content
Glama

Search products

search_products
Read-onlyIdempotent

Search this store's catalogue. Prices are in Minor units (piastres): 12345 means 123.45 EGP. Results carry nextCursor while there are more pages. categoryId (from list_categories) limits the search to one category.

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": {
      "store": "<store>"
    },
    "name": "search_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum products per page, 1 to 50.
queryNoFree-text search over product names and descriptions, up to 200 characters.
storeYesThe store, from find_stores or search_all_stores (its `store` field).
cursorNoOpaque page token: the nextCursor value of the previous page.
localeNoLanguage of the returned text: ar (Arabic) or en (English).
priceMaxNoMinor units (piastres): 12345 means 123.45 EGP.
priceMinNoMinor units (piastres): 12345 means 123.45 EGP.
categoryIdNoFrom list_categories.
availableOnlyNoWhen true, only products that are in stock are returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / availableOnly / description
      Added value: +"When true, only products that are in stock are returned."
    • addedInput schema / properties / cursor / description
      Added value: +"Opaque page token: the nextCursor value of the previous page."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum products per page, 1 to 50."
    • addedInput schema / properties / locale / description
      Added value: +"Language of the returned text: ar (Arabic) or en (English)."
    • addedInput schema / properties / query / description
      Added value: +"Free-text search over product names and descriptions, up to 200 characters."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuine behavioral context beyond that: prices are in minor units (piastres), and results carry nextCursor while more pages exist, which tells the agent how to paginate. It stops short of explaining the no-query case or default limit/locale behavior.

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

Conciseness4/5

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

Four short sentences, front-loaded with the core action, then the two highest-risk gotchas (price units, pagination), then the category filter. The price-units sentence duplicates the schema text for priceMin/priceMax, which is mild redundancy but defensible as a trap warning.

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?

For a 9-parameter read-only search with no output schema, the description supplies the two things an agent would most likely get wrong: currency units and pagination continuation. Remaining gaps — optional query behavior, default limit, default locale — are documented in the schema properties, so completeness is close to adequate.

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 coverage is 100%, so every parameter already carries its own description including the minor-units convention, the cursor token, and categoryId provenance. The description largely restates those points at the tool level, which aids recall but adds little meaning beyond the schema — the baseline 3 applies.

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?

"Search this store's catalogue" gives a clear verb and resource, and the word "this store's" implicitly scopes it to a single store as opposed to the cross-store sibling search_all_stores. It never names that sibling, so the differentiation is inferable rather than explicit.

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?

The description points to list_categories for obtaining categoryId and to find_stores/search_all_stores (via the schema) for obtaining the store, which is useful dependency guidance. However, it never says when to use this instead of get_product or search_all_stores, and it does not state whether omitting query is allowed or what that returns.

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.