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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"space_id": "<space_id>"
},
"name": "fc_update_space"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space_id | Yes | The ID of the space to update | |
| title | No | Space title | |
| description | No | Space description | |
| privacy | No | Privacy setting | |
| status | No | Space status |
Implementation Reference
- src/tools/fluent-community.ts:400-408 (handler)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}` }] } }; } }, - src/tools/fluent-community.ts:67-73 (schema)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') }); - src/tools/fluent-community.ts:209-213 (registration)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 } }, - src/tools/index.ts:29-29 (registration)Global registration: fluentCommunityTools (containing fc_update_space) spread into allTools array for MCP toolset.
...fluentCommunityTools, // 21 tools (FluentCommunity spaces, posts, members) - src/tools/index.ts:49-49 (registration)Global handler registration: fluentCommunityHandlers (containing fc_update_space handler) spread into toolHandlers object.
...fluentCommunityHandlers,