create_collection
Create a collection in a knowledge base to organize and store related content. Requires a write-scoped API key; specify a knowledge base ID when the project has several.
Instructions
Create a collection. Collections live in a knowledge base: if the project has exactly one it's used, if it has none one is created; with several, pass knowledge_base_id. Needs an API key with the 'write' scope.
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": {
"name": "<name>"
},
"name": "create_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Collection name | |
| slug | No | URL-friendly id: lowercase letters, digits, hyphens (generated if omitted) | |
| description | No | What the collection holds | |
| knowledge_base_id | No | Knowledge base to put it in (see list_knowledge_bases) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |