diagnose_collection_access
Diagnose why a collection cannot be read or written with the current token by checking existence, active state, and item/field/relation permissions to identify the blocker. Read-only, production-safe.
Instructions
Explains why a collection cannot be read or written with the current token: whether it exists, whether it is active, whether the token holds item, field and relation permissions, and which of those is the blocker. Read-only and safe against production. Reach for it first when a tool returns an empty result or a forbidden error, before concluding the data is missing; validate_collection_schema covers a suspect schema and refresh_collection_cache a collection that was just created. Each include flag adds targeted probe requests against Directus.
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": "diagnose_collection_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection | Yes | Collection name to diagnose | |
| includeFields | No | Include field access tests | |
| includeRelations | No | Include relation access tests | |
| includePermissions | No | Include permission checks |