insert_table_rows
Add new data rows to existing tables in Dune Analytics for blockchain analysis. Specify namespace, table name, and row data to insert.
Instructions
Insert rows into an existing table.
Args: namespace: Namespace of the table. table_name: Name of the table. rows: List of row objects where keys match column names.
Returns: Insert confirmation with row count.
Example: insert_table_rows( namespace="my_namespace", table_name="token_metrics", rows=[ {"date": "2024-01-01T00:00:00Z", "token": "ETH", "volume": 1000000}, {"date": "2024-01-02T00:00:00Z", "token": "ETH", "volume": 1200000} ] )
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": {
"namespace": "<namespace>",
"table_name": "<table_name>",
"rows": "<rows>"
},
"name": "insert_table_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | Yes | ||
| table_name | Yes | ||
| rows | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||