Skip to main content
Glama

strapi_get_event

Retrieve a specific event from Strapi CMS using its document ID for content management and data access.

Instructions

Get a specific event by document ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
document_idYesEvent document ID

Implementation Reference

  • The main handler function that retrieves a specific event from Strapi CMS using its document ID via a GET request to the content-manager API endpoint.
    async getEvent (headers, args) {
      const response = await axios.get(
        `${this.strapiUrl}/content-manager/collection-types/api::event.event/${args.document_id}`,
        { headers }
      )
    
      return {
        content: [{
          type: 'text',
          text: JSON.stringify(response.data, null, 2)
        }]
      }
  • Input schema defining the required 'document_id' parameter for the strapi_get_event tool.
    inputSchema: {
      type: 'object',
      properties: {
        document_id: { type: 'string', description: 'Event document ID' }
      },
      required: ['document_id']
    }
  • index.js:311-321 (registration)
    Tool registration in the listTools response, including name, description, and input schema.
    {
      name: 'strapi_get_event',
      description: 'Get a specific event by document ID',
      inputSchema: {
        type: 'object',
        properties: {
          document_id: { type: 'string', description: 'Event document ID' }
        },
        required: ['document_id']
      }
    },
  • index.js:412-413 (registration)
    Switch case in the CallToolRequest handler that dispatches to the getEvent method.
    case 'strapi_get_event':
      return await this.getEvent(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 tool retrieves data ('Get'), implying it's likely read-only, but doesn't confirm safety aspects like whether it requires authentication, has rate limits, or what happens with invalid IDs. For a retrieval 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 front-loads the core purpose without unnecessary words. Every part of the sentence earns its place by specifying the action, resource, and key identifier. There is zero waste or redundancy.

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

Completeness3/5

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

For a simple retrieval tool with one well-documented parameter and no output schema, the description is minimally adequate. It covers the basic purpose but lacks behavioral context (e.g., error handling, authentication needs) and usage guidance relative to siblings. Without annotations or output schema, more detail would improve completeness.

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%, with the single parameter 'document_id' fully documented in the schema. The description adds no additional parameter information beyond implying it's used to identify the event. Since the schema does the heavy lifting, 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.

Purpose4/5

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

The description clearly states the action ('Get') and resource ('a specific event by document ID'), making the purpose immediately understandable. It distinguishes this tool from list operations like 'strapi_list_events' by specifying retrieval of a single item. However, it doesn't explicitly differentiate from other 'get' siblings like 'strapi_get_blog_post' beyond the resource type.

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 a valid document ID), contrast with 'strapi_list_events' for browsing, or explain when to choose this over other retrieval tools. Usage is implied but not explicitly stated.

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