analyze_collection_schema
Inspect one collection's fields, types, and constraints, optionally including relationships and schema problems, to guide querying or extending it. Read-only.
Instructions
Inspects one collection and reports its fields with types and constraints, optionally mapped against its relationships and checked for schema problems. Use it when deciding how to query or extend a collection; get_collection_schema returns the raw field list alone, validate_collection_schema returns only the problems, analyze_relationships gives the cross-collection view. Read-only. includeRelations adds inbound and outbound relations and validateConstraints adds constraint findings; each costs extra requests against Directus, so leave them off for a quick look.
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": "analyze_collection_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection | Yes | Collection name | |
| includeRelations | No | Include relationship analysis | |
| validateConstraints | No | Validate schema constraints |