Skip to main content
Glama
brilliantdirectories

brilliant-directories-mcp

Official

createTopCategory

Create a new top-level member category (e.g., Restaurants) with custom URL slug, description, keywords, icon, image, sort order, and lead price. Writes live data.

Instructions

Create a category - Create a new TOP-level member category. Writes live data.

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.

A Top Category is the highest level of the 3-tier member classification (e.g., "Restaurants"). It populates the profession_id field on user records. Backed by BD's list_professions table.

Use when: adding one top category that needs desc, keywords, icon, sort_order, lead_price, image, or a filename other than the default slug set at create time. To auto-create a top category while creating a member, pass profession_name to createUser instead.

Required: name, filename.

Pre-check before create: BD does NOT enforce uniqueness on filename. Two top categories with the same slug -> which one resolves at /filename is undefined. Do a server-side filter-find: listTopCategories property=filename property_value=<proposed> property_operator==. Zero rows = slug free; >=1 row = taken. Do NOT paginate unfiltered lists - filtered lookup is one tiny response. If taken: reuse via updateTopCategory, OR ask the user, OR pick an alternate filename and re-check. Wrapper safety net: on a missed pre-check, the wrapper auto-suffixes filename on collision (-1...-20) and surfaces the suffix in the response. Pre-checking still preferred — auto-suffix surprises the caller in URL-sensitive workflows.

Parameter guidance:

  • name - human-readable (e.g. "Restaurants", "Dentists")

  • filename - URL-slug form (e.g. "restaurants") used in public member profile URLs. The default slug is the name lower-cased and hyphenated, with any character outside the Latin set percent-encoded.

  • desc, keywords, icon, sort_order, lead_price, image - all optional

See also: listTopCategories (list all), getTopCategory (by ID), createSubCategory (add a sub-category under this top).

Writes live data: changes are immediately visible on the public site.

Returns: { status: "success", message: {...createdRecord} } including the new profession_id. Use that value to populate users_data.profession_id on member records.

Common workflow - full 3-tier setup ("create Restaurants -> Sushi -> assign Alice"):

  1. createCategoryTree with groups=[{ top_category: "Restaurants", sub_categories: ["Sushi"] }] -> returns profession_id (e.g. 42); read the new sub's service_id (e.g. 17) from listSubCategories

  2. Assign Alice: updateUser with user_id=<Alice>, profession_id=42, services="17" (simple), OR createMemberSubCategoryLink with user_id=<Alice>, service_id=17, avg_price=..., specialty=1 (with per-link metadata)

How a member gets classified on their public profile:

  • users_data.profession_id -> points at a single Top Category (the member's primary classification; shown in URL slug)

  • users_data.services -> CSV of Sub Category IDs the member is tagged with (multiple allowed; simpler than the join table)

  • rel_services rows (Member ↔ Sub Category links) -> used when you need per-link metadata like avg_price, specialty, num_completed. Optional; most sites use just the CSV field.

Sub-sub-categories: createSubCategory with master_id=<parent service_id> creates a Sub Category nested under another Sub Category (a "sub-sub"). master_id=0 (default) means the Sub Category sits directly under a Top Category (the profession_id).

There is NO createProfession or createService tool in this MCP — those are BD's internal table names. Use createCategoryTree, or createTopCategory / createSubCategory when a single category needs create-time field control (BD's table-name → tool-name mapping is documented in Rule: Table to endpoint).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
descNoShort internal taxonomy-row label. **Even if the user says "description" - this is NOT an SEO description.** Most BD themes don't render this field. For SEO copy on the Top-Category public search page (H1, intro, meta tags), create a WebPage with `seo_type=profile_search_results` + matching slug (see `createWebPage`). Short internal blurb only here.
iconNoIcon identifier (e.g. a Font Awesome class or image filename).
nameYesTop-level category name (e.g. "Restaurants", "Dentists").
imageNoImage filename for the category icon/banner.
filenameYesURL-slug form of the name (e.g. "restaurants"). Used in public profile URL paths.
keywordsNoFuzzy-search synonyms for on-site category matching - NOT SEO meta-keywords. Comma-separated single words (no spaces): synonyms, abbreviations, slang, common misspellings. Example for `Doctor`: `doc,physician,md,medic,gp,specialist`. ~5-10 max. Skip SEO phrases like `doctor near me` - those aren't fuzzy matchers. Optional.
lead_priceNoPer-lead price charged for leads matching this category (decimal).
sort_orderNoDisplay order among top-level categories. Lower = earlier.

Schema Changelog

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

  1. Addedv6.55.39
  2. Removedv6.55.19
  3. Addedv6.49.4
  4. Removedv6.48.1
  5. Addedv6.0.19
  6. Removedv6.0.18
  7. Changed2 schema fields changed
    • changedInput schema / properties / desc / description
      Previous value: -"Long description / summary for the category."New value: +"Short internal taxonomy-row label. **Even if the user says \"description\" - this is NOT an SEO description.** Most BD themes don't render this field. For SEO copy on the Top-Category public search page (H1, intro, meta tags), create a WebPage with `seo_type=profile_search_results` + matching slug (see `createWebPage`). Short internal blurb only here."
    • changedInput schema / properties / keywords / description
      Previous value: -"SEO keywords, comma-separated."New value: +"Fuzzy-search synonyms for on-site category matching - NOT SEO meta-keywords. Comma-separated single words (no spaces): synonyms, abbreviations, slang, common misspellings. Example for `Doctor`: `doc,physician,md,medic,gp,specialist`. ~5-10 max. Skip SEO phrases like `doctor near me` - those aren't fuzzy matchers. Optional."
  8. Addedv6.0.7
  9. Removed
  10. Addedv6.0.6

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only indicate readOnlyHint=false and idempotentHint=false, but the description reveals key behaviors: writes are immediately visible on the public site, filename uniqueness is NOT enforced by BD, duplicate slugs make resolution undefined, and the wrapper auto-suffixes filename on collision (-1...-20). This is exactly the behavioral context an agent needs beyond the annotation flags.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded and sectioned, but it is far longer than necessary and contains direct repetition: the 'Use createTopCategory or createSubCategory only for...' sentence is nearly duplicated by the later 'Use when:' section. The multi-step 3-tier workflow, member classification model, and sub-sub-category digression are useful domain context but not essential for invoking this specific tool, making it bloated.

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?

Even without an output schema, the description states the exact return shape, required parameters, pre-check procedure with server-side filter-find, collision handling, and integration points like profession_id on user records. It is complete enough for an agent to call the tool safely and correctly in a real workflow.

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?

Schema coverage is 100%, so baseline is 3, but the description adds substantial meaning: filename defaults to lowercased hyphenated name with percent-encoding, desc is an internal label and NOT an SEO description, keywords are fuzzy-match synonyms not SEO meta keywords with format examples, and each optional field is clarified. This goes well beyond the schema's short property descriptions.

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?

Description opens with explicit 'Create a new TOP-level member category. Writes live data,' naming a specific verb and resource. It also clearly distinguishes createTopCategory from createSubCategory and createCategoryTree by defining the top-level tier of the 3-tier classification.

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?

Provides explicit when-to-use and when-not-to-use guidance: only for a single category needing create-time field control or a custom filename, otherwise use createCategoryTree. Also names the alternative of passing profession_name to createUser for auto-creation, and lists related list/get tools. This is model routing guidance, not just a vague hint.

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