Skip to main content
Glama
brilliantdirectories

brilliant-directories-mcp

Official

createMemberSubCategoryLink

Links a member to a sub-category with optional pricing and specialty metadata. Use for per-link data like avg_price and specialty flags.

Instructions

Link a service to a user - Create a new Member ↔ Sub Category link with optional metadata. Writes live data.

Links an existing member (user_id) to an existing Sub Category (service_id) with per-link metadata (pricing, specialty). This is the richer alternative to setting users_data.services CSV via updateUser - use this when you need per-link data.

Use when: the simpler users_data.services CSV isn't rich enough - you need per-link avg_price, specialty=1, or num_completed. For plain "tag this member with this sub-cat" use updateUser with services=<service_id> instead.

Required: user_id, service_id.

Pre-check before create (PAIR uniqueness): BD does NOT enforce uniqueness on the (user_id, service_id) pair in rel_services. Linking the same member to the same Sub Category twice produces two rel_services rows, double-counts the member in that Sub Category's listing widgets, and leaves per-link metadata (specialty/avg_price) ambiguous - which row wins? Filter-find pattern (single-field server filter + client-side intersect - the server does not yet honor array-syntax multi-condition filters): call listMemberSubCategoryLinks property=user_id property_value=<proposed user_id> property_operator== to narrow to all rel_services rows for that member, then CLIENT-SIDE filter to rows where service_id=<proposed service_id>. Zero results after client-side step = link free; >=1 = already linked. If the link already exists: update it via updateMemberSubCategoryLink (e.g. to set specialty=1 or avg_price), OR skip the create (idempotent). Never silently double-link the same member to the same Sub Category.

Parameter guidance:

  • user_id - member (from listUsers / searchUsers)

  • service_id - Sub Category (from listSubCategories)

  • avg_price - decimal, the member's price for this service

  • specialty - 0 or 1 flags this Sub Category as a specialty offering on the member's profile

  • num_completed - counter of jobs/projects completed in this Sub Category

  • date - YYYYMMDDHHmmss timestamp

See also: updateUser with services="<csv>" (simpler, no per-link metadata), listSubCategories, getMemberSubCategoryLink.

Writes live data: appears on the member's public profile immediately.

Returns: { status: "success", message: {...createdRecord} } with rel_id.

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 createTopCategory / createSubCategory instead (BD's table-name → tool-name mapping is documented in Rule: Table to endpoint).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_idYes
service_idYes
dateNoFormat: `YYYYMMDDHHmmss` in the site's timezone. BD silently truncates other formats, corrupting the value. Optional — omit unless backfilling historical data.
avg_priceNo
specialtyNo
Behavior5/5

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

Annotations indicate a non-readOnly, non-destructive, non-idempotent, open-world tool. The description adds crucial behavioral details: writes live data, does not enforce uniqueness on (user_id, service_id) pair leading to double-counting and ambiguity, and explains the required pre-check pattern. No contradictions with annotations.

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

Conciseness4/5

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

The description is very long but well-structured with clear sections (purpose, usage guidelines, pre-check, parameter guidance, see also, return format, extra context). It is front-loaded with the core purpose. However, some tangential details (member classification, sub-sub-categories) could be trimmed or moved, making it slightly less concise than ideal.

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 (5 parameters, uniqueness requirement, alternatives), the description covers all necessary aspects: what it does, when/why to use, pre-check pattern, parameter meanings, return format, related tools, and additional context about member classification and sub-category nesting. No gaps remain.

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?

Despite only 20% schema description coverage, the description provides rich guidance for all parameters: where to obtain user_id and service_id, meaning of avg_price, specialty (binary with meaning), num_completed as counter, and exact datetime format for date. This fully compensates for the schema's lack of 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?

The description clearly states the tool's purpose: 'Link a service to a user - Create a new Member ↔ Sub Category link with optional metadata.' It specifies the verb 'create', the resources 'Member' and 'Sub Category', and distinguishes from the simpler alternative via `updateUser` with CSV, as well as from update/delete/list siblings.

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?

Explicit guidance on when to use this tool vs alternatives: 'Use when the simpler users_data.services CSV isn't rich enough... For plain "tag this member with this sub-cat" use updateUser with services=<service_id> instead.' Also provides a pre-check pattern to avoid double-linking, with detailed steps and fail-safes.

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