Skip to main content
Glama
brilliantdirectories

brilliant-directories-mcp

Official

createCategoryTree

Create a complete category hierarchy with top, sub, and third-tier categories in one call, reusing existing categories to add only missing branches.

Instructions

Create a full category taxonomy (tops + subs + sub-subs) in one call. - Wrapper-native synthetic tool. Creates member categories — top categories, their sub-categories, and third-tier sub-sub-categories — in one call.

Use when: creating a category at any level, including adding to a structure that already exists. Use createTopCategory or createSubCategory only for a single category that needs desc, keywords, icon, sort_order, lead_price, image, master_id, or a filename other than the default slug set at create time. For every other category create, use createCategoryTree.

Required: groups — an array of { top_category, sub_categories }, 25 entries maximum per call.

Send the whole taxonomy in one call. A top category named again is matched by name and reused, so a later call adds to it. Never issue two calls concurrently: a top category named in both is created twice, because BD's category list does not reflect a row written by a call still in flight. A second call is safe once the first call's response has returned.

The three shapes, all the same input:

  • New top plus its subs: { top_category: "Surf Shops", sub_categories: ["Surfboards", "Wetsuits"] }

  • Subs under a top that already exists: the same shape, naming that top. It is reused; only the listed subs are added, and existing subs are left alone.

  • Top only: omit sub_categories or pass [].

Third tier — Parent=>Child: a sub_categories entry containing => creates Child under Parent, and Parent under the group's top_category. An existing Parent is reused. Exactly one => per entry: "Surf Camps=>Kids Camps". A=>B=>C is rejected — send A=>B in this call, then "B=>C" in a second call naming the same top_category once this call's response has returned.

Sub-category names must not contain commas — this tool writes them through BD's comma-separated services field, which would split one name into several. Replace the comma with a hyphen. To create the parts as separate categories instead, send each as its own sub_categories entry. One comma anywhere in sub_categories rejects the call. Top category names may contain commas.

Nothing is written until every name validates. Writing itself is not atomic: a failure part-way leaves earlier groups created. groups_completed and each group's top_status / sub_status name exactly what landed — read them before retrying. Re-send a group only when its top_status is error, or its sub_status is error or not attempted; created, existing, and none requested all mean that part landed.

Building sub-categories requires a temporary member, which this tool creates and deletes for you. temp_member reports what happened to it; the categories are unaffected either way.

See also: createTopCategory, createSubCategory, listTopCategories, listSubCategories.

Returns: { status, message: { groups_requested, groups_completed, sub_categories_created, temp_member, groups: [{ top_category, profession_id, top_status, sub_categories, sub_status }] } }. top_status is created, existing, or error. sub_status is created, error, none requested, or not attempted. sub_categories_created is the total across all groups — report it rather than counting names. temp_member is one of: temporary member deleted — cleanup succeeded; not needed (no sub-categories requested); no temporary member was created — no sub-category was written and every sub_status is error; or a user_id — sub-categories were written but cleanup failed, so pass that id to deleteUser. Each group carries the resolved profession_id, ready for updateUser.profession_id. Sub-category ids are not returned — read them with listSubCategories filtered on that profession_id before assigning members via updateUser.services or createMemberSubCategoryLink.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupsYesCategory groups. Each item: `{ "top_category": "Surf Shops", "sub_categories": ["Surfboards", "Surf Camps=>Kids Camps"] }`. Name an existing top category to add to it. `sub_categories` is optional — omit for a top category alone. Maximum 25 entries per call; send further groups in a later call, where existing top categories are matched by name and reused.
subscription_idNoMembership plan id for the internal temporary member. Optional — the wrapper resolves the site's first plan when omitted.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv6.58.608

TDQS

A5/5.0
Behavior5/5

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

The description goes well beyond the annotations by explaining non-atomic behavior, validation before writes, the temporary member lifecycle, concurrency hazards, comma restrictions, and detailed status reporting. The annotations already indicate this is a non-read-only, non-idempotent operation, and the description expands on those traits extensively without contradicting them.

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 long but densely packed with behavior the agent must know to call the tool safely and correctly. It is front-loaded with the core purpose and 'Use when' guidance, then progresses to examples, validation rules, failure semantics, and return values, with each section earning its place.

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

Completeness5/5

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

Given the tool's complexity and absence of an output schema, the description fully compensates by documenting the return structure, all status values, temp_member outcomes, retry guidance, and how to read sub-category ids afterward. It also cross-references the relevant sibling tools, making the definition complete for an agent to select and invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although the schema already covers 100% of the parameters, the description adds substantial operational meaning: the Parent=>Child syntax, the 25-entry maximum, the reuse semantics for existing top categories, the no-comma rule, and concrete input shapes. This goes far beyond the schema's field-level documentation.

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 clearly states the tool's function: creating a full category taxonomy (top, sub, and sub-sub categories) in one call. It distinguishes itself from the sibling tools createTopCategory and createSubCategory by explaining that those are only for single categories with specific fields.

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

Usage Guidelines5/5

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

The description gives explicit 'Use when' guidance and explicitly names the alternatives (createTopCategory, createSubCategory) and the conditions under which to use them instead. It also covers operational usage constraints like avoiding concurrent calls and sending the whole taxonomy in one call.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/brilliantdirectories/brilliant-directories-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server