Skip to main content
Glama

strapi_list_categories

Retrieve all categories from Strapi CMS to organize and filter content like blog posts, tutorials, and events.

Instructions

List all categories

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function for strapi_list_categories tool. It makes an authenticated GET request to Strapi's content-manager API to list all categories and returns the JSON response.
    async listCategories (headers) { const response = await axios.get( `${this.strapiUrl}/content-manager/collection-types/api::category.category`, { headers } ) return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2) }] } }
  • index.js:186-193 (registration)
    Tool registration in the ListTools handler. Defines the tool name, description, and input schema (empty object since no parameters required).
    { name: 'strapi_list_categories', description: 'List all categories', inputSchema: { type: 'object', properties: {} } },
  • Dispatch in the central CallToolRequest handler switch statement that invokes the listCategories method for this tool.
    case 'strapi_list_categories': return await this.listCategories(headers)
  • Input schema definition for the tool (no required parameters).
    inputSchema: { type: 'object', properties: {} }

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