Skip to main content
Glama

Trailberg — Activewear, Tracksuits & Footwear

Render product search

render_product_search

Search Trailberg and render the interactive product carousel. Pass the shopper's product wording through in query without rewriting it. When the shopper states a budget, provide min_price and/or max_price in major currency units; use both with the same value only for an exact price. For one requested category or concept, call this tool exactly once and do not repeat or rephrase the search. If no products are returned, show the empty result and ask before trying a different query or relaxing constraints. For multiple explicitly requested categories, use one faithful combined search when possible; otherwise call this tool once per distinct category. Do not create separate searches for synonyms, colours, styles, audiences, or alternative wording. Use this for browsing or discovery, not as a preliminary lookup for an exact product-detail request. Do not automatically open product-detail tools for returned products to rank, compare, validate, or explain the results. For products to pair or match with a referenced item, use render_complete_the_look instead.

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum products to return.
queryYesThe shopper's product wording, passed to Shopify unchanged.
currencyNoISO 4217 currency code.
max_priceNoOptional maximum price in major currency units.
min_priceNoOptional minimum price in major currency units.
buyer_contextNo

Output Schema

NameRequiredDescriptionDefault
typeNoproduct_search_result
queryYes
storeYes
messageYes
productsNo
matchTypeYes
explanationNo
resultCountNo
suggestionsNo
rawResultCountNo
recommendedViewNo
searchCandidatesNo
resolvedProductIdNo
totalCandidateResultsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the UI side effect (renders a carousel), states the no-results policy, forbids automatic follow-up calls into detail tools, and caps the call-count pattern per category. It does not mention auth/session prerequisites or whether the carousel replaces or appends to prior output, which keeps it from a 5.

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?

Front-loaded with purpose and the most important constraint (faithful query), then rules in priority order. A few directives overlap — "do not repeat or rephrase" is restated by the later synonyms/colours/styles sentence — so the text could shed roughly a sentence without losing meaning.

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?

Output schema exists, so return values need no explanation, and the description supplies the decision rules a 6-parameter search tool needs. The only remaining hole is buyer_context, which is undocumented in both schema and prose and could matter for personalized results.

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

Parameters4/5

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

Adds real meaning beyond the 83%-covered schema: query must be the shopper's wording passed through unrewritten, and min_price/max_price are in major currency units with the non-obvious rule that using both with the same value means an exact price. Only buyer_context is left undocumented in both schema and description.

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?

Opens with a specific verb and resource ("Search Trailberg and render the interactive product carousel") and immediately distinguishes itself from the closest sibling by naming render_complete_the_look for pair/match requests. An agent can route correctly without opening any other 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?

Explicit when-to-use (browsing/discovery, single requested concept, multiple explicit categories), when-not-to-use (not a preliminary lookup for an exact product-detail request), what to do on empty results (show empty result, ask before retrying), and which alternative to pick (render_complete_the_look, product-detail tools). This is close to exhaustive routing guidance.

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