store_structured
Store structured conversation data and tool outputs with relationships, enabling versioned entity tracking and provenance for AI agents.
Instructions
Store structured entities only. Use for conversation- or tool-sourced data (e.g. from chat or another MCP). In chat: one call per turn with entities [conversation, agent_message], idempotency_key (per-store unique, e.g. conversation-{conversation_id}-{turn_id}-{timestamp_ms}), stable turn identity in agent_message (e.g. turn_key or id = conversation_id:turn_id), and relationships: [{ relationship_type: PART_OF, source_index: 1, target_index: 0 }]. Overwriting between branches is OK; history via list_observations. Use when you already have entity objects and do not need file ingestion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entities | No | ||
| relationships | No | Optional. Create relationships between entities in this request. Indices refer to the entities array (0-based). | |
| source_priority | No | ||
| idempotency_key | No | Required for structured path, optional for unstructured-only path. | |
| file_idempotency_key | No | Optional idempotency key for file path when sending structured + unstructured in one call. | |
| file_content | No | Base64-encoded file content (unstructured path) | |
| file_path | No | Local file path for server-local environments | |
| mime_type | No | Required with file_content, optional with file_path | |
| original_filename | No | ||
| user_id | No |