Skip to main content
Glama
microcmsio

microCMS MCP Server

by microcmsio

microcms_create_contents_bulk_draft

Create multiple content drafts in microCMS sequentially, with individual success/failure reporting.

Instructions

Create multiple contents in microCMS at once. This tool processes contents sequentially and continues even if some fail. Results include success/failure status for each content.

Create new content in microCMS and publish it immediately.

Important

Ensure that the "content" you submit strictly adheres to the following specifications. In particular, take extra care when handling custom fields and iframe fields, as mistakes are common in their structure. Read the instructions thoroughly and construct the data precisely as described. In particular, for extended fields (iframe fields), you need to take care to call microcms_get_list tool beforehand, and set its structure to the "data" field (Detail is described below).

Field type specifications

  • Image fields require URL string uploaded to microCMS media library (e.g., "https://images.microcms-assets.io/assets/xxx/yyy/sample.png").

  • Multiple image fields use array format.

  • Rich editor fields expect HTML strings.

  • Date fields use ISO 8601 format.

  • Select fields use arrays.

  • Content reference fields use contentId strings or arrays for multiple references, and you can get contentIds from microcms_get_list tool.

  • Custom field exepect below struct:

<field Id in apiFields> {
  "fieldId": "<target custom field id in customFields>"
  "key1": "<value1>",
  "key2": "<value2>",
}
  • iframe field (Extension field) expects the following structure for CREATE/UPDATE:

  {
    "id": "some-id",
    "title": "some-title",
    "description": "some-description",
    "imageUrl": "https://images.microcms-assets.io/assets/xxxx/yyyy/{fileName}.png",
    "updatedAt": "2024-01-01T00:00:00Z",
    "data": { "key1": "value1", "key2": "value2" }
  }
  • IMPORTANT: When retrieving content via API, only the "data" object content is returned (without the wrapper).

  • IMPORTANT: When creating/updating content, you MUST provide the full structure including id, title, description, imageUrl, updatedAt, and data.

  • To understand the "data" structure, ALWAYS use microcms_get_list to retrieve existing content first and examine the field structure.

  • "id", "title", "description", "imageUrl" are metadata displayed in the admin screen and are not included in the API GET response.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
serviceIdNoService ID (required in multi-service mode, optional in single-service mode)
endpointYesContent type name (e.g., "blogs", "news")
contentsYesArray of contents to create as draft
Behavior3/5

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

The description discloses that processing is sequential and continues on failure, and that results include success/failure status. However, it lacks details on authentication requirements, rate limits, idempotency, and the contradiction about publishing immediately undermines transparency. No annotations are present, so the description carries the full burden but falls short.

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

Conciseness3/5

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

The description is overly long and contains repetition (e.g., two conflicting opening statements). It front-loads key behavioral info but then includes extensive field specifications that could be more succinct. The structure mixes usage guidelines with data format instructions, reducing clarity and conciseness.

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

Completeness4/5

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

Given the complexity of the tool (bulk creation with nested content objects) and no output schema, the description provides detailed field specifications and instructions for custom/iframe fields, including the need to fetch structure via microcms_get_list. It covers the most critical aspect (data format) but lacks description of the response format beyond 'success/failure status' and does not mention error handling or limits.

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

Parameters4/5

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

Schema coverage is 100%, setting a baseline of 3. The description adds significant meaning to the 'contents' parameter by detailing field type specifications for images, rich editors, custom fields, and iframe fields, including JSON structures and warnings. This goes well beyond the schema's minimal descriptions. ServiceId and endpoint are not further elaborated, but the major value-add for the complex field types justifies a 4.

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 states that the tool creates multiple contents in microCMS at once as drafts, and it processes sequentially with failure tolerance. It distinguishes from siblings like microcms_create_content_draft (single) and microcms_create_contents_bulk_published (published). However, there is a conflicting statement that says 'Create new content ... and publish it immediately,' which contradicts the draft nature and reduces clarity.

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 does not provide explicit guidance on when to use this bulk draft creator versus alternatives like microcms_create_content_draft or microcms_create_contents_bulk_published. It focuses on data structure specifications rather than usage context, leaving the agent without clear decision criteria.

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/microcmsio/microcms-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server