Skip to main content
Run one SQL statement, a read or a write such as an INSERT, on your ClickHouse service and get the result rows.
Tool ID: clickhouse_run_query

Run this action

Use the TypeScript SDK for one call. Use ctx.tools.execute(...) inside a Play for durable calls, scheduled calls, or CSV processing.

CLI

Example response

The SDK returns this shape at result.toolResponse.raw. The example values illustrate the response.
Use deepline describe clickhouse_run_query --json for the latest machine-readable contract.

Input reference

Runs one SQL statement on the ClickHouse service saved in the connection’s SQL interface credentials (SQL service URL, database user and password). SELECT, WITH, SHOW, DESCRIBE, EXPLAIN and EXISTS are reads and return up to rowLimit rows. Every other statement is a write: INSERT, CREATE, ALTER, DELETE, UPDATE, DROP, TRUNCATE and anything Deepline cannot classify. Each call runs once for its run and is never resent after an unknown outcome. An INSERT is sent with insert_deduplication_token derived from the call’s durable idempotency key and insert_deduplicate=1, so a retry or replay of the same call within a run is not inserted twice, unless the statement sets insert_deduplication_token itself. Pass values only through parameters for ClickHouse {name:Type} placeholders.

Output reference

Standard tool result payload.

Deepline cost

  • Pricing model: fixed (per call).
  • Estimated Deepline credits: 0 per pricing unit.
  • Provider-native pricing may still exist outside Deepline credit billing.