submit_structured_events
Submit structured event records to MongoDB with deduplication by source and title, blocking duplicate titles and applying schema defaults.
Instructions
Submit structured event records (following the event-structuring-v1.1.txt events-v1.1 schema) produced by a chatbot and persist them to the Events collection.
This is the event counterpart of submit_structured_records:
Deduplication key: source.name + title (upsert-in-place on re-submit).
Optional duplicate-title GATE (on by default): a record whose title matches an existing LIVE event — same normalized title from a different source, or a reworded title from the same source — is SKIPPED and reported under "duplicates".
events-v1.1 defaults are applied (type="event", status="draft", visibility="public", featured=false, analytics=0) and off-schema enum values are downgraded to null with a warning (see details).
The audit
metadatablock is stripped unless keep_metadata=True.
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": {
"events_json": "<events_json>"
},
"name": "submit_structured_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dedupe_gate | No | If True (default), block events that duplicate an existing live event by normalized title. Set False to force-insert (e.g. intentional re-ingest). | |
| events_json | Yes | JSON string — either a single object or an array of structured event objects following the events-v1.1 schema | |
| keep_metadata | No | If True, retain each event's metadata audit block (searchLog, fieldConfidence, discoveredEvents, ...). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||