fc_get_space
Retrieve detailed information about a specific community space using its unique ID to access space configurations, settings, and content details.
Instructions
Get detailed information about a specific space
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space_id | Yes | The ID of the space to retrieve |
Implementation Reference
- src/tools/fluent-community.ts:373-380 (handler)Handler function for fc_get_space tool. Makes a GET request to the WordPress REST API endpoint for the specific space and returns the JSON response.fc_get_space: async (args: any) => { try { const response = await makeWordPressRequest('GET', `fc-manager/v1/spaces/${args.space_id}`); 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:55-57 (schema)Zod input schema for fc_get_space tool, requiring space_id as a number.const getSpaceSchema = z.object({ space_id: z.number().describe('The ID of the space to retrieve') });
- src/tools/fluent-community.ts:199-203 (registration)Tool registration entry in fluentCommunityTools array, defining name, description, and input schema.{ name: 'fc_get_space', description: 'Get detailed information about a specific FluentCommunity space', inputSchema: { type: 'object', properties: getSpaceSchema.shape } },