Skip to main content
Glama

strapi_get_event

Retrieve a specific event from Strapi CMS using its document ID for content management and data access.

Instructions

Get a specific event by document ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
document_idYesEvent document ID

Implementation Reference

  • Implements the strapi_get_event tool by making a GET request to Strapi's content-manager endpoint for the specific event using the document_id and returning the JSON response.
    async getEvent (headers, args) { const response = await axios.get( `${this.strapiUrl}/content-manager/collection-types/api::event.event/${args.document_id}`, { headers } ) return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2) }] } }
  • Input schema definition for the strapi_get_event tool, specifying the required document_id parameter.
    inputSchema: { type: 'object', properties: { document_id: { type: 'string', description: 'Event document ID' } }, required: ['document_id'] }
  • index.js:311-321 (registration)
    Registration of the strapi_get_event tool in the MCP tools array, including name, description, and schema.
    { name: 'strapi_get_event', description: 'Get a specific event by document ID', inputSchema: { type: 'object', properties: { document_id: { type: 'string', description: 'Event document ID' } }, required: ['document_id'] } },
  • index.js:412-413 (registration)
    Dispatch in the request handler switch statement that routes strapi_get_event calls to the getEvent method.
    case 'strapi_get_event': return await this.getEvent(headers, request.params.arguments)

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/AINative-Studio/ainative-strapi-mcp-server'

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