Skip to main content
Glama

strapi_get_blog_post

Retrieve a specific blog post from Strapi CMS using its document ID to access content details and metadata.

Instructions

Get a specific blog post by document ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
document_idYesBlog post document ID

Implementation Reference

  • The handler function that retrieves a specific blog post by its document ID using a GET request to Strapi's content-manager API endpoint. It returns the response data as JSON text.
    async getBlogPost (headers, args) {
      // Strapi 5 uses documentId for single document operations
      const response = await axios.get(
        `${this.strapiUrl}/content-manager/collection-types/api::blog-post.blog-post/${args.document_id}`,
        { headers }
      )
    
      return {
        content: [{
          type: 'text',
          text: JSON.stringify(response.data, null, 2)
        }]
      }
    }
  • Input schema definition for the tool, requiring a 'document_id' string parameter.
    inputSchema: {
      type: 'object',
      properties: {
        document_id: { type: 'string', description: 'Blog post document ID' }
      },
      required: ['document_id']
    }
  • index.js:139-150 (registration)
    Registration of the tool in the ListToolsRequestHandler, including name, description, and input schema.
    {
      name: 'strapi_get_blog_post',
      description: 'Get a specific blog post by document ID',
      inputSchema: {
        type: 'object',
        properties: {
          document_id: { type: 'string', description: 'Blog post document ID' }
        },
        required: ['document_id']
      }
    },
    {
  • index.js:371-372 (registration)
    Handler dispatch in the CallToolRequestHandler switch statement, routing calls to the getBlogPost method.
    case 'strapi_get_blog_post':
      return await this.getBlogPost(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 full burden. It states the tool retrieves data ('Get'), implying a read-only operation, but doesn't disclose behavioral traits such as authentication needs, rate limits, error responses, or whether it returns full or partial post data. For a tool with zero annotation coverage, this is a significant gap.

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 directly states the tool's purpose without unnecessary words. It is appropriately sized and front-loaded, making it easy to parse quickly.

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?

Given the tool's low complexity (single parameter, no output schema, no annotations), the description is minimally adequate. It covers the basic purpose but lacks details on usage, behavior, and output, which are needed for full contextual understanding. It's complete enough for a simple read operation but with clear gaps.

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?

The schema description coverage is 100%, with the parameter 'document_id' fully documented in the schema. The description adds no additional meaning beyond what the schema provides (e.g., format examples or constraints), so it meets the baseline of 3 for high schema coverage without compensating value.

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 blog post'), and specifies the lookup method ('by document ID'). It distinguishes from list operations but doesn't explicitly differentiate from other 'get' siblings like strapi_get_event or strapi_get_tutorial, which follow the same pattern.

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 a valid document ID), contrast with strapi_list_blog_posts for browsing, or specify error handling for invalid IDs. The description implies usage but offers no explicit context or exclusions.

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