Skip to main content
Glama
masterkala-mcp

masterkala-mcp

by sepehr071

Filters of a category or brand

mk_filters
Read-only

Retrieve filter IDs, names, and price ranges for a category, brand, or tag page to select valid options before browsing products.

Instructions

List the filters of a category, brand or tag page with their ids, and its price range.

Use before mk_browse; options map filter id -> name. Non-brand groups are cut to 40 (omitted = rest): pass group for all. max_price in Toman.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mk_filters"
  }
}

Input Schema

NameRequiredDescriptionDefault
brandNoFrom mk_brands, e.g. 'mcdodo'.
groupNoOnly this group, in full, e.g. 'رنگ' (color).
tag_idNoFrom /tag/<id>/ links, e.g. 22246.
category_idNoFrom mk_categories or mk_search, e.g. 606.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.5.0
    • changedInput schema / properties / brand / description
      Previous value: -"Brand slug from mk_brands, e.g. 'mcdodo' or 'anker-fa'."New value: +"From mk_brands, e.g. 'mcdodo'."
    • changedInput schema / properties / category_id / description
      Previous value: -"Category id from mk_categories or mk_search, e.g. 606 (Bluetooth earbuds)."New value: +"From mk_categories or mk_search, e.g. 606."
    • changedInput schema / properties / group / description
      Previous value: -"Return only this filter group, in full, e.g. 'رنگ' (color) or 'برند' (brand)."New value: +"Only this group, in full, e.g. 'رنگ' (color)."
    • changedInput schema / properties / tag_id / description
      Previous value: -"Tag id from a /tag/<id>/ link in mk_search pages, e.g. 22246."New value: +"From /tag/<id>/ links, e.g. 22246."
  2. Changed6 schema fields changedv0.3.0
    • removedInput schema / properties / brand / title
      Removed value: -"Brand"
    • removedInput schema / properties / category_id / title
      Removed value: -"Category Id"
    • removedInput schema / properties / group / title
      Removed value: -"Group"
    • removedInput schema / properties / tag_id / title
      Removed value: -"Tag Id"
    • removedInput schema / title
      Removed value: -"mk_filtersArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "mk_filtersDictOutput",
      -  "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 supply readOnlyHint=true, and the description adds real behavioral context: non-brand groups are truncated to 40 items, the `omitted` field reports the remainder, and `group` must be passed to get a full group. That truncation disclosure is exactly the kind of partial-results information an agent needs. It omits anything about the overall result size or format of the filter list.

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?

Three short lines, front-loaded with purpose then usage, with no filler. The trailing 'max_price in Toman' is terse to the point of ambiguity — it isn't clear whether it describes an output field or an omitted parameter.

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 carries return-value burden and does it reasonably: ids, filter options, price range, and the `omitted` truncation marker. The role of max_price and the shape of the returned structure could be stated more precisely, but an agent can call this correctly.

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; the description adds meaning by explaining that `group` requests an untruncated group and that options map filter id -> name. However, 'max_price in Toman' reads as if it were an input, when max_price is not in this schema — a mildly confusing placement that costs it a point.

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+resource: 'List the filters of a category, brand or tag page with their ids, and its price range.' This clearly separates it from mk_categories/mk_brands (which supply the ids) and positions it upstream of mk_browse. It doesn't explicitly say what it is NOT, so it stops short of a 5.

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 before mk_browse' gives an explicit sequencing rule, and the param docs name the source tool for each input (mk_brands, mk_categories/mk_search). It lacks explicit when-not guidance (e.g. when to use brand vs category vs tag instead), which keeps it from a 5.

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