Skip to main content
Glama

strapi_update_event

Modify event details in Strapi CMS by updating title, description, dates, location, or registration URL using the event's document ID.

Instructions

Update an existing event

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
document_idYesEvent document ID
titleNoNew title
descriptionNoNew description
start_dateNoNew start date/time
end_dateNoNew end date/time
locationNoNew location
registration_urlNoNew registration URL

Implementation Reference

  • The updateEvent method implements the core logic for the strapi_update_event tool. It constructs a data object from the provided arguments, performs a PUT request to the Strapi content-manager API endpoint for events using the document_id, and returns the response.
    async updateEvent (headers, args) {
      const data = {}
      if (args.title) data.title = args.title
      if (args.description) data.description = args.description
      if (args.start_date) data.start_date = args.start_date
      if (args.end_date) data.end_date = args.end_date
      if (args.location) data.location = args.location
      if (args.registration_url) data.registration_url = args.registration_url
    
      const response = await axios.put(
        `${this.strapiUrl}/content-manager/collection-types/api::event.event/${args.document_id}`,
        data,
        { headers }
      )
    
      return {
        content: [{
          type: 'text',
          text: JSON.stringify(response.data, null, 2)
        }]
      }
    }
  • Input schema definition for the strapi_update_event tool, specifying the required document_id and optional updatable fields.
    inputSchema: {
      type: 'object',
      properties: {
        document_id: { type: 'string', description: 'Event document ID' },
        title: { type: 'string', description: 'New title' },
        description: { type: 'string', description: 'New description' },
        start_date: { type: 'string', description: 'New start date/time' },
        end_date: { type: 'string', description: 'New end date/time' },
        location: { type: 'string', description: 'New location' },
        registration_url: { type: 'string', description: 'New registration URL' }
      },
      required: ['document_id']
    }
  • index.js:415-416 (registration)
    Handler registration in the CallToolRequestSchema switch statement, dispatching calls to the updateEvent method.
    case 'strapi_update_event':
      return await this.updateEvent(headers, request.params.arguments)
  • index.js:322-338 (registration)
    Tool registration in the ListToolsRequestSchema response, defining name, description, and schema for strapi_update_event.
    {
      name: 'strapi_update_event',
      description: 'Update an existing event',
      inputSchema: {
        type: 'object',
        properties: {
          document_id: { type: 'string', description: 'Event document ID' },
          title: { type: 'string', description: 'New title' },
          description: { type: 'string', description: 'New description' },
          start_date: { type: 'string', description: 'New start date/time' },
          end_date: { type: 'string', description: 'New end date/time' },
          location: { type: 'string', description: 'New location' },
          registration_url: { type: 'string', description: 'New registration URL' }
        },
        required: ['document_id']
      }
    },
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. While 'Update' implies a mutation, it doesn't specify required permissions, whether changes are reversible, what happens to fields not mentioned, or error conditions. For a mutation tool with zero annotation coverage, this leaves significant behavioral gaps.

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 that states the core purpose without any wasted words. It's appropriately sized for a straightforward update operation and front-loads the essential information.

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?

For a mutation tool with 7 parameters, no annotations, and no output schema, the description is inadequate. It doesn't explain what happens during update, what the response looks like, error handling, or behavioral constraints. The combination of mutation complexity and lack of structured metadata requires more descriptive content.

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 all 7 parameters thoroughly. The description adds no additional parameter information beyond what's in the schema. According to guidelines, when schema coverage is high (>80%), the baseline is 3 even with no param info in description.

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 action ('Update') and resource ('an existing event'), which is specific and unambiguous. It distinguishes from creation tools like 'strapi_create_event' by specifying 'existing', but doesn't explicitly differentiate from other update tools like 'strapi_update_blog_post' beyond the resource name.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing an existing event ID), when not to use it, or how it differs from other update tools like 'strapi_update_blog_post' beyond the obvious resource difference.

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