insert_documents
Add new documents to a Zvec collection with unique IDs and schema validation. Operation fails if a document with the same ID exists.
Instructions
Insert new documents into a collection.
Documents must have unique IDs and conform to the collection schema. This operation fails if a document with the same ID already exists.
Args: params (InsertDocumentsInput): Validated input parameters containing: - collection_name (str): Collection identifier - documents (List[DocumentInput]): Documents to insert
Returns: str: Success message with insertion count or error message
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": {
"params": "<params>"
},
"name": "insert_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |