Skip to main content
Glama

defacto_search_products

Search DeFacto products by Turkish keyword and retrieve paginated product details including prices, discounts, stock, sizes, and URLs; check exact_match to exclude fallback results.

Instructions

Search DeFacto products by keyword (Turkish).

query: e.g. "elbise" (dress), "kot pantolon", "mont". page: result page (24 products per page, default 1). limit: how many of the page to return (1-50, default 10). Returns each product's name, id, current and list price in TRY, computed discount %, campaign info, colour, category, sizes, stock and URL. A nonsense query returns HTTP 200 with generic fallback products — exact_match is false then; check the flag before treating results as matches.

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": {
      "query": "<query>"
    },
    "name": "defacto_search_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
limitNo
queryYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does substantial work: it discloses pagination size (24 per page), the limit range (1-50, default 10), and the non-obvious fallback behavior where a nonsense query returns HTTP 200 with generic products plus an exact_match=false flag. It omits auth requirements, rate limits, and language-mismatch behavior, which keeps it short of 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?

Dense and front-loaded, with the key search semantics first and the exact_match caveat last. The inline 'query:'/'page:'/'limit:' labels are efficient, though the hard line breaks and run-on sentence about return fields make it slightly harder to scan than it needs to be.

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?

An output schema exists, so the return-value list is arguably redundant, but the fallback/exact_match warning is essential context an agent would otherwise miss. For a read-only three-parameter search tool with no annotations, the definition covers everything needed to call it and interpret ambiguous results, with only auth and rate-limit details absent.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate and it does: query is defined as a Turkish keyword with concrete examples, page is defined as a result page with a stated 24-products-per-page unit and default 1, and limit is defined as how many of that page to return with a 1-50 range and default 10. All three parameters gain meaning unavailable in the schema.

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?

States a specific verb and resource ('Search DeFacto products by keyword') and adds the Turkish-language constraint, which meaningfully narrows what a successful call looks like. It does not name or contrast with siblings such as defacto_category_products or defacto_get_product, so the agent must infer that this is the keyword path rather than the category-browse path.

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: the Turkish keyword examples ('elbise', 'kot pantolon', 'mont') show what to pass, and the nonsense-query warning tells the agent when results are untrustworthy. There is no explicit when-to-use/when-not statement or pointer to a sibling alternative for browsing by category or fetching a single product.

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