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)
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the action ('Get') but lacks details on permissions, rate limits, error handling, or response format. This is a significant gap for a retrieval tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with zero waste. It is appropriately sized and front-loaded, clearly stating the tool's purpose without unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description is incomplete. It doesn't explain what the tool returns (e.g., tutorial data structure), error cases, or behavioral traits, leaving gaps for an AI agent to understand how to use it effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents the 'document_id' parameter. The description adds minimal value by implying the parameter is used to identify a tutorial, but doesn't provide additional context like format examples or constraints beyond what the schema specifies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Get') and resource ('a specific tutorial'), specifying it retrieves by document ID. It distinguishes from sibling 'strapi_list_tutorials' by focusing on single retrieval rather than listing, though it doesn't explicitly mention this distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives like 'strapi_list_tutorials' or other get tools (e.g., 'strapi_get_blog_post'). The description implies usage for retrieving a specific tutorial but offers no context on prerequisites, error conditions, or when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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