Skip to main content
Glama

strapi_get_tutorial

Retrieve a specific tutorial from Strapi CMS using its document ID to access detailed content and instructions.

Instructions

Get a specific tutorial by document ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
document_idYesTutorial document ID

Implementation Reference

  • The handler function that executes the tool logic: fetches a specific tutorial from Strapi CMS using the document_id via axios GET to the content-manager API and returns the JSON response.
    async getTutorial (headers, args) {
      const response = await axios.get(
        `${this.strapiUrl}/content-manager/collection-types/api::tutorial.tutorial/${args.document_id}`,
        { headers }
      )
    
      return {
        content: [{
          type: 'text',
          text: JSON.stringify(response.data, null, 2)
        }]
      }
    }
  • The input schema definition for the tool, specifying that 'document_id' (string) is required.
    {
      name: 'strapi_get_tutorial',
      description: 'Get a specific tutorial by document ID',
      inputSchema: {
        type: 'object',
        properties: {
          document_id: { type: 'string', description: 'Tutorial document ID' }
        },
        required: ['document_id']
      }
    },
  • index.js:396-397 (registration)
    Dispatch case in the main CallToolRequestSchema handler's switch statement that routes execution to the getTutorial method.
    case 'strapi_get_tutorial':
      return await this.getTutorial(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