Skip to main content
Glama
basalam-mcp

basalam-mcp

by sepehr071

List categories

bs_categories
Read-onlyIdempotent

Browse Basalam's category tree to find category IDs for filtering product searches; list top-level categories or look up a category by name and get its path.

Instructions

Browse Basalam's category tree and return ids for the category_id filter of bs_search.

No arguments lists the top level; query finds a category by name (returns its path).

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

Input Schema

NameRequiredDescriptionDefault
queryNoTitle contains this, any depth (inside parent_id if given), e.g. 'عسل'.
parent_idNoList its children, e.g. 1 (food); omit for top level.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.2
    • changedInput schema / properties / parent_id / description
      Previous value: -"Category id to list the children of, e.g. 1 (food). Omit for top level."New value: +"List its children, e.g. 1 (food); omit for top level."
    • changedInput schema / properties / query / description
      Previous value: -"Find categories whose title contains this, at any depth (inside parent_id when given), e.g. 'عسل'."New value: +"Title contains this, any depth (inside parent_id if given), e.g. 'عسل'."
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile needs no restating. The description adds the default empty-argument behavior (top level) and that a name query returns a path, but says nothing about result size, whether the tree is paginated, or how deep a listing goes.

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?

Two short sentences, front-loaded with the purpose and tied to the consuming filter; the second sentence cleanly separates the no-argument and query modes. No 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?

With no output schema, the description takes on return-value disclosure and does state that ids (and a path for name queries) come back. For a two-parameter, optional-only browsing tool that is largely sufficient, with only depth/pagination behavior left implicit.

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 meaning beyond the schema by explaining what happens with zero parameters and by clarifying that query is a name lookup whose result carries the category's path, refining the schema's terser 'Title contains this' wording.

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 and resource ('Browse Basalam's category tree and return ids') and immediately names its downstream consumer, the category_id filter of bs_search, which distinguishes it from search-oriented siblings.

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?

Explicitly explains the two calling modes: no arguments for the top level, and query for name lookup with path returned. It also makes clear this is the prerequisite step for bs_search, though it does not state when to prefer this over browsing via bs_search or bs_vendor_products directly.

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