Skip to main content
Glama

fc_get_post

Retrieve specific community post details by ID to access complete content, author information, and engagement metrics for content management.

Instructions

Get a specific post by ID with all details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
post_idYesThe ID of the post to retrieve

Implementation Reference

  • The async handler function that implements the core logic of fc_get_post by making a GET request to the WordPress API endpoint fc-manager/v1/posts/{post_id} and returning the post data or error.
    fc_get_post: async (args: any) => { try { const response = await makeWordPressRequest('GET', `fc-manager/v1/posts/${args.post_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}` }] } }; } },
  • Zod schema defining the input validation for the fc_get_post tool, requiring a numeric post_id parameter.
    const getPostSchema = z.object({ post_id: z.number().describe('The ID of the post to retrieve') });
  • Registers the fc_get_post tool metadata (name, description, input schema) in the fluentCommunityTools export array.
    { name: 'fc_get_post', description: 'Get a specific FluentCommunity post by ID with all details', inputSchema: { type: 'object', properties: getPostSchema.shape } },
  • Top-level aggregation of all tools including fluentCommunityTools (which contains fc_get_post) into the allTools export.
    ...fluentCommunityTools, // 21 tools (FluentCommunity spaces, posts, members)
  • Top-level aggregation of all handlers including fluentCommunityHandlers (which contains fc_get_post handler) into the toolHandlers export.
    ...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