Skip to main content
Glama

buddypress_delete_message

Remove a message thread from a BuddyPress community site by specifying its thread ID. This action permanently deletes the selected conversation.

Instructions

Delete a message thread

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThread ID

Implementation Reference

  • Handler logic for buddypress_delete_message tool. It performs a DELETE request to `/messages/${args.id}` using the shared buddypressRequest helper.
    else if (name === 'buddypress_delete_message') {
      result = await buddypressRequest(`/messages/${args.id}`, 'DELETE');
    }
  • src/index.ts:442-452 (registration)
    Registration of the buddypress_delete_message tool in the tools array, including name, description, and input schema requiring a thread ID.
    {
      name: 'buddypress_delete_message',
      description: 'Delete a message thread',
      inputSchema: {
        type: 'object',
        properties: {
          id: { type: 'number', description: 'Thread ID', required: true },
        },
        required: ['id'],
      },
    },
  • Input schema definition for the tool, specifying that a numeric 'id' (thread ID) is required.
    inputSchema: {
      type: 'object',
      properties: {
        id: { type: 'number', description: 'Thread ID', required: true },
      },
      required: ['id'],
  • Shared helper function buddypressRequest used by all BuddyPress tools to make authenticated API calls to the BuddyPress REST API endpoints.
    async function buddypressRequest(
      endpoint: string,
      method: string = 'GET',
      body?: any
    ): Promise<any> {
      const url = `${BUDDYPRESS_URL}/wp-json/buddypress/v2${endpoint}`;
      const auth = Buffer.from(`${BUDDYPRESS_USERNAME}:${BUDDYPRESS_PASSWORD}`).toString('base64');
    
      const options: any = {
        method,
        headers: {
          'Authorization': `Basic ${auth}`,
          'Content-Type': 'application/json',
        },
      };
    
      if (body && method !== 'GET') {
        options.body = JSON.stringify(body);
      }
    
      const response = await fetch(url, options);
    
      if (!response.ok) {
        const errorText = await response.text();
        throw new Error(`BuddyPress API Error (${response.status}): ${errorText}`);
      }
    
      return await response.json();
    }
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the action ('Delete') but lacks critical details: whether deletion is permanent or reversible, if it requires specific permissions or authentication, potential side effects (e.g., removing messages for all participants), or error conditions. For a destructive operation, this minimal description is inadequate.

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, direct sentence with zero wasted words. It is front-loaded with the core action and resource, making it easy to parse quickly. Every word earns its place, achieving maximum clarity with minimal length.

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

Completeness2/5

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

Given the tool's complexity (a destructive delete operation), lack of annotations, and no output schema, the description is incomplete. It fails to address key contextual aspects like behavioral traits (e.g., permanence, permissions), usage prerequisites, or expected outcomes. For a tool that modifies data, this leaves significant gaps for an AI agent.

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

Parameters3/5

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

The schema description coverage is 100%, with the single parameter 'id' clearly documented as 'Thread ID' and required. The description adds no additional parameter semantics beyond what the schema provides, such as format examples or validation rules. Since the schema does the heavy lifting, the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Delete') and resource ('a message thread'), making the tool's function immediately understandable. It distinguishes itself from siblings like 'buddypress_get_message' and 'buddypress_list_messages' by specifying deletion rather than retrieval. However, it doesn't explicitly differentiate from other deletion tools like 'buddypress_delete_activity' or 'buddypress_delete_friendship' beyond the resource name.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing an existing thread ID), exclusions, or relationships with sibling tools like 'buddypress_get_message' for verification before deletion. The description is purely functional without contextual usage advice.

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/vapvarun/buddypress-mcp'

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