Skip to main content
Glama

strapi_update_tutorial

Modify existing tutorial content in Strapi CMS by updating title, content, difficulty, duration, or description using document ID.

Instructions

Update an existing tutorial

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
document_idYesTutorial document ID
titleNoNew title
contentNoNew content in MARKDOWN
descriptionNoNew description
difficultyNoNew difficulty
durationNoNew duration in minutes

Implementation Reference

  • The handler function that updates a tutorial by making a PUT request to the Strapi content-manager API endpoint for tutorials.
    async updateTutorial (headers, args) {
      const data = {}
      if (args.title) data.title = args.title
      if (args.content) data.content = args.content
      if (args.description) data.description = args.description
      if (args.difficulty) data.difficulty = args.difficulty
      if (args.duration) data.duration = args.duration
    
      const response = await axios.put(
        `${this.strapiUrl}/content-manager/collection-types/api::tutorial.tutorial/${args.document_id}`,
        data,
        { headers }
      )
    
      return {
        content: [{
          type: 'text',
          text: JSON.stringify(response.data, null, 2)
        }]
      }
  • The tool definition including name, description, and input schema registered in ListToolsRequestSchema handler.
    {
      name: 'strapi_update_tutorial',
      description: 'Update an existing tutorial',
      inputSchema: {
        type: 'object',
        properties: {
          document_id: { type: 'string', description: 'Tutorial document ID' },
          title: { type: 'string', description: 'New title' },
          content: { type: 'string', description: 'New content in MARKDOWN' },
          description: { type: 'string', description: 'New description' },
          difficulty: { type: 'string', enum: ['beginner', 'intermediate', 'advanced'], description: 'New difficulty' },
          duration: { type: 'number', description: 'New duration in minutes' }
        },
        required: ['document_id']
      }
  • index.js:399-400 (registration)
    Dispatch registration in the CallToolRequestSchema switch statement that routes to the updateTutorial handler.
    case 'strapi_update_tutorial':
      return await this.updateTutorial(headers, request.params.arguments)
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. 'Update an existing tutorial' implies a mutation operation, but it doesn't describe whether this requires specific permissions, if changes are reversible, what happens to fields not specified in the update, or what the response looks like (e.g., success/failure indicators). For a mutation tool with zero annotation coverage, this is a significant gap in transparency.

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—'Update an existing tutorial' is front-loaded and directly conveys the core purpose without unnecessary elaboration. Every word earns its place, making it highly concise and well-structured for its minimal content.

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 complexity of a mutation tool with 6 parameters, no annotations, and no output schema, the description is incomplete. It doesn't address behavioral aspects like error handling, authentication needs, or what the tool returns upon success. While the schema covers parameters well, the description fails to compensate for the lack of annotations and output schema, leaving gaps in understanding how to use the tool 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 input schema already documents all parameters (document_id, title, content, description, difficulty, duration) with clear descriptions. The description adds no additional meaning beyond what the schema provides, such as explaining relationships between parameters or update semantics. With high schema coverage, the baseline score of 3 is appropriate.

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

Purpose3/5

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

The description 'Update an existing tutorial' clearly states the verb (update) and resource (tutorial), but it's vague about what specific aspects can be updated. It doesn't distinguish this tool from sibling update tools like strapi_update_blog_post or strapi_update_event, which follow the same pattern but for different resources.

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. It doesn't mention prerequisites (e.g., needing an existing tutorial ID), when not to use it (e.g., for creating new tutorials vs. updating), or how it differs from other update tools in the sibling list. The description offers only basic functional information without contextual usage advice.

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