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
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "getRelations"
}
}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) |