create_record
Create a record in a collection. It is normally published immediately. data must match the collection schema (inspect it with describe_resource). Returns the resource_key to use with get_record/update_record. In a collection with screening, the record may become readable only after screening; the result then reports published: false and delivery: "pending". Requires the CREATE permission on this API.
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>",
"data": "<data>"
},
"name": "create_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Optional external identifier for deduplication; creating a second record with the same key returns a conflict. | |
| data | Yes | Document body matching the collection schema. | |
| parents | No | Parent placeholders for nested collection resource_ids. | |
| collection | Yes | Collection resource_id from discover_resources. |