contentful-mcp

create_content_type

Create a new content type

Input Schema

NameRequiredDescriptionDefault
descriptionNo
displayFieldNo
environmentIdYesThe ID of the environment within the space, by default this will be called Mastermaster
fieldsYesArray of field definitions for the content type
nameYes
spaceIdYesThe ID of the Contentful space. This must be the space's ID, not its name, ask for this ID if it's unclear.

Input Schema (JSON Schema)

{ "properties": { "description": { "type": "string" }, "displayField": { "type": "string" }, "environmentId": { "default": "master", "description": "The ID of the environment within the space, by default this will be called Master", "type": "string" }, "fields": { "description": "Array of field definitions for the content type", "items": { "properties": { "id": { "description": "The ID of the field", "type": "string" }, "items": { "description": "Required for Array fields. Specifies the type of items in the array", "properties": { "linkType": { "enum": [ "Entry", "Asset" ], "type": "string" }, "type": { "enum": [ "Symbol", "Link" ], "type": "string" }, "validations": { "items": { "type": "object" }, "type": "array" } }, "type": "object" }, "linkType": { "description": "Required for Link fields. Specifies what type of resource this field links to", "enum": [ "Entry", "Asset" ], "type": "string" }, "localized": { "default": false, "description": "Whether this field can be localized", "type": "boolean" }, "name": { "description": "Display name of the field", "type": "string" }, "required": { "default": false, "description": "Whether this field is required", "type": "boolean" }, "type": { "description": "Type of the field (Text, Number, Date, Location, Media, Boolean, JSON, Link, Array, etc)", "enum": [ "Symbol", "Text", "Integer", "Number", "Date", "Location", "Object", "Boolean", "Link", "Array" ], "type": "string" }, "validations": { "description": "Array of validation rules for the field", "items": { "type": "object" }, "type": "array" } }, "required": [ "id", "name", "type" ], "type": "object" }, "type": "array" }, "name": { "type": "string" }, "spaceId": { "description": "The ID of the Contentful space. This must be the space's ID, not its name, ask for this ID if it's unclear.", "type": "string" } }, "required": [ "name", "fields", "spaceId", "environmentId" ], "type": "object" }