createItem
Add a new item to a specified collection in Directus CMS using the Model Context Protocol, enabling efficient content management through a simple API request.
Instructions
Create a new item in a collection
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"collection": "<collection>",
"data": "<data>"
},
"name": "createItem"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection | Yes | Collection name | |
| data | Yes | Item data | |
| token | No | Authentication token (default from config) | |
| url | No | Directus API URL (default from config) |