Skip to main content
Glama

fc_update_space

Modify existing community spaces by updating titles, descriptions, privacy settings, and status to maintain accurate and current collaborative environments.

Instructions

Update an existing space

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
space_idYesThe ID of the space to update
titleNoSpace title
descriptionNoSpace description
privacyNoPrivacy setting
statusNoSpace status

Implementation Reference

  • The main handler function for fc_update_space tool. Extracts space_id and updateData from args, makes POST request to WordPress API endpoint fc-manager/v1/spaces/{space_id}, returns response or error.
    fc_update_space: async (args: any) => { try { const { space_id, ...updateData } = args; const response = await makeWordPressRequest('POST', `fc-manager/v1/spaces/${space_id}`, updateData); return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } }; } catch (error: any) { return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } }; } },
  • Zod schema defining the input shape for fc_update_space: requires space_id, optional title, description, privacy, status with descriptions.
    const updateSpaceSchema = z.object({ space_id: z.number().describe('The ID of the space to update'), title: z.string().optional().describe('Space title'), description: z.string().optional().describe('Space description'), privacy: z.enum(['public', 'private']).optional().describe('Privacy setting'), status: z.enum(['active', 'inactive', 'archived']).optional().describe('Space status') });
  • Registration of fc_update_space tool in fluentCommunityTools array, specifying name, description, and inputSchema from updateSpaceSchema.
    { name: 'fc_update_space', description: 'Update an existing FluentCommunity space', inputSchema: { type: 'object', properties: updateSpaceSchema.shape } },
  • Global registration: fluentCommunityTools (containing fc_update_space) spread into allTools array for MCP toolset.
    ...fluentCommunityTools, // 21 tools (FluentCommunity spaces, posts, members)
  • Global handler registration: fluentCommunityHandlers (containing fc_update_space handler) spread into toolHandlers object.
    ...fluentCommunityHandlers,

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/wplaunchify/fluent-community-mcp'

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