Skip to main content
Glama
masterkala-mcp

masterkala-mcp

by sepehr071

Find cheapest product

mk_find_cheapest
Read-only

Find in-stock products for a keyword, return a flat list sorted by final price, and filter by free-shipping eligibility to compare low-cost options.

Instructions

Find the cheapest in-stock products for a keyword, one flat list sorted by final_price.

Use for the lowest price of X. free_shipping = reaches 5,000,000 Toman (bulky items never). complete=false: more in-stock items past scanned; raise scan.

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": "mk_find_cheapest"
  }
}

Input Schema

NameRequiredDescriptionDefault
scanNoMax results to scan, 500 per request.
limitNoMax offers.
queryYesPersian or English keyword, e.g. 'هندزفری بلوتوث'.
match_all_wordsNoKeep only titles containing every query word.
include_accessoriesNoKeep cases, covers, protectors, straps (dropped unless the query names them).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.5.0
    • changedInput schema / properties / include_accessories / description
      Previous value: -"Also keep cases, covers, screen protectors and straps made for the product (dropped by default unless the query names them)."New value: +"Keep cases, covers, protectors, straps (dropped unless the query names them)."
    • changedInput schema / properties / limit / description
      Previous value: -"Max offers to return."New value: +"Max offers."
    • changedInput schema / properties / match_all_words / description
      Previous value: -"Keep only titles that contain every word of the query."New value: +"Keep only titles containing every query word."
    • changedInput schema / properties / query / description
      Previous value: -"Product name or keyword, Persian or English, e.g. 'هندزفری بلوتوث' or 'xiaomi'."New value: +"Persian or English keyword, e.g. 'هندزفری بلوتوث'."
    • changedInput schema / properties / scan / description
      Previous value: -"Max search results to scan, 500 per request; stops early once the in-stock items end."New value: +"Max results to scan, 500 per request."
  2. Changed7 schema fields changedv0.3.0
    • removedInput schema / properties / include_accessories / title
      Removed value: -"Include Accessories"
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • removedInput schema / properties / match_all_words / title
      Removed value: -"Match All Words"
    • removedInput schema / properties / query / title
      Removed value: -"Query"
    • removedInput schema / properties / scan / title
      Removed value: -"Scan"
    • removedInput schema / title
      Removed value: -"mk_find_cheapestArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "mk_find_cheapestDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description carries real weight and does: it discloses in-stock-only filtering, sort order, the free_shipping threshold (5,000,000 Toman, never for bulky items), and the meaning of complete=false with the scanned counter. It omits auth needs, rate limits, and empty-result behavior, so it stops 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?

Front-loaded with the core purpose and kept to three short sentences with no filler. The telegraphic fragments ("free_shipping = reaches 5,000,000 Toman") are dense but readable, though a phrase like "Use for the lowest price of X" is thinner than the surrounding content.

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?

With no output schema, the description takes on the job of naming the returned fields that matter (final_price ordering, free_shipping, complete, scanned) and it does so. It is nearly sufficient for a 5-parameter read tool; what is missing is whether results are per-product or per-offer and how empty results are signalled.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning to `scan` by tying it to the complete flag and telling the agent to raise it to page further. It also explains when include_accessories matters in practice (non-accessory queries drop them), slightly exceeding the schema's phrasing.

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 — finding the cheapest in-stock products for a keyword — and adds output shape (one flat list sorted by final_price). That distinguishes it from the general mk_search/mk_browse siblings without naming them 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?

"Use for the lowest price of X" gives a clear selection cue that implicitly routes price-hunting queries here rather than to keyword search. It stops short of naming the alternative sibling or saying when not to use it.

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