Skip to main content
Glama

Course categories

mkh_categories
Read-onlyIdempotent

Browse Maktabkhooneh course category trees, retrieve top-level groups or subtrees by slug, and search category titles to get slugs for course listing tools.

Instructions

Category tree (about 680 nodes, 11 top-level groups): slugs for the course listing tools.

No arguments = top-level groups. slug = one subtree. query = title search with 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": "mkh_categories"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugNoShow this subtree, e.g. 'programming'.
depthNoSub-category levels to show.
queryNoTitle search, e.g. 'پایتون'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.0
    • changedInput schema / properties / depth / description
      Previous value: -"Levels of sub-categories to show below slug (default 1; top level when no slug)."New value: +"Sub-category levels to show."
    • changedInput schema / properties / query / description
      Previous value: -"Find categories by title, e.g. 'پایتون' or 'زبان'."New value: +"Title search, e.g. 'پایتون'."
    • changedInput schema / properties / slug / description
      Previous value: -"Show this category and what is below it, e.g. 'programming'."New value: +"Show this subtree, e.g. 'programming'."
  2. First observedv0.1.2

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so safety is covered. The description adds what annotations cannot: the tree's scale (~680 nodes, 11 roots), warning the agent that broad requests may return a large payload, and the fact that returned slugs are consumed by the course listing tools. It omits any note about response size limits or whether depth is bounded at 3.

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 short lines with the resource and scale front-loaded, followed by one line per call mode. Nothing is repeated from the schema and no sentence is 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?

All three parameters are optional and documented; the description covers the two mutually exclusive modes and the no-argument default, and there is no output schema to explain. The only gap is the depth parameter's interaction with subtree breadth, which could matter given a 680-node tree.

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 baseline is 3, but the description adds mode-level meaning beyond the per-field text: 'slug = one subtree' clarifies the subtree scope, and 'query = title search with path' reveals that search results carry hierarchy paths, which the schema's 'Title search' does not convey. The depth parameter is left entirely to the schema.

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 the resource concretely ('Category tree'), quantifies it (about 680 nodes, 11 top-level groups), and states the payload's role ('slugs for the course listing tools'), so an agent knows this is the slug-lookup tool. It does not name a sibling it is distinct from, but the resource framing is specific enough to separate it from mkh_search and mkh_browse.

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?

It gives explicit call modes: no arguments for top-level groups, slug for one subtree, query for title search 'with path'. That is clear when-to-use-each-parameter guidance. It stops short of exclusions or naming alternatives (e.g. when to prefer mkh_search over a query search here).

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