getFields
Retrieve field details for a specific collection in Directus via the Model Context Protocol, enabling streamlined interaction with CMS APIs for data management.
Instructions
Get fields for 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>"
},
"name": "getFields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection | Yes | Collection name | |
| token | No | Authentication token (default from config) | |
| url | No | Directus API URL (default from config) |