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
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | Event document ID |
Implementation Reference
- index.js:738-749 (handler)The main handler function that retrieves a specific event from Strapi CMS using its document ID via a GET request to the content-manager API endpoint.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) }] }
- index.js:314-320 (schema)Input schema defining the required 'document_id' parameter for the strapi_get_event tool.inputSchema: { type: 'object', properties: { document_id: { type: 'string', description: 'Event document ID' } }, required: ['document_id'] }
- index.js:311-321 (registration)Tool registration in the listTools response, including name, description, and input 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)Switch case in the CallToolRequest handler that dispatches to the getEvent method.case 'strapi_get_event': return await this.getEvent(headers, request.params.arguments)