Insert JSON
insert-jsonInserts a JSON object or array of JSON objects into a RawTree table, auto-creating it on first insert. Use it to send events, logs, or records.
Instructions
Purpose: Insert one JSON object or an array of JSON objects into a RawTree table. RawTree auto-creates the table on first insert.
NOT for: Loading data from a public URL (use insert-from-url).
Returns: Insert confirmation, usually { "inserted": <row_count> }.
When to use:
User wants to send events, logs, traces, metrics, or arbitrary records to RawTree
You need to create a table by inserting the first row
You need to validate that RawTree accepts a payload shape
Workflow: Choose a table name → send a small representative payload → run describe-table or run-query to verify.
Key trigger phrases: "insert this", "send event", "write to RawTree", "create table with data", "ingest JSON"
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": {
"table": "<table>",
"data": "<data>"
},
"name": "insert-json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | A JSON object or a non-empty array of JSON objects to insert. | |
| table | Yes | Target table name. RawTree accepts identifiers like events, traces, api_logs. | |
| cluster | No | Name or ID of the cluster to use for this operation. | |
| database | No | Optional RawTree database override. RawTree uses the default database when omitted. | |
| organization | No | Name or ID of the organization containing the target cluster. |