create_global_field
Create global fields with defined titles, unique identifiers, and structured schemas in the Contentstack MCP server to streamline content management and organization.
Instructions
Creates a new global field with the specified title, UID, and schema.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
schema | Yes | Array of schema fields defining the global field 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 | |
title | Yes | Global field title | |
uid | Yes | Global field UID (unique identifier) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"schema": {
"description": "Array of schema fields defining the global field 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": "Global field title",
"type": "string"
},
"uid": {
"description": "Global field UID (unique identifier)",
"type": "string"
}
},
"required": [
"title",
"uid",
"schema"
],
"type": "object"
}