Skip to main content
Glama
masterkala-mcp

masterkala-mcp

by sepehr071

Search products

mk_search
Read-only

Search MasterKala products by keyword to compare prices, discounts, and stock, with in-stock items first. Also returns matching category IDs and brand/tag pages for browsing.

Instructions

Search MasterKala products by keyword: price, discount and stock of each match.

Use first for "price of X". In-stock first. Also returns matching categories (ids for mk_browse) and brand/tag pages.

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

Input Schema

NameRequiredDescriptionDefault
pageNoFrom 0.
limitNoProducts per page.
queryYesPersian or English keyword, e.g. 'هندزفری بلوتوث'.
in_stock_onlyNoDrop items not buyable now (total still counts all matches).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.5.0
    • changedInput schema / properties / in_stock_only / description
      Previous value: -"Drop items that cannot be bought online now. In-stock items come first, so an empty page means no more in-stock matches (total still counts all matches)."New value: +"Drop items not buyable now (total still counts all matches)."
    • changedInput schema / properties / page / description
      Previous value: -"Page number, from 0."New value: +"From 0."
    • 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. 'هندزفری بلوتوث'."
  2. Changed6 schema fields changedv0.3.0
    • removedInput schema / properties / in_stock_only / title
      Removed value: -"In Stock Only"
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • removedInput schema / properties / page / title
      Removed value: -"Page"
    • removedInput schema / properties / query / title
      Removed value: -"Query"
    • removedInput schema / title
      Removed value: -"mk_searchArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "mk_searchDictOutput",
      -  "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 already declare readOnlyHint=true, so safety is covered. Beyond that, the description discloses ranking behavior (in-stock results surfaced first) and that the call also returns category ids usable with mk_browse plus brand/tag pages — genuinely useful call-shaping context not present in structured fields. It says nothing about result volume or pagination limits, which slightly weakens it.

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?

Three tight fragments with zero filler, and the core purpose plus the primary use case are front-loaded in the first two sentences. The dangling "In-stock first" fragment is terse but still parseable.

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 fills that gap by sketching what comes back (price, discount, stock per match, plus categories, brands and tags). Pagination and the 100-character query bound are left to the schema, which is fine for a simple read tool of this size.

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 four parameters are already documented, including the nuance that in_stock_only does not change the total count. The only semantic addition is the "In-stock first" ranking hint, which is thin added value; baseline 3 is appropriate.

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 description names a specific verb and resource ("Search MasterKala products by keyword") and enumerates what each match carries (price, discount, stock). It distinguishes itself from browsing tools but never names the closest sibling, mk_find_cheapest, so the differentiation is only partial.

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 first for 'price of X'" gives an explicit selection rule, and "In-stock first" signals a default ranking preference. It stops short of stating when NOT to use this tool — e.g. when mk_find_cheapest or mk_browse is the better fit — so an agent must infer the boundary from sibling names alone.

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