Skip to main content
Glama

get_category_tree

Retrieve the full category tree or a specific subtree to browse Sheypoor classifieds by category.

Instructions

Return the full category tree (or a subtree if parentId is given).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
parentIdNoOptional parent category ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral transparency burden. It clearly states the core behavior: returns the full tree by default, and a subtree when parentId is provided. It does not cover edge cases or response format, but for a read-only retrieval operation this is reasonably transparent.

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?

The description is a single sentence that is front-loaded with the main purpose and uses no unnecessary words. Every word contributes to understanding the tool's behavior.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given there is no output schema and no annotations, the description is a bit sparse. It clearly explains the main invocation behavior, but does not describe the shape of the returned tree, empty/error behavior, or how this tool compares with sibling category tools. More detail would make it fully self-sufficient.

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?

The input schema only describes parentId as an 'Optional parent category ID'. The description adds meaningful semantics by explaining that supplying parentId changes the result from the full tree to a subtree. This goes beyond the schema's minimal description and helps the agent understand the parameter's effect.

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?

The description uses a specific verb ('Return') and resource ('category tree'), and clearly distinguishes this from flat-list category tools by mentioning the hierarchical 'full tree' and conditional 'subtree'. An agent can immediately understand what the tool does and how it differs from similar tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for retrieving category hierarchy, and the parentId parameter implies subtree queries, but it does not explicitly mention when to use this versus sibling tools like list_categories or search_categories. No alternatives or exclusions are given, so the guidance is only implicit.

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