contentstack-mcp

by darekrossman

update_content_type

Modify an existing content type by updating its title, schema, field rules, and options. Use this MCP server tool to adjust content structure, visibility conditions, and URL patterns efficiently.

Instructions

Updates an existing content type identified by its UID. Allows modification of title, schema, options, and field rules.

Input Schema

NameRequiredDescriptionDefault
field_rulesNoField visibility rules for showing/hiding fields based on conditions
optionsNoContent type options like webpage/content block settings and URL patterns
schemaNoArray of schema fields defining the content structure. Each field object should include properties like: - display_name: Field display name - uid: Unique identifier for the field - data_type: Type of data (text, number, boolean, file, etc.) - field_metadata: Additional metadata for the field - multiple: Whether field accepts multiple values - mandatory: Whether field is required - unique: Whether field values must be unique
titleNoNew content type title
uidYesContent type UID to update

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "field_rules": { "description": "Field visibility rules for showing/hiding fields based on conditions", "items": { "additionalProperties": false, "properties": { "actions": { "items": { "additionalProperties": false, "properties": { "action": { "description": "Action to perform (show/hide)", "type": "string" }, "target_field": { "description": "Field to show/hide based on condition", "type": "string" } }, "required": [ "action", "target_field" ], "type": "object" }, "type": "array" }, "conditions": { "items": { "additionalProperties": false, "properties": { "operand_field": { "description": "Field on which to apply condition", "type": "string" }, "operator": { "description": "Operator for condition (e.g., equals, contains)", "type": "string" }, "value": { "description": "Expected value for the condition" } }, "required": [ "operand_field", "operator" ], "type": "object" }, "type": "array" }, "match_type": { "description": "Whether all or any conditions should be met", "type": "string" } }, "required": [ "conditions", "actions", "match_type" ], "type": "object" }, "type": "array" }, "options": { "additionalProperties": false, "description": "Content type options like webpage/content block settings and URL patterns", "properties": { "is_page": { "description": "Set to true for webpage content types, false for content blocks", "type": "boolean" }, "singleton": { "description": "Set to true for single content types, false for multiple", "type": "boolean" }, "sub_title": { "description": "Fields to use as subtitles", "items": { "type": "string" }, "type": "array" }, "title": { "description": "Field to use as the title", "type": "string" }, "url_pattern": { "description": "Default URL pattern for entries", "type": "string" }, "url_prefix": { "description": "Path prefix for entries", "type": "string" } }, "type": "object" }, "schema": { "description": "Array of schema fields defining the content structure. Each field object should include properties like:\n- display_name: Field display name\n- uid: Unique identifier for the field\n- data_type: Type of data (text, number, boolean, file, etc.)\n- field_metadata: Additional metadata for the field\n- multiple: Whether field accepts multiple values\n- mandatory: Whether field is required\n- unique: Whether field values must be unique", "items": { "additionalProperties": true, "properties": {}, "type": "object" }, "type": "array" }, "title": { "description": "New content type title", "type": "string" }, "uid": { "description": "Content type UID to update", "type": "string" } }, "required": [ "uid" ], "type": "object" }

You must be authenticated.

Other Tools from contentstack-mcp

Related Tools

ID: c4avzr3qnm