get_collection_schema
Retrieve a collection's field-level schema to see field names, types, constraints, defaults, and relations before creating or updating items.
Instructions
Returns the field-level schema of one collection: field names, database types, interfaces, required and unique constraints, defaults and relation metadata. Use it before create_item or update_item to learn which fields exist and which are mandatory; use list_collections to find the collection name first, analyze_collection_schema when relationship mapping and constraint checks are also wanted. Read-only. Fails when the collection does not exist or the token cannot read it, and diagnose_collection_access tells those two apart.
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": "get_collection_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection | Yes | Collection name |