validate_collection_creation
Confirms a newly created collection is present, active, and readable with the current token, retrying once after a short wait to handle Directus lag before writing items.
Instructions
Confirms that a newly created collection is usable: present in the schema, active, and readable with the current token, retrying once after waitTime milliseconds (default 2000) because Directus can lag a moment behind a create. Read-only. Use it right after create_collection and before writing items; refresh_collection_cache when it still reports the collection as missing, diagnose_collection_access for the full permission breakdown.
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": "validate_collection_creation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| waitTime | No | Wait time in milliseconds before retry (default: 2000) | |
| collection | Yes | Collection name to validate |