getRelations
Retrieve relations for a specific collection in Directus CMS using the MCP server. Input the API URL, authentication token, and optional collection name to fetch related data.
Instructions
Get relations for a collection
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection | No | Collection name (optional) | |
token | No | Authentication token (default from config) | |
url | No | Directus API URL (default from config) |
Input Schema (JSON Schema)
{
"properties": {
"collection": {
"description": "Collection name (optional)",
"type": "string"
},
"token": {
"description": "Authentication token (default from config)",
"type": "string"
},
"url": {
"description": "Directus API URL (default from config)",
"type": "string"
}
},
"required": [],
"type": "object"
}