add_schema
Add a JSON schema to a collection to enforce data validation and ensure consistent document structure.
Instructions
Add a JSON schema to a collection. Provide the schema content as a JSON string.
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>",
"schema": "<schema>"
},
"name": "add_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | Yes | JSON schema content as a string (will be written to temporary file for CLI) | |
| collection | Yes | Collection name |