Skip to main content
Glama
brilliantdirectories

brilliant-directories-mcp

Official

deleteUserMeta

DestructiveIdempotent

Delete a users_meta record permanently. Requires meta_id, database, and database_id to prevent accidental cross-table deletion.

Instructions

Delete a metadata record - Permanently delete a users_meta record by meta_id. DESTRUCTIVE - cannot be undone via API.

HARD RULE - (database, database_id) is ONE atomic compound identity. Verify BOTH of the row BEFORE deleting. Destructive mistakes on users_meta are unrecoverable. A users_meta row's identity is (database, database_id, key). The same numeric database_id routinely belongs to UNRELATED rows on different parent tables - an integer ID may simultaneously be a WebPage's seo_id, a member's user_id, a post's post_id, and a plan's subscription_id. BEFORE calling this endpoint: (1) call getUserMeta(meta_id) or retain the row's full object from a prior listUserMeta response; (2) confirm the row's database value matches the table you intend to clean up. For batch orphan-cleanup after a parent delete: list by the parent's database_id, then CLIENT-SIDE filter to ONLY rows where database equals the parent table's name BEFORE deleting any meta_id. NEVER loop-delete by database_id alone - you WILL destroy unrelated resource metadata (member data, plan metadata, page settings) that happen to share the same numeric ID on other tables.

Use when: removing a specific metadata row, OR cleaning up orphan meta rows after a parent record is deleted (BD does not cascade-delete users_meta when a parent is removed - it's the agent's job to find and delete the orphan rows surgically).

Required: meta_id, database, database_id. All three - always. The identity pair (database, database_id) is enforced at the schema level to prevent cross-table destruction.

Post-parent-delete cleanup workflow (safe pattern):

  1. listUserMeta with filter database_id=<deleted parent's id>

  2. In the returned array, filter CLIENT-SIDE to ONLY rows where database equals the parent table's name (e.g. list_seo for a deleted WebPage)

  3. For each filtered meta_id, call deleteUserMeta(meta_id, database=<parent table>, database_id=<parent id>) - all three required

  4. Never skip step 2 - the same database_id can belong to unrelated rows on other tables

See also: updateUserMeta (modify without removing), listUserMeta (enumerate with filter).

Returns: { status: "success", message: "users_meta record was deleted" }. No body beyond the confirmation string.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
meta_idYes
databaseYesREQUIRED - parent table name (e.g. `list_seo`, `users_data`). Must match the row's stored `database` field. Prevents accidental cross-table deletion since the same `database_id` can exist in multiple parent tables.
database_idYesREQUIRED - parent record PK. Must match the row's stored `database_id` field. Agents MUST verify both `database` and `database_id` before calling delete to prevent destroying unrelated metadata on other tables with the same ID number.
Behavior5/5

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

Annotations already indicate destructiveHint=true, but the description adds critical behavioral context: the compound identity risk, cross-table destruction potential, the fact that BD does not cascade-delete, and the exact return format. This goes well beyond annotations with no contradictions.

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 structured with a clear summary, hard rule, use cases, workflow, see also, and return value. It is front-loaded with the purpose. However, it is somewhat verbose; with multiple paragraphs, some sentences could be streamlined without losing essential information.

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?

Despite the lack of output schema, the description explicitly states the return format. It covers purpose, risks, usage pattern, alternatives, and prerequisites. For a destructive tool with cross-table implications, this is comprehensive and complete.

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 covers 67% of parameters with descriptions, but the description reinforces the compound identity of (database, database_id) and explains why both are required to prevent cross-table destruction. This adds significant meaning beyond the schema.

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: 'Delete a metadata record - Permanently delete a users_meta record by meta_id.' It specifies the resource (users_meta) and action (delete), and distinguishes from siblings by naming the specific table and emphasizing the compound identity requirement.

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 use cases are given: 'Use when: removing a specific metadata row, OR cleaning up orphan meta rows after a parent record is deleted.' It warns against loop-deleting by database_id alone and provides a safe cleanup workflow. It also references alternatives: updateUserMeta and listUserMeta.

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