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 18 tools.
- Tools
- 18
- What they doRead · write · destructive
- 18 · 0 · 018 read0 write0 destructive
- Users sign in with
- OAuth
- OAuth app
- Scalekit's or your own
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
Install the SDK
Terminal window npm install @scalekit-sdk/node dotenvTerminal window pip install scalekit-sdk-python python-dotenvSet your credentials
Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret>Create the Clickhouse MCP connection
In AgentKit > Connections, create a Clickhouse MCP connection. The name you give it is the
connection_nameyour code passes. See Configure connections.Scalekit credentials are available for Clickhouse MCP server, so you don't need to register an OAuth app.
Authorize a user and make your first call
quickstart.mts 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.actionsconst connector = 'clickhouse'const identifier = 'user_123'// Generate an authorization link for the userconst { 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 callconst result = await actions.executeTool({connector,identifier,toolName: 'clickhouse_get_organizations',toolInput: {},})console.log(result)Terminal window npx tsx quickstart.mtsquickstart.py import osfrom scalekit import ScalekitClientfrom dotenv import load_dotenvload_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.actionsconnection_name = "clickhouse"identifier = "user_123"# Generate an authorization link for the userlink_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 callresult = actions.execute_tool(tool_input={},tool_name="clickhouse_get_organizations",connection_name=connection_name,identifier=identifier,)print(result)Terminal window python quickstart.pyEach user signs in once. See Authorize a user for the full flow and statuses.
Tools
Pass the exact name toexecute_toolclickhouse_get_clickpipeReturns the full definition of one ClickPipe on a ClickHouse service: name, description, state, replica scaling, source settings (Kafka, object storage, Kinesis, or Postgres), destination database and table definition, field mappings, and creation and update times.Read-onlyGet Clickpipe
Returns the full definition of one ClickPipe on a ClickHouse service: name, description, state, replica scaling, source settings (Kafka, object storage, Kinesis, or Postgres), destination database and table definition, field mappings, and creation and update times. If the lookup fails, result is an error object with status "error" and a message.
Inputs
clickPipeIdstringrequired- ID of the requested ClickPipe
organizationIdstringrequired- ID of the organization that owns the service
serviceIdstringrequired- ID of the service that owns the ClickPipe
clickhouse_get_organization_costReturns usage costs for an organization over an inclusive range of UTC calendar days from from_date to to_date (both required, at most 31 days).Read-onlyGet Organization Cost
Returns usage costs for an organization over an inclusive range of UTC calendar days from from_date to to_date (both required, at most 31 days). result has grandTotalCHC, the total in ClickHouse Credits (CHC), and costs, one record per day per billed entity (data warehouse, service, or ClickPipe) with the entity id and name, a per-metric CHC breakdown, the day total, and whether the record is final. On failure result is an error object with status "error" and a message.
Inputs
organizationIdstringrequired- The unique identifier of the organization
from_datestring- Start date for the report, e.g. 2024-12-19 (YYYY-MM-DD)
to_datestring- End date (inclusive) for the report, e.g. 2024-12-20 (YYYY-MM-DD). Cannot be more than 30 days after from_date.
clickhouse_get_organization_detailsReturns one organization: its id, name, creation time, configured private endpoints, and BYOC (bring your own cloud) configurations.Read-onlyGet Organization Details
Returns one organization: its id, name, creation time, configured private endpoints, and BYOC (bring your own cloud) configurations. The credentials must belong to the organization; otherwise result is an error object with status "error" and a message.
Inputs
organizationIdstringrequired- ID of the organization to retrieve
clickhouse_get_organizationsList all ClickHouse Cloud organizations accessible with the current API key.Read-onlyGet Organizations
List all ClickHouse Cloud organizations accessible with the current API key. Returns organization IDs and names. Use the returned organizationId with all other tools.
Inputs
This tool takes no inputs.
clickhouse_get_postgres_logsReturns PostgreSQL server log entries for a Postgres service in a time window, most recent first unless sortOrder is asc.Read-onlyGet Postgres Logs
Returns PostgreSQL server log entries for a Postgres service in a time window, most recent first unless sortOrder is asc. Each entry has a timestamp (RFC 3339), a severity, and the raw body; structured bodies are returned as a JSON-encoded string. Filter with severity (exact match, so ERROR does not include FATAL or PANIC) and bodyContains (case-sensitive substring). The window must not exceed 30 days, and toDate must be after fromDate. Results are paginated: omit limit for 50 entries per page (up to 2000) and advance offset until a page returns fewer than limit entries. Use this to investigate errors, failed connections, crashes, and other server events.
Inputs
fromDatestringrequired- Inclusive start of the time window. Pass a UTC timestamp with millisecond precision, e.g. 2026-06-08T00:00:00.000Z.
organizationIdstringrequired- Organization that owns the Postgres service. Use the id of an organization returned by get_organizations.
serviceIdstringrequired- Managed Postgres service to read logs for. Use the id of a postgres-type service returned by get_services_list.
toDatestringrequired- Inclusive end of the time window. Pass a UTC timestamp with millisecond precision, e.g. 2026-06-09T00:00:00.000Z.
bodyContainsstring- Only include entries whose body contains this case-sensitive substring.
limitinteger- Number of entries per page. Omit for the default page of 50; a page with fewer entries than limit is the last page.
offsetinteger- Number of entries to skip before the first returned entry. Omit to start from the first entry.
severitystring- Only include entries with exactly this PostgreSQL severity; ERROR does not include FATAL or PANIC. Omit to include every severity.one of
DEBUGLOGINFONOTICEWARNINGERRORFATALPANIC sortOrderstring- Sort direction by timestamp. Omit for descending, which puts the most recent entries first.one of
ascdesc
clickhouse_get_postgres_metricsReturns bucketed time-series metrics for a Postgres service over a time window (CPU, memory, disk, network, connections, cache hit ratio, throughput, transactions, wait events, lock waits, and more).Read-onlyGet Postgres Metrics
Returns bucketed time-series metrics for a Postgres service over a time window (CPU, memory, disk, network, connections, cache hit ratio, throughput, transactions, wait events, lock waits, and more). Wait metrics are active_sessions_by_wait (one series per wait event, such as Lock:relation, or None when a session is not waiting), lock_wait_time (p50, p95, and Max series, in seconds), and blocked_sessions. 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.
Inputs
fromDatestringrequired- Inclusive start of the time window. Pass a UTC timestamp with millisecond precision, e.g. 2026-06-08T00:00:00.000Z.
organizationIdstringrequired- Organization that owns the Postgres service. Use the id of an organization returned by get_organizations.
serviceIdstringrequired- Managed Postgres service to read metrics for. Use the id of a postgres-type service returned by get_services_list.
toDatestringrequired- Exclusive end of the time window. Pass a UTC timestamp with millisecond precision, e.g. 2026-06-09T00:00:00.000Z.
bucketSizeSecondsinteger- 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.
clickhouse_get_postgres_slow_query_pattern_detailsReturns 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.Read-onlyGet Postgres Slow Query Pattern Details
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.
Inputs
dbNamestringrequired- 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.
dbOperationstringrequired- 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.
dbUserstringrequired- Database user that executed the pattern. Copy the dbUser of the selected pattern from list_postgres_slow_query_patterns.
organizationIdstringrequired- Organization that owns the Postgres service. Use the id of an organization returned by get_organizations.
queryIdstringrequired- Stable identifier for the query pattern, as returned by list_postgres_slow_query_patterns
serviceIdstringrequired- Managed Postgres service the pattern was observed on. Use the id of a postgres-type service returned by get_services_list.
appstring- 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.
clickhouse_get_service_backup_configurationReturns the backup schedule of a ClickHouse service: backupPeriodInHours (interval between backups), backupRetentionPeriodInHours (how long backups stay available), and backupStartTime (UTC HH:MM, present only when a custom start time is set).Read-onlyGet Service Backup Configuration
Returns the backup schedule of a ClickHouse service: backupPeriodInHours (interval between backups), backupRetentionPeriodInHours (how long backups stay available), and backupStartTime (UTC HH:MM, present only when a custom start time is set). On failure result is an error object with status "error" and a message.
Inputs
organizationIdstringrequired- ID of the organization that owns the service
serviceIdstringrequired- ID of the service
clickhouse_get_service_backup_detailsReturns one backup of a ClickHouse service: its status, start and finish times, size in bytes, duration in seconds, type, and, when the backup was exported to a customer bucket, its name and bucket details.Read-onlyGet Service Backup Details
Returns one backup of a ClickHouse service: its status, start and finish times, size in bytes, duration in seconds, type, and, when the backup was exported to a customer bucket, its name and bucket details. Use list_service_backups to find backup ids. On failure result is an error object with status "error" and a message.
Inputs
backupIdstringrequired- ID of the backup
organizationIdstringrequired- ID of the organization that owns the service
serviceIdstringrequired- ID of the service
clickhouse_get_service_detailsReturns a service that belongs to the organization.Read-onlyGet Service Details
Returns a service that belongs to the organization. Supports both ClickHouse services and Managed Postgres services; the service type is detected automatically from the service id and is reported in the `serviceType` field of the response.
Inputs
organizationIdstringrequired- Organization that owns the service. Use the id of an organization returned by get_organizations.
serviceIdstringrequired- 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.
clickhouse_get_services_listLists every ClickHouse and Managed Postgres service in an organization.Read-onlyGet Services List
Lists every ClickHouse and Managed Postgres service in an organization. Each entry has serviceType ("clickhouse" or "postgres"), id, name, provider, region, state, and createdAt; ClickHouse services add version, endpoints, replica and memory settings, idle scaling, IP access list, private endpoints, and encryption fields, while Postgres services add version, VM size, storage size, and HA type. Use the id values with the service-scoped tools. If one service kind cannot be listed, result holds the other kind and partialResults and warning explain what is missing; if both fail, result is an error object.
Inputs
organizationIdstringrequired- ID of the organization whose services are to be listed
clickhouse_list_clickpipesLists the ClickPipes of a ClickHouse service.Read-onlyList Clickpipes
Lists the ClickPipes of a ClickHouse service. Each entry has id, name, description, state, scaling, source and destination configuration, field mappings, and creation and update times; returns an empty array when the service has none. Pass an id to get_clickpipe for the fully typed definition of one pipe. If the lookup fails, result is an error object.
Inputs
organizationIdstringrequired- ID of the organization
serviceIdstringrequired- ID of the service to list ClickPipes for
clickhouse_list_databasesLists the databases in a ClickHouse Cloud service by running SHOW DATABASES as the authenticated identity.Read-onlyList Databases
Lists the databases in a ClickHouse Cloud service by running SHOW DATABASES as the authenticated identity. Returns only database names as an array of strings, with no tables, sizes, or other metadata; call list_tables with one of these names to see its tables and columns. If the query fails or the user lacks passwordless access to the service, result is an error object instead. Idle services are woken automatically and the call returns an error asking you to retry shortly; stopped services are never started automatically and must be started manually.
Inputs
serviceIdstringrequired- No description.
clickhouse_list_postgres_slow_query_patternsLists 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).Read-onlyList Postgres Slow Query Patterns
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.
Inputs
fromDatestringrequired- Inclusive start of the time window. Pass a UTC timestamp with millisecond precision, e.g. 2026-06-08T00:00:00.000Z.
organizationIdstringrequired- Organization that owns the Postgres service. Use the id of an organization returned by get_organizations.
serviceIdstringrequired- Managed Postgres service to analyze. Use the id of a postgres-type service returned by get_services_list.
toDatestringrequired- 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.
appstring- Filter to a Postgres application_name. Pass an empty string to filter to queries with no application_name; omit to include all applications.
dbNamestring- Only include patterns that ran in this database, matching the dbName of returned patterns.
dbOperationstring- Only include patterns with this top-level SQL operation type, such as SELECT, INSERT, UPDATE, DELETE, or UTILITY, matching the dbOperation of returned patterns.
dbUserstring- Only include patterns executed by this database user, matching the dbUser of returned patterns.
limitinteger- Number of patterns per page. Omit for the default page of 20; use offset and the totalCount in the result to page further.
offsetinteger- Number of patterns to skip before the first returned pattern. Omit to start from the top-ranked pattern.
sortBystring- 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_durationavg_durationcall_counttotal_blks_readtotal_cpu_timeerror_countmax_durationp50_durationp95_durationp99_durationtotal_rowstotal_shared_blks_hittotal_wal_bytes sortOrderstring- Sort direction. Omit for descending, which puts the heaviest patterns first.one of
ascdesc
clickhouse_list_service_backupsLists the backups of a ClickHouse service, most recent first.Read-onlyList Service Backups
Lists the backups of a ClickHouse service, most recent first. Each backup has id, status, start and finish times, size in bytes, duration in seconds, type, and, for backups exported to a customer bucket, the backup name and bucket details. On success result has status "success" and a backups array; on failure it is an error object with status "error" and a message.
Inputs
organizationIdstringrequired- ID of the organization
serviceIdstringrequired- ID of the service to list backups for
clickhouse_list_tablesLists the tables of one database on a ClickHouse service by querying system.tables and system.columns as the authenticated identity, optionally narrowed with the like and notLike name patterns.Read-onlyList Tables
Lists the tables of one database on a ClickHouse service by querying system.tables and system.columns as the authenticated identity, optionally narrowed with the like and notLike name patterns. Each table includes its engine and full engine definition, CREATE TABLE statement, sorting and primary keys, view dependencies, row, byte, part, and mark counts, comment, and its columns with type, default kind and expression, and comment. Returns an empty array when nothing matches. If the query fails or the user lacks passwordless access to the service, result is an error object instead. Idle services are woken automatically and the call returns an error asking you to retry shortly; stopped services are never started automatically and must be started manually.
Inputs
databasestringrequired- Name of the database to list tables from
serviceIdstringrequired- The unique identifier of the ClickHouse service
likestring- Optional SQL LIKE pattern to filter tables by name (e.g., "events_%")
notLikestring- Optional SQL LIKE pattern to exclude tables by name
clickhouse_run_postgres_select_queryExecutes a read-only SELECT query against a Postgres service.Read-onlyRun Postgres Select Query
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.
Inputs
organizationIdstringrequired- Organization that owns the Postgres service. Use the id of an organization returned by get_organizations.
querystringrequired- 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.
serviceIdstringrequired- Managed Postgres service to run the query on. Use the id of a postgres-type service returned by get_services_list.
databasestring- Postgres database to run the query in. Omit to use the postgres database.
timeoutSecondsinteger- How long to wait for the query before the call returns a timeout error. Omit to use the server default of 300 seconds.
clickhouse_run_select_queryExecutes a SELECT query against a ClickHouse service.Read-onlyRun Select Query
Executes a SELECT query against a ClickHouse service. Runs a read-only SELECT query on the specified ClickHouse service via the Query API endpoint. This function provides direct access to database content through SQL queries while ensuring that only read operations are permitted. The result size is limited (see maxResultBytes). Prefer aggregations (COUNT, SUM, GROUP BY) and selecting only the columns you need. To read many rows, fetch them in pages with LIMIT and OFFSET, or by a key range such as WHERE id > <last id> ORDER BY id LIMIT n.
Inputs
querystringrequired- A valid ClickHouse SELECT query. Only read-only SELECT statements are permitted. e.g. SELECT * FROM my_table LIMIT 10
serviceIdstringrequired- The unique identifier of the ClickHouse service
maxResultBytesinteger- Largest result, in bytes of the returned JSON, before the call fails with a too-large error. Omit to use the default of 1048576 bytes. Raise it, up to 8388608 bytes, if needed. For more rows than that, read them in pages with LIMIT and OFFSET, or by a key range.
timeoutSecondsinteger- Query timeout in seconds. Default: 300 (5 min), max: 3600 (1 hour). Use lower values for simple queries.
No tools match.
Workflows
Get your service ID
Every ClickHouse tool requires a serviceId. Fetch it first by listing the services in your organization.
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);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.
// List databasesconst dbs = await actions.executeTool({ toolName: 'clickhouse_list_databases', connector: 'clickhouse', identifier: 'user_123', toolInput: { serviceId: '<your-service-id>' },});
// List tables in a databaseconst 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);# List databasesdbs = actions.execute_tool( tool_name="clickhouse_list_databases", connection_name="clickhouse", identifier="user_123", tool_input={"serviceId": "<your-service-id>"},)
# List tables in a databasetables = 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.
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);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"])Check organization costs
Retrieve billing and usage data for a ClickHouse Cloud organization over a date range (max 31 days per request).
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);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.
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);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"])