Skip to main content
Glama

defacto_price_stats

Retrieves price statistics for a DeFacto search: min/median/mean/max TRY prices, campaign count, average discount, and common categories. Answers product cost questions without paging listings.

Instructions

Price statistics for a DeFacto search (first 24 results).

query: e.g. "elbise". Returns the search total, the number of products analysed, min / median / mean / max price in TRY, how many are on campaign and the average discount, and the most common categories. Use it to answer "how much does X cost at DeFacto?" without paging through listings.

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_price_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does real work: it discloses the 24-result sampling cap, the TRY currency, and the exact derived metrics (min/median/mean/max, campaign count, average discount, top categories). It omits any note on result freshness, caching, or whether the sample is the first page or a random slice, which matters for a statistic presented as representative.

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 the core statement, then the sample-size caveat, then the example and the returned metrics. The metric enumeration is somewhat redundant given that an output schema exists, but every sentence is readable and none is 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?

For a single-parameter stats tool with an output schema, the definition supplies the essentials: scope, sample limit, currency, and intended question type. The remaining gap is behavioral (freshness/representativeness of the 24-item sample) rather than structural.

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 0% for the single 'query' parameter, so the description must compensate, and it does so only partially — one Turkish-language example ('elbise') conveys that this is a plain keyword search. It does not state matching behavior, language handling, or whether the query affects the 24-item sample selection.

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?

The opening sentence names the resource (price statistics) and pins the scope precisely (a DeFacto search, first 24 results). The enumerated metrics tell an agent exactly what comes back, and the closing phrase 'without paging through listings' implicitly distinguishes it from the paged listing siblings, though no sibling is named outright.

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

Usage Guidelines4/5

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

It gives an explicit trigger — answer questions of the form 'how much does X cost at DeFacto?' — and contrasts that with the paged-listing route. There is no when-not clause (e.g. for single-product lookups where defacto_get_product would be better), so the routing logic is clear but not exhaustive.

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