Skip to main content
Glama

Find brands

kh_brands
Read-onlyIdempotent

Find brands by name in Persian or English and return their slugs for use in kh_browse or kh_filters; page through about 3,200 brand records.

Instructions

Find brands by name (about 3,200) with their slugs, for the brands of kh_browse / kh_filters.

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

Input Schema

NameRequiredDescriptionDefault
pageNoFrom 1.
limitNoBrands per page.
queryNoBrand name, Persian or English, e.g. 'سیمپل' or 'cerave'. Empty = all, A-Z.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.4.0
    • changedInput schema / properties / page / description
      Previous value: -"Page number, from 1."New value: +"From 1."
    • removedInput schema / properties / query / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 60,
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / query / maxLength
      Added value: +60
    • addedInput schema / properties / query / minLength
      Added value: +1
    • addedInput schema / properties / query / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. Changed6 schema fields changedv0.2.0
    • changedInput schema / properties / limit / default
      Previous value: -50New value: +30
    • 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: -"kh_brandsArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "kh_brandsDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent and non-destructive behavior, so the bar is lower. The description adds the corpus scale (about 3,200) and that slugs are returned, but says nothing about result ordering, paging limits, or whether the count is exhaustive.

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?

A single sentence with the core purpose front-loaded and zero filler; the scale and the return value are packed in without redundancy.

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 three-optional-parameter, read-only lookup with no output schema, the description covers what the tool returns (brand slugs) and why, which is what an agent needs to chain it into kh_browse. Missing only a note on paging totals or whether results are exhaustive.

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 100%: page, limit and query are each documented in the schema, including the Persian/English example and the empty-string-means-all semantics. The description adds no parameter meaning beyond that, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ("Find brands by name") plus the corpus size (about 3,200) and the returned field (slugs). It also names the downstream consumers (kh_browse / kh_filters), so an agent can distinguish it from kh_categories and kh_search without opening a schema.

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?

The phrase "for the `brands` of kh_browse / kh_filters" tells the agent the context in which this lookup is useful: resolving a brand name to a slug before filtering. It stops short of any explicit when-not guidance, e.g. whether kh_search should be preferred for free-text brand matching.

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