Skip to main content
Glama

buddypress_update_member

Update BuddyPress member profiles by modifying display names, biographies, or member types using user IDs.

Instructions

Update member profile information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesUser ID
nameNoDisplay name
descriptionNoUser biography
member_typeNoMember type

Implementation Reference

  • Handler for the 'buddypress_update_member' tool. Extracts the user ID and other parameters from the input arguments, then sends a PUT request to the BuddyPress '/members/{id}' API endpoint using the shared buddypressRequest helper.
    else if (name === 'buddypress_update_member') {
      const { id, ...body } = args as any;
      result = await buddypressRequest(`/members/${id}`, 'PUT', body);
    }
  • src/index.ts:156-169 (registration)
    Registration of the 'buddypress_update_member' tool in the tools array, including its name, description, and input schema definition.
    {
      name: 'buddypress_update_member',
      description: 'Update member profile information',
      inputSchema: {
        type: 'object',
        properties: {
          id: { type: 'number', description: 'User ID', required: true },
          name: { type: 'string', description: 'Display name' },
          description: { type: 'string', description: 'User biography' },
          member_type: { type: 'string', description: 'Member type' },
        },
        required: ['id'],
      },
    },
  • Input schema defining the parameters for the buddypress_update_member tool: requires user ID, optional name, description, and member_type.
    inputSchema: {
      type: 'object',
      properties: {
        id: { type: 'number', description: 'User ID', required: true },
        name: { type: 'string', description: 'Display name' },
        description: { type: 'string', description: 'User biography' },
        member_type: { type: 'string', description: 'Member type' },
      },
      required: ['id'],
    },
  • Shared helper function buddypressRequest used by all BuddyPress tools, including buddypress_update_member, to make authenticated API requests to the BuddyPress REST API.
    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?

No annotations are provided, so the description carries the full burden of behavioral disclosure. 'Update member profile information' implies a mutation operation, but it doesn't specify required permissions, whether changes are reversible, error handling (e.g., invalid IDs), or response format. For a mutation tool with zero annotation coverage, this leaves critical behavioral traits undocumented.

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, efficient sentence with zero wasted words. It is front-loaded with the core action ('Update member profile information'), making it immediately scannable. Every word earns its place by conveying the essential purpose without redundancy.

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 complexity of a mutation tool with no annotations and no output schema, the description is incomplete. It lacks information on behavioral traits (e.g., permissions, side effects), usage context, and return values. While the schema covers parameters well, the overall context for safe and effective tool invocation is insufficient.

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 clear descriptions for all parameters (e.g., 'User ID', 'Display name'). The description adds no additional parameter semantics beyond what the schema provides. According to the rules, when schema coverage is high (>80%), the baseline score is 3 even without parameter info in the description.

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 ('Update') and resource ('member profile information'), making the tool's purpose immediately understandable. It distinguishes itself from siblings like 'buddypress_delete_member' or 'buddypress_get_member' by specifying an update operation. However, it doesn't explicitly differentiate from other update tools like 'buddypress_update_activity' or 'buddypress_update_group' beyond the resource type.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing an existing member ID), exclusions (e.g., what fields cannot be updated), or comparisons to similar tools like 'buddypress_update_xprofile_data' for extended profile updates. The agent must infer usage from the tool name and schema alone.

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