Skip to main content
Glama

Search products

search_products
Read-onlyIdempotent

Search tea catalog by keywords, category, or stock status. Get matching product IDs, prices, sizes, and availability in one query.

Instructions

Search the Sunleaf Tea Co. catalog by keywords such as a tea type, flavour, occasion or teaware item. Returns matching products with id, category, price in INR and USD, sizes and stock status. Use get_product for full details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesKeywords, for example "caffeine-free" or "green tea"
categoryNoOptional category filter: black tea, gift box, green tea, herbal, oolong tea, teaware, white tea
max_resultsNoHow many results to return, 1 to 10 (default 8)
in_stock_onlyNoReturn only products that are in stock

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, covering the safety profile. The description adds value by specifying the exact return fields (id, category, price in INR and USD, sizes, stock status), which is useful behavioral context beyond the annotations. No contradictions.

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 with no filler. The purpose and examples are front-loaded, and the alternative is stated in the second sentence. Every word earns its place.

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?

The tool has an output schema, so return values are already structured. The description covers the query purpose, result contents, and the alternative for full details. With all parameters documented in the schema and annotations covering safety, nothing an agent needs to call this 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%, so all parameters are already documented. The description adds a few extra examples for the query parameter (tea type, flavour, occasion, teaware) but this is marginal and largely redundant with the schema's own examples. It meets the baseline but does not significantly enhance parameter understanding.

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?

The description states a specific verb ('search'), a resource ('Sunleaf Tea Co. catalog'), and gives concrete examples of query types (tea type, flavour, occasion, teaware). It also explicitly distinguishes itself from the sibling get_product by saying 'Use get_product for full details,' so an agent can tell them apart without opening schemas.

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?

The description clearly indicates when to use this tool (search by keywords for summary results) and when not to (when full details are needed), naming the alternative get_product. This explicit routing leaves no ambiguity about selection.

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