> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended** (the `-y` flags skip prompts, so the command runs without an interactive terminal):
> ```bash
> npx -y @scalekit-inc/cli setup -y
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup -y
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for other Agent Skills-compatible agents in `~/.agents/skills`.
> Skills: integrate-agentkit, implement-saaskit, add-mcp-oauth, implement-sso, implement-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Connect AI agents to the Clickhouse MCP server

The Clickhouse MCP connector routes your AI agent's tool calls to Clickhouse's own MCP server through Scalekit. Each user signs in to Clickhouse once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 17 tools.

**Authentication:** OAuth 2.1/DCR
**Categories:** Analytics, Developer Tools, Databases
**Tools:** 17: 17 read, 0 write, 0 destructive
**Users sign in with:** OAuth
**OAuth app:** Scalekit's or your own
**Built by:** Vendor MCP
**Try it:** [Playground in the Scalekit dashboard](https://app.scalekit.com/ws/signup?sk_intent=playground&provider=CLICKHOUSE)

## What you can do

- **Run SELECT queries**: execute read-only SQL queries against any ClickHouse service and retrieve results directly in your agent
- **Explore schema**: list databases, tables, and column types to understand your data model before writing queries
- **Manage services**: list, inspect, and get full details for ClickHouse Cloud services (clusters) in an organization
- **Monitor backups**: list service backups, get backup details, and retrieve the backup schedule and retention config
- **Inspect ClickPipes**: list and retrieve data ingestion pipeline status and configuration
- **Track costs**: get billing and usage cost data for an organization over a custom date range

## Setup

1. ### Install the SDK

   **Node.js**

   ```bash
   npm install @scalekit-sdk/node dotenv
   ```

   **Python**

   ```bash
   pip install scalekit-sdk-python python-dotenv
   ```

2. ### Set your credentials

   Add your Scalekit credentials to your `.env` file. Find values in **[app.scalekit.com](https://app.scalekit.com)** > **Developers** > **API Credentials**.

   ```sh title=".env"
   SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
   SCALEKIT_CLIENT_ID=<your-client-id>
   SCALEKIT_CLIENT_SECRET=<your-client-secret>
   ```

3. ### Create the Clickhouse MCP connection

   In **AgentKit > Connections**, create a Clickhouse MCP connection. The name you give it is the `connection_name` your code passes. See [Configure connections](/agentkit/connections/).

   Scalekit credentials are available for Clickhouse MCP server, so you don't need to register an OAuth app.

4. ### Authorize a user and make your first call

   **Node.js** (`quickstart.mts`)

   ```typescript
   import { ScalekitClient } from '@scalekit-sdk/node'
   import 'dotenv/config'
   import { createInterface } from 'node:readline/promises'

   const scalekit = new ScalekitClient(
     process.env.SCALEKIT_ENVIRONMENT_URL,
     process.env.SCALEKIT_CLIENT_ID,
     process.env.SCALEKIT_CLIENT_SECRET,
   )
   const actions = scalekit.actions

   const connector = 'clickhouse'
   const identifier = 'user_123'

   // Generate an authorization link for the user
   const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
   console.log('Authorize Clickhouse MCP:', link)
   const rl = createInterface({ input: process.stdin, output: process.stdout })
   await rl.question('Press Enter after authorizing...')
   rl.close()

   // Make your first call
   const result = await actions.executeTool({
     connector,
     identifier,
     toolName: 'clickhouse_get_organizations',
     toolInput: {},
   })
   console.log(result)
   ```

   ```bash
   npx tsx quickstart.mts
   ```

   **Python** (`quickstart.py`)

   ```python
   import os
   from scalekit import ScalekitClient
   from dotenv import load_dotenv
   load_dotenv()

   scalekit_client = ScalekitClient(
       env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),
       client_id=os.getenv("SCALEKIT_CLIENT_ID"),
       client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),
   )
   actions = scalekit_client.actions

   connection_name = "clickhouse"
   identifier = "user_123"

   # Generate an authorization link for the user
   link_response = actions.get_authorization_link(
       connection_name=connection_name,
       identifier=identifier,
   )
   print("Authorize Clickhouse MCP:", link_response.link)
   input("Press Enter after authorizing...")

   # Make your first call
   result = actions.execute_tool(
       tool_input={},
       tool_name="clickhouse_get_organizations",
       connection_name=connection_name,
       identifier=identifier,
   )
   print(result)
   ```

   ```bash
   python quickstart.py
   ```

   Each user signs in once. See [Authorize a user](/agentkit/tools/authorize/) for the full flow and statuses.

## Tools

Pass the exact name to `execute_tool`, with an input like each tool's example. To ask for a tool that's missing, use the [request form](https://scalekitsupport.portal.usepylon.com/forms/request-a-connector-tool).

**Node.js**

```typescript
const result = await actions.executeTool({
  toolName: 'clickhouse_get_clickpipe',
  toolInput: {
    clickPipeId: '<clickPipeId>',
    organizationId: '<organizationId>',
    serviceId: '<serviceId>',
  },
  connector: 'clickhouse',
  identifier: 'user_123',
})
```

**Python**

```python
result = actions.execute_tool(
    tool_name="clickhouse_get_clickpipe",
    tool_input={
        "clickPipeId": "<clickPipeId>",
        "organizationId": "<organizationId>",
        "serviceId": "<serviceId>",
    },
    connection_name="clickhouse",
    identifier="user_123",
)
```

`result.data` is the app's response as JSON, and `result.execution_id` (`executionId` in Node.js) is the ID of the call.

### `clickhouse_get_clickpipe`

Get Clickpipe · Read-only

Get configuration and status for a specific ClickPipe by ID.

Read only: yes. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `clickPipeId` (`string`, required): ID of the requested ClickPipe
- `organizationId` (`string`, required): ID of the organization that owns the service
- `serviceId` (`string`, required): ID of the service that owns the ClickPipe

Example input: `{"clickPipeId":"<clickPipeId>","organizationId":"<organizationId>","serviceId":"<serviceId>"}`

### `clickhouse_get_organization_cost`

Get Organization Cost · Read-only

Get billing and usage cost data for an organization over a date range (max 31 days). Returns a grand total and daily per-entity cost breakdown.

Read only: yes. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `organizationId` (`string`, required): The unique identifier of the organization
- `from_date` (`string`, optional): Start date for the report, e.g. 2024-12-19 (YYYY-MM-DD)
- `to_date` (`string`, optional): End date (inclusive) for the report, e.g. 2024-12-20 (YYYY-MM-DD). Cannot be more than 30 days after from_date.

Example input: `{"organizationId":"<organizationId>"}`

### `clickhouse_get_organization_details`

Get Organization Details · Read-only

Get details for a specific ClickHouse Cloud organization: name, tier, status, and settings. Use get_organizations to find the organizationId.

Read only: yes. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `organizationId` (`string`, required): ID of the organization to retrieve

Example input: `{"organizationId":"<organizationId>"}`

### `clickhouse_get_organizations`

Get Organizations · Read-only

List all ClickHouse Cloud organizations accessible with the current API key. Returns organization IDs and names. Use the returned organizationId with all other tools.

Read only: yes. Destructive: no. Idempotent (safe to retry): no.

Inputs: none.

Example input: `{}`

### `clickhouse_get_postgres_metrics`

Get Postgres Metrics · Read-only

Returns bucketed time-series metrics for a Postgres service over a time window (CPU, memory, disk, network, connections, cache hit ratio, throughput, transactions, and more). Each metric has a key, name, unit, description, and one series per label dimension, where each series is a list of (timestamp, value) data points. Timestamps are Unix seconds at the bucket start. Provide fromDate and toDate to bound the window; omit bucketSizeSeconds to let the server pick a bucket granularity for the window. Use this to chart or analyze how a service behaved over time.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `fromDate` (`string`, required): Inclusive start of the time window. Pass a UTC timestamp with millisecond precision, e.g. 2026-06-08T00:00:00.000Z.
- `organizationId` (`string`, required): Organization that owns the Postgres service. Use the id of an organization returned by get_organizations.
- `serviceId` (`string`, required): Managed Postgres service to read metrics for. Use the id of a postgres-type service returned by get_services_list.
- `toDate` (`string`, required): Exclusive end of the time window. Pass a UTC timestamp with millisecond precision, e.g. 2026-06-09T00:00:00.000Z.
- `bucketSizeSeconds` (`integer`, optional): Width of each time bucket in seconds. Omit to let the server pick a granularity that suits the window; larger buckets return fewer data points.

Example input: `{"fromDate":"<fromDate>","organizationId":"<organizationId>","serviceId":"<serviceId>","toDate":"<toDate>"}`

### `clickhouse_get_postgres_slow_query_pattern_details`

Get Postgres Slow Query Pattern Details · Read-only

Returns up to the 10 most recent individual executions for a single Postgres slow query pattern from the last 24 hours, plus aggregate metrics for the pattern when available. For exact drill-down from list_postgres_slow_query_patterns, pass queryId, dbName, dbUser, dbOperation, and app exactly as returned; pass app as an empty string when the selected pattern has no application_name. Omit app only when intentionally querying across all applications. Each execution includes duration, rows, buffer/temp/WAL/JIT/CPU counters, and the error message and SQLSTATE if it failed. Durations are in microseconds. The execution sample is capped at 10 rows, so when aggregate is present rely on its fields for totals.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `dbName` (`string`, required): Database the pattern ran in. Copy the dbName of the selected pattern from list_postgres_slow_query_patterns; together with queryId, dbUser, dbOperation, and app it identifies one pattern.
- `dbOperation` (`string`, required): Top-level SQL operation type of the pattern, such as SELECT or UPDATE. Copy the dbOperation of the selected pattern from list_postgres_slow_query_patterns.
- `dbUser` (`string`, required): Database user that executed the pattern. Copy the dbUser of the selected pattern from list_postgres_slow_query_patterns.
- `organizationId` (`string`, required): Organization that owns the Postgres service. Use the id of an organization returned by get_organizations.
- `queryId` (`string`, required): Stable identifier for the query pattern, as returned by list_postgres_slow_query_patterns
- `serviceId` (`string`, required): Managed Postgres service the pattern was observed on. Use the id of a postgres-type service returned by get_services_list.
- `app` (`string`, optional): Postgres application_name of the pattern, exactly as returned by list_postgres_slow_query_patterns. Pass an empty string for a pattern with no application_name; omit only to match all applications.

Example input: `{"dbName":"<dbName>","dbOperation":"<dbOperation>","dbUser":"<dbUser>","organizationId":"<organizationId>","queryId":"<queryId>","serviceId":"<serviceId>"}`

### `clickhouse_get_service_backup_configuration`

Get Service Backup Configuration · Read-only

Get the backup schedule and retention configuration for a service.

Read only: yes. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `organizationId` (`string`, required): ID of the organization that owns the service
- `serviceId` (`string`, required): ID of the service

Example input: `{"organizationId":"<organizationId>","serviceId":"<serviceId>"}`

### `clickhouse_get_service_backup_details`

Get Service Backup Details · Read-only

Get details for a specific backup: status, size, duration, and creation time.

Read only: yes. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `backupId` (`string`, required): ID of the backup
- `organizationId` (`string`, required): ID of the organization that owns the service
- `serviceId` (`string`, required): ID of the service

Example input: `{"backupId":"<backupId>","organizationId":"<organizationId>","serviceId":"<serviceId>"}`

### `clickhouse_get_service_details`

Get Service Details · Read-only

Get full details for a specific service: status, region, tier, endpoints, and scaling configuration.

Read only: yes. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `organizationId` (`string`, required): Organization that owns the service. Use the id of an organization returned by get_organizations.
- `serviceId` (`string`, required): Service to retrieve: the id of a clickhouse-type or postgres-type service returned by get_services_list. The tool queries both service kinds and reports which one matched in serviceType.

Example input: `{"organizationId":"<organizationId>","serviceId":"<serviceId>"}`

### `clickhouse_get_services_list`

Get Services List · Read-only

List all services (clusters) in a ClickHouse Cloud organization. Returns service IDs, names, status, region, and tier. Use the returned serviceId with other tools.

Read only: yes. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `organizationId` (`string`, required): ID of the organization whose services are to be listed

Example input: `{"organizationId":"<organizationId>"}`

### `clickhouse_list_clickpipes`

List Clickpipes · Read-only

List all ClickPipes (managed data ingestion pipelines) configured for a service.

Read only: yes. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `organizationId` (`string`, required): ID of the organization
- `serviceId` (`string`, required): ID of the service to list ClickPipes for

Example input: `{"organizationId":"<organizationId>","serviceId":"<serviceId>"}`

### `clickhouse_list_databases`

List Databases · Read-only

List all databases in a ClickHouse service. Use the returned database names with list_tables and run_select_query.

Read only: yes. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `serviceId` (`string`, required): No description.

Example input: `{"serviceId":"<serviceId>"}`

### `clickhouse_list_postgres_slow_query_patterns`

List Postgres Slow Query Patterns · Read-only

Lists the slowest query patterns observed on a Postgres service in a time window, with aggregate metrics per pattern (call count, total/avg/p50/p95/p99/max duration, rows, shared buffer cache hits and reads, CPU time, WAL bytes, error count). Durations are in microseconds. Use this first to find which queries dominate execution time, CPU, I/O, or WAL, then pass a selected pattern queryId, dbName, dbUser, dbOperation, and app exactly as returned to get_postgres_slow_query_pattern_details for its recent executions. Pass app as an empty string when the selected pattern has no application_name; omit the app filter only when intentionally querying across all applications. The queryText is normalized with $1-style placeholders.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `fromDate` (`string`, required): Inclusive start of the time window. Pass a UTC timestamp with millisecond precision, e.g. 2026-06-08T00:00:00.000Z.
- `organizationId` (`string`, required): Organization that owns the Postgres service. Use the id of an organization returned by get_organizations.
- `serviceId` (`string`, required): Managed Postgres service to analyze. Use the id of a postgres-type service returned by get_services_list.
- `toDate` (`string`, required): Inclusive end of the time window, evaluated at minute granularity. Pass a UTC timestamp with millisecond precision, e.g. 2026-06-09T00:00:00.000Z.
- `app` (`string`, optional): Filter to a Postgres application_name. Pass an empty string to filter to queries with no application_name; omit to include all applications.
- `dbName` (`string`, optional): Only include patterns that ran in this database, matching the dbName of returned patterns.
- `dbOperation` (`string`, optional): Only include patterns with this top-level SQL operation type, such as SELECT, INSERT, UPDATE, DELETE, or UTILITY, matching the dbOperation of returned patterns.
- `dbUser` (`string`, optional): Only include patterns executed by this database user, matching the dbUser of returned patterns.
- `limit` (`integer`, optional): Number of patterns per page. Omit for the default page of 20; use offset and the totalCount in the result to page further.
- `offset` (`integer`, optional): Number of patterns to skip before the first returned pattern. Omit to start from the top-ranked pattern.
- `sortBy` (`string`, optional): Aggregate metric that ranks the patterns. Omit to rank by total_duration, which surfaces the patterns that consume the most execution time. One of: `total_duration`, `avg_duration`, `call_count`, `total_blks_read`, `total_cpu_time`, `error_count`, `max_duration`, `p50_duration`, `p95_duration`, `p99_duration`, `total_rows`, `total_shared_blks_hit`, `total_wal_bytes`.
- `sortOrder` (`string`, optional): Sort direction. Omit for descending, which puts the heaviest patterns first. One of: `asc`, `desc`.

Example input: `{"fromDate":"<fromDate>","organizationId":"<organizationId>","serviceId":"<serviceId>","toDate":"<toDate>"}`

### `clickhouse_list_service_backups`

List Service Backups · Read-only

List all backups for a service, most recent first. Returns backup IDs, status, size, and timestamps.

Read only: yes. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `organizationId` (`string`, required): ID of the organization
- `serviceId` (`string`, required): ID of the service to list backups for

Example input: `{"organizationId":"<organizationId>","serviceId":"<serviceId>"}`

### `clickhouse_list_tables`

List Tables · Read-only

List all tables in a database, including column names and types. Supports LIKE pattern filtering.

Read only: yes. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `database` (`string`, required): Name of the database to list tables from
- `serviceId` (`string`, required): The unique identifier of the ClickHouse service
- `like` (`string`, optional): Optional SQL LIKE pattern to filter tables by name (e.g., "events_%")
- `notLike` (`string`, optional): Optional SQL LIKE pattern to exclude tables by name

Example input: `{"database":"<database>","serviceId":"<serviceId>"}`

### `clickhouse_run_postgres_select_query`

Run Postgres Select Query · Read-only

Executes a read-only SELECT query against a Postgres service. The query is routed through the Postgres query endpoint with the read-only role and only read-style statements are permitted.

Read only: yes. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `organizationId` (`string`, required): Organization that owns the Postgres service. Use the id of an organization returned by get_organizations.
- `query` (`string`, required): SQL to run on the Postgres service. It executes under a read-only role, so only read statements succeed. Results come back as JSON rows with column metadata.
- `serviceId` (`string`, required): Managed Postgres service to run the query on. Use the id of a postgres-type service returned by get_services_list.
- `database` (`string`, optional): Postgres database to run the query in. Omit to use the postgres database.
- `timeoutSeconds` (`integer`, optional): How long to wait for the query before the call returns a timeout error. Omit to use the server default of 300 seconds.

Example input: `{"organizationId":"<organizationId>","query":"<query>","serviceId":"<serviceId>"}`

### `clickhouse_run_select_query`

Run Select Query · Read-only

Execute a read-only SELECT query against a ClickHouse service. Only SELECT statements are permitted.

Read only: yes. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `query` (`string`, required): A valid ClickHouse SELECT query. Only read-only SELECT statements are permitted. e.g. SELECT * FROM my_table LIMIT 10
- `serviceId` (`string`, required): The unique identifier of the ClickHouse service
- `timeoutSeconds` (`integer`, optional): Query timeout in seconds. Default: 300 (5 min), max: 3600 (1 hour). Use lower values for simple queries.

Example input: `{"query":"<query>","serviceId":"<serviceId>"}`

## Workflows

**Get your service ID**

Every ClickHouse tool requires a `serviceId`. Fetch it first by listing the services in your organization.

  **Node.js**

  ```typescript
  const orgs = await actions.executeTool({
    toolName: 'clickhouse_get_organizations',
    connector: 'clickhouse',
    identifier: 'user_123',
    toolInput: {},
  });
  const orgId = orgs.data?.result?.[0]?.id;

  const services = await actions.executeTool({
    toolName: 'clickhouse_get_services_list',
    connector: 'clickhouse',
    identifier: 'user_123',
    toolInput: { organizationId: orgId },
  });
  const serviceId = services.data?.result?.[0]?.id;
  console.log('Service ID:', serviceId);
  ```

  **Python**

  ```python
  orgs = actions.execute_tool(
      tool_name="clickhouse_get_organizations",
      connection_name="clickhouse",
      identifier="user_123",
      tool_input={},
  )
  org_id = orgs.data["result"][0]["id"]

  services = actions.execute_tool(
      tool_name="clickhouse_get_services_list",
      connection_name="clickhouse",
      identifier="user_123",
      tool_input={"organizationId": org_id},
  )
  service_id = services.data["result"][0]["id"]
  print("Service ID:", service_id)
  ```

**Explore schema before querying**

List databases and tables to understand the data model before writing queries.

  **Node.js**

  ```typescript
  // List databases
  const dbs = await actions.executeTool({
    toolName: 'clickhouse_list_databases',
    connector: 'clickhouse',
    identifier: 'user_123',
    toolInput: { serviceId: '<your-service-id>' },
  });

  // List tables in a database
  const tables = await actions.executeTool({
    toolName: 'clickhouse_list_tables',
    connector: 'clickhouse',
    identifier: 'user_123',
    toolInput: {
      serviceId: '<your-service-id>',
      database: 'default',
    },
  });
  console.log(tables.data?.result);
  ```

  **Python**

  ```python
  # List databases
  dbs = actions.execute_tool(
      tool_name="clickhouse_list_databases",
      connection_name="clickhouse",
      identifier="user_123",
      tool_input={"serviceId": "<your-service-id>"},
  )

  # List tables in a database
  tables = actions.execute_tool(
      tool_name="clickhouse_list_tables",
      connection_name="clickhouse",
      identifier="user_123",
      tool_input={
          "serviceId": "<your-service-id>",
          "database": "default",
      },
  )
  print(tables.data["result"])
  ```

**Run a SELECT query**

Execute read-only SQL against your ClickHouse service. Only `SELECT` statements are permitted.

  **Node.js**

  ```typescript
  const result = await actions.executeTool({
    toolName: 'clickhouse_run_select_query',
    connector: 'clickhouse',
    identifier: 'user_123',
    toolInput: {
      serviceId: '<your-service-id>',
      query: 'SELECT event, count() AS cnt FROM events GROUP BY event ORDER BY cnt DESC LIMIT 10',
      timeoutSeconds: 30,
    },
  });
  console.log(result.data?.result);
  ```

  **Python**

  ```python
  result = actions.execute_tool(
      tool_name="clickhouse_run_select_query",
      connection_name="clickhouse",
      identifier="user_123",
      tool_input={
          "serviceId": "<your-service-id>",
          "query": "SELECT event, count() AS cnt FROM events GROUP BY event ORDER BY cnt DESC LIMIT 10",
          "timeoutSeconds": 30,
      },
  )
  print(result.data["result"])
  ```

> note: Only SELECT is allowed
>
> `clickhouse_run_select_query` rejects INSERT, UPDATE, DELETE, and DDL statements. Use it for read-only data retrieval and analytics.

**Check organization costs**

Retrieve billing and usage data for a ClickHouse Cloud organization over a date range (max 31 days per request).

  **Node.js**

  ```typescript
  const costs = await actions.executeTool({
    toolName: 'clickhouse_get_organization_cost',
    connector: 'clickhouse',
    identifier: 'user_123',
    toolInput: {
      organizationId: '<your-org-id>',
      from_date: '2025-01-01',
      to_date: '2025-01-31',
    },
  });
  console.log(costs.data?.result);
  ```

  **Python**

  ```python
  costs = actions.execute_tool(
      tool_name="clickhouse_get_organization_cost",
      connection_name="clickhouse",
      identifier="user_123",
      tool_input={
          "organizationId": "<your-org-id>",
          "from_date": "2025-01-01",
          "to_date": "2025-01-31",
      },
  )
  print(costs.data["result"])
  ```

**List and inspect ClickPipes**

ClickPipes are managed data ingestion pipelines. List all pipelines for a service and get detailed status for a specific one.

  **Node.js**

  ```typescript
  const pipes = await actions.executeTool({
    toolName: 'clickhouse_list_clickpipes',
    connector: 'clickhouse',
    identifier: 'user_123',
    toolInput: {
      organizationId: '<your-org-id>',
      serviceId: '<your-service-id>',
    },
  });

  const pipeId = pipes.data?.result?.[0]?.id;
  const pipe = await actions.executeTool({
    toolName: 'clickhouse_get_clickpipe',
    connector: 'clickhouse',
    identifier: 'user_123',
    toolInput: {
      organizationId: '<your-org-id>',
      serviceId: '<your-service-id>',
      clickPipeId: pipeId,
    },
  });
  console.log(pipe.data?.result);
  ```

  **Python**

  ```python
  pipes = actions.execute_tool(
      tool_name="clickhouse_list_clickpipes",
      connection_name="clickhouse",
      identifier="user_123",
      tool_input={
          "organizationId": "<your-org-id>",
          "serviceId": "<your-service-id>",
      },
  )
  pipe_id = pipes.data["result"][0]["id"]

  pipe = actions.execute_tool(
      tool_name="clickhouse_get_clickpipe",
      connection_name="clickhouse",
      identifier="user_123",
      tool_input={
          "organizationId": "<your-org-id>",
          "serviceId": "<your-service-id>",
          "clickPipeId": pipe_id,
      },
  )
  print(pipe.data["result"])
  ```

## Related

Other Analytics connectors ([all 127](/agentkit/connectors/?category=analytics)):

- [Microsoft 365](/agentkit/connectors/microsoft365/): Scalekit connector, OAuth, 317 tools
- [HubSpot](/agentkit/connectors/hubspot/): Scalekit connector, OAuth, 457 tools
- [Snowflake](/agentkit/connectors/snowflake/): Scalekit connector, OAuth, 42 tools


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
