Skip to main content
Glama

fc_create_space

Create a new community space in FluentCommunity with customizable title, description, privacy settings, and space type for organizing discussions and content.

Instructions

Create a new space in FluentCommunity

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesSpace title
slugNoSpace slug (URL-friendly name)
descriptionNoSpace description
typeNoSpace type
privacyNoPrivacy settingpublic
statusNoSpace statusactive

Implementation Reference

  • Handler function that implements fc_create_space: prepares space data (title, slug, privacy, status, description) and sends POST request to WordPress REST API endpoint 'fc-manager/v1/spaces'.
    fc_create_space: async (args: any) => { try { const spaceData: any = { title: args.title, slug: args.slug || args.title.toLowerCase().replace(/\s+/g, '-'), privacy: args.privacy || 'public', status: args.status || 'active', }; if (args.description) spaceData.description = args.description; const response = await makeWordPressRequest('POST', 'fc-manager/v1/spaces', spaceData); 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 input schema defining parameters for fc_create_space tool: title (required), slug, description, privacy, status.
    const createSpaceSchema = z.object({ title: z.string().describe('Space title'), slug: z.string().optional().describe('Space slug (URL-friendly name)'), description: z.string().optional().describe('Space description'), privacy: z.enum(['public', 'private']).optional().default('public').describe('Privacy setting'), status: z.enum(['active', 'inactive']).optional().default('active').describe('Space status')
  • Tool registration in fluentCommunityTools array (Tool[]), specifying name, description, and inputSchema from createSpaceSchema.
    { name: 'fc_create_space', description: 'Create a new space in FluentCommunity', inputSchema: { type: 'object', properties: createSpaceSchema.shape } },

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