keboola/mcp-server
Model Context Protocol (MCP) Server for the Keboola Platform
75e7fc4266b4keboola-mcp-server1.120.1 in pyproject.tomlcom.keboola/mcpPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
Prompt Integrity is not analysed and has no number.
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- Prompt Integrity: no tool description could be read from the code
- Some paths pass through more than 8 functions one inside another; the scanner stops there
- In 439 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 13 of 69 tools, prompts and resources could not be followed through the code
- 4 places in the code register tools whose names are computed at run time; how many tools that makes cannot be read from the code
- 13 tools, prompts and resources registered only in the repository's tests are not counted on this page
Top risks in plain words
- INFONo published risk: no tool declared to run commands, files, addresses or queries of the caller's choice, no known vulnerability in a production package, no advisory. Not every path through the code could be followed. Code findings appear here only after a person has verified them.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 50 tools, 6 prompts. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
add_config_row, create_conditional_flow, create_config, create_flow, create_project, create_sql_transformation and 16 moreadd_config_row, create_conditional_flow, create_config, create_flow, create_python_js_data_app_draft, create_python_js_data_app_git_credential and 18 morecreate_project, get_accessible_projects, set_project_scopecreate_project, get_accessible_projects, set_project_scopecreate_project, get_accessible_projects, set_project_scopeNo tool was seen to: start other programs on the machine.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files22 tools · add_config_row, create_conditional_flow, create_config +19
Tool annotations
45 of 56 tools declare annotations. readOnlyHint 22, destructiveHint 12, idempotentHint 25, openWorldHint 3.
Tools, prompts and resources (56: 50 tools, 6 prompts)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
analyze_project_structureprompt Generate a comprehensive analysis prompt for a Keboola project's structure.
Generate a comprehensive analysis prompt for a Keboola project's structure.
This prompt analyzes the project's components, data flow, buckets, tables,
and configurations to provide insights into capabilities and applications.component_usage_summaryprompt Generate a comprehensive summary of all components and their usage patterns.
Generate a comprehensive summary of all components and their usage patterns.
One-click overview of project components, configurations, and usage analytics.create_project_documentationprompt Generate comprehensive project documentation automatically.
Generate comprehensive project documentation automatically.
One-click documentation creation for the entire Keboola project.data_quality_assessmentprompt Generate a comprehensive data quality assessment for all project data.
Generate a comprehensive data quality assessment for all project data.
One-click analysis of data quality across all buckets and tables.error_analysis_reportprompt Generate an analysis of recent errors and failures across the project.
Generate an analysis of recent errors and failures across the project.
One-click error analysis with troubleshooting recommendations.project_health_checkprompt Generate a comprehensive health check analysis for the entire Keboola project.
Generate a comprehensive health check analysis for the entire Keboola project.
This one-click prompt analyzes project health, identifies issues, and provides recommendations.(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
add_config_rowtool Creates a component configuration row in the specified configuration_id, using the specified name,FilesNetworkoutside text
Creates a component configuration row in the specified configuration_id, using the specified name,
component ID, configuration JSON, and description.
BEFORE CALLING - REQUIRED STEPS:
1. Call `get_components([component_id])` to retrieve the component's `configuration_row_schema`.
2. Read `configuration_row_schema.required` to find ALL mandatory top-level fields.
3. Call `get_config_examples(component_id)` to see real-world row parameter examples.
4. Populate `parameters` with every required field before calling this tool.
Skipping these steps will cause a schema validation error.
USAGE:
- Use when you want to create a new row configuration for a specific component configuration.
WHEN NOT TO USE:
- `keboola.orchestrator` / `keboola.flow` → use `create_flow` / `create_conditional_flow`
<!-- directory:omit -->
- `keboola.data-apps` → use `modify_python_js_data_app` / `modify_streamlit_data_app` / `deploy_data_app`
<!-- /directory:omit -->
<!-- directory:only -->
- `keboola.data-apps` → use `modify_streamlit_data_app` / `deploy_data_app`
<!-- /directory:only -->
- `keboola.snowflake-transformation` / `keboola.google-bigquery-transformation` → use `create_sql_transformation`
EXAMPLES:
- user_input: `Create a new configuration row for component X with these settings`
- set the component_id, configuration_id and configuration parameters accordingly
- returns the created component configuration if successful.create_conditional_flowtool Creates a new conditional flow configuration using `keboola.flow`.FilesNetworkoutside text
Creates a new conditional flow configuration using `keboola.flow`.
PRE-REQUISITES:
- Always use `get_flow_schema` with flow_type="keboola.flow" and review `get_flow_examples` if unknown
- Gather component configuration IDs for all tasks you include (for data apps, their `data_app_id`)
RULES:
- `phases` and `tasks` must follow the keboola.flow schema; each entry needs `id` and `name`
- Exactly one entry phase (no incoming transitions); all phases must be reachable
- Connect phases via `next` transitions; no cycles or dangling phases; empty `next` means flow end
- Task/phase failures already stop the flow; add retries/conditions only if the user requests them
- Always share the returned links with the user
- Run a data app from a flow with a `keboola.data-app-control` task whose `configData` is
`{"parameters": {"appId": "<data_app_id>"}}` (`data_app_id` from `get_data_apps`), with no `configId`; never use
`keboola.data-apps` + `configId`. Each run restarts the app with a new build and a new token, or starts it if it
is stopped; add `"forceRestart": false` to the parameters only if the user wants a running app left as it is
WHEN TO USE:
- Flows needing branching, conditions, retries, or notifications
- Default choice when user simply says "create a flow," unless they explicitly want legacy orchestrator behaviorcreate_configtool Creates a root component configuration using the specified name, component ID, configuration JSON, and description.FilesNetworkoutside text
Creates a root component configuration using the specified name, component ID, configuration JSON, and description.
Not for SQL transformations (`keboola.snowflake-transformation` / `keboola.google-bigquery-transformation`),
data apps (`keboola.data-apps`) or flows — use the dedicated tools (see WHEN NOT TO USE). This IS the tool for
Python (`keboola.python-transformation-v2`), R (`keboola.r-transformation-v2`) and DuckDB
(`keboola.duckdb-transformation`) transformations.
BEFORE CALLING - REQUIRED STEPS:
1. Call `get_components([component_id])` to retrieve the component's `configuration_schema`.
2. Read `configuration_schema.required` to find ALL mandatory top-level fields.
3. Call `get_config_examples(component_id)` to see real-world parameter examples.
4. Populate `parameters` with every required field before calling this tool.
Skipping these steps will cause a schema validation error.
USAGE:
- Use when you want to create a new root configuration for a specific component.
WHEN NOT TO USE:
- `keboola.orchestrator` / `keboola.flow` → use `create_flow` / `create_conditional_flow`
<!-- directory:omit -->
- `keboola.data-apps` → use `modify_python_js_data_app` / `modify_streamlit_data_app` / `deploy_data_app`
<!-- /directory:omit -->
<!-- directory:only -->
- `keboola.data-apps` → use `modify_streamlit_data_app` / `deploy_data_app`
<!-- /directory:only -->
- `keboola.snowflake-transformation` / `keboola.google-bigquery-transformation` → use `create_sql_transformation`
EXAMPLES:
- user_input: `Create a new configuration for component X with these settings`
- set the component_id and configuration parameters accordingly
- returns the created component configuration if successful.create_flowtool Creates a new legacy (non-conditional) flow using `keboola.orchestrator`.FilesNetworkoutside text
Creates a new legacy (non-conditional) flow using `keboola.orchestrator`.
PRE-REQUISITES:
- Always use `get_flow_schema` with flow_type="keboola.orchestrator" and review `get_flow_examples` if unknown
- Collect component configuration IDs for every task you include (for data apps, their `data_app_id`)
RULES:
- `phases` and `tasks` must follow the orchestrator schema; each entry must include `id` and `name`
- Phases run sequentially; tasks inside a phase run in parallel
- Use `dependsOn` on phases to sequence them; reference other phase ids
- Always share the returned links with the user
- Run a data app from a flow with a `keboola.data-app-control` task whose `configData` is
`{"parameters": {"appId": "<data_app_id>"}}` (`data_app_id` from `get_data_apps`), with no `configId`; never use
`keboola.data-apps` + `configId`. Each run restarts the app with a new build and a new token, or starts it if it
is stopped; add `"forceRestart": false` to the parameters only if the user wants a running app left as it is
WHEN TO USE:
- Simple/linear orchestrations without branching or conditions
- ETL/ELT pipelines where phases just need ordering and parallel task groupscreate_oauth_urltool Generates an OAuth authorization URL for a Keboola component configuration.
Generates an OAuth authorization URL for a Keboola component configuration.
When using this tool, be very concise in your response. Just guide the user to click the
authorization link.
Note that this tool should be called specifically for the OAuth-requiring components after their
configuration is created e.g. keboola.ex-google-analytics-v4 and keboola.ex-gmail.create_projecttool Creates a brand-new Keboola project for a session that has no Keboola credentials yet, andFilesCredentialsEnv varsSensitive pathsoutside text
Creates a brand-new Keboola project for a session that has no Keboola credentials yet, and
signs this session in to it.
Use this when the user has no Keboola project to work in -- it is how a first-time user gets
started without leaving the conversation. Whether a given caller may create a project is
Keboola's decision, not this tool's; on a locally run server it does refuse when the session is
already signed in, because that server keeps only one session per stack and would overwrite it.
Not every Keboola stack offers this -- it is gated by a stack feature. On a stack without it the
tool says so and the user has to bring their own project instead; that is a fact about the
stack, so do not retry.
The project starts out owned by nobody. Show the user the returned `confirm_url` and tell them
to open it: signing in there makes the project permanently theirs. Until they do, the project is
temporary and Keboola may reclaim it, and once they do, the session created here is revoked and
they continue with their own login. Data tools work against the new project in the meantime --
that is the point: the agent can build in the project before anyone signs anything.
When the result carries a `scope_token`, resend it as the "scope_token" argument on every later
tool call in this conversation: that is what keeps the session signed in to the new project.create_python_js_data_app_drafttool Creates a draft of a python-js data app: its own workload on its own host, serving `git_branch`.Network
Creates a draft of a python-js data app: its own workload on its own host, serving `git_branch`.
- A push to `git_branch` reaches the running draft within seconds; it needs no deploy.
- The draft runs in dev mode with a copy of the prod app's configuration from this moment. It never takes
production traffic.
- It suspends itself after 15 minutes without requests and wakes on the next one.
- It outlives a prod deployment. Delete it with `delete_python_js_data_app_draft` when the work is done.
- The tool waits until the draft has a `url`; `run_state` reaches `running` 1–2 minutes later.
- Not idempotent: every call starts another draft. When a call fails or times out, look for the draft in
`get_data_apps` before calling again.
Errors:
- branch "does not exist": push the branch first, then call again.
- "already serves branch": continue that draft instead; a closed preview pane never means it is gone.
- "not available on this Keboola stack": tell the user.create_python_js_data_app_git_credentialtool Mints an HTTPS token for the git repo of a python-js **prod** data app.Network
Mints an HTTPS token for the git repo of a python-js **prod** data app.
- Returns `git_clone_url` (token embedded) and the raw `secret`.
- Call it after creating a prod app, or when the token you had is gone. Always pass the prod app's
`configuration_id`: drafts use branches of the prod app's repo.
- Keboola-managed repo: the secret is shown only once. Each call mints another `readWrite` token; existing
ones stay valid.
- Customer GitHub repo (organization auth): the token expires at `expires_at`, in about an hour. On a push
that fails with 401 or 403, call this tool again and `git remote set-url origin <new git_clone_url>`.
Never ask the user for a GitHub token.
- Rejected for Streamlit apps and for repos connected with a personal token or SSH key.create_sql_transformationtool Creates an SQL transformation using the specified name, SQL query following the current SQL dialect, a detailedFilesNetworkoutside text
Creates an SQL transformation using the specified name, SQL query following the current SQL dialect, a detailed
description, and a list of created table names.
CONSIDERATIONS:
- By default, SQL transformation must create at least one table to produce a result; omit only if the user
explicitly indicates that no table creation is needed.
- Each SQL code block must include descriptive name that reflects its purpose and group one or more executable
semantically related SQL statements.
- Each SQL query statement within a code block must be executable and follow the current SQL dialect.
- Use delimited identifiers for the current SQL dialect for all identifiers and FQN references.
- When referring to the input tables within the SQL query, use fully qualified table names, which can be
retrieved using appropriate tools.
- When creating a new table within the SQL query (e.g. CREATE TABLE ...): use only the table name with
delimited identifiers, without the fully qualified path; add the plain table name without delimiters
to the `created_table_names` list.
- Unless otherwise specified by user, transformation name and description are generated based on the SQL query
and user intent.
- If there are 20 or more SQL transformations in the project, consider organizing them with a folder: existing
folder names are surfaced in the response's change_summary — use one of them or create a new one.
USAGE:
- Use when you want to create a new SQL transformation.
<!-- directory:omit -->
- This is THE tool for creating `keboola.snowflake-transformation` and `keboola.google-bigquery-transformation`
components (do NOT use `create_config` for these); the transformation ID is derived automatically from the
workspace SQL dialect.
- Snowflake/BigQuery only. For Python, R, or DuckDB transformations, use `create_config` with the appropriate
`component_id` instead — this tool cannot create them.
<!-- /directory:omit -->
<!-- directory:only -->
- This is THE tool for creating `keboola.snowflake-transformation` and `keboola.google-bigquery-transformation`
components; the transformation ID is derived automatically from the workspace SQL dialect.
- Snowflake/BigQuery only: this tool cannot create Python, R, or DuckDB transformations.
<!-- /directory:only -->
EXAMPLES:
- user_input: `Can you create a new transformation out of this sql query?`
- set the sql_code_blocks to the query, and set other parameters accordingly.
- returns the created SQL transformation configuration if successful.
- user_input: `Generate me an SQL transformation which [USER INTENT]`
- set the sql_code_blocks to the query based on the [USER INTENT], and set other parameters accordingly.
- returns the created SQL transformation configuration if successful.create_streamtool Creates a Data Stream: a source with an endpoint receiving events and the sinks storing them in tables.
Creates a Data Stream: a source with an endpoint receiving events and the sinks storing them in tables.
- source_type="http": one sink into `table_id` with the given `columns`. Send events as HTTP POST
requests (any body, JSON recommended) to the returned `endpoint_url`.
- source_type="otlp": three sinks storing logs, metrics and traces into the tables
"in.c-otlp-<source_id>.logs|metrics|traces". Configure the OpenTelemetry SDK/Collector OTLP/HTTP exporter:
OTEL_EXPORTER_OTLP_ENDPOINT=<otlp_base_url> and OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer <otlp_secret>".
Rows appear in the tables in batches, typically within a few minutes.
The returned endpoint embeds a secret: give it only to the user. If Data Streams are not enabled in the
project, the tool fails with the project feature key and a link to the Data Streams page where the user
can request the feature. Tell the user how to request it.delete_python_js_data_app_drafttool Deletes a draft of a python-js data app. It never touches the prod app or the git repository.Networkdestructive (declared)
Deletes a draft of a python-js data app. It never touches the prod app or the git repository.
- With `draft_id`: stops and removes that draft. Its branch stays.
- Without `draft_id`: deletes the legacy draft `configuration_id` (its data app and its configuration).
Refuses prod apps and Streamlit apps.
- It runs no git: deleting the branch on the remote is up to you.docs_querytool Answers a question using the Keboola documentation as a source.read-only (declared)
Answers a question using the Keboola documentation as a source.
find_component_idtool Returns list of component IDs that match the given query.read-only (declared)
Returns list of component IDs that match the given query.
WHEN TO USE:
- Use when you want to find the component for a specific purpose.
USAGE EXAMPLES:
- user_input: "I am looking for a salesforce extractor component"
→ Returns a list of component IDs that match the query, ordered by relevance/best match.get_accessible_projectstool Lists the Keboola projects the current login can access across the stack, each with its SQLFilesCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Lists the Keboola projects the current login can access across the stack, each with its SQL
dialect and organization.
Only call this when a data tool call has actually failed asking you to confirm a project scope --
the session may already be pre-scoped (e.g. the user chose specific projects at `login` time), in
which case data tools already work and this call would just be extra, unnecessary API traffic.
When a scope genuinely is needed: present the projects, ask whether the user wants to work across
all of them or a subset, then call `set_project_scope` with their choice. This tool compacts
several API calls (token introspection plus a per-project token verify for the SQL dialect and
organization) into one result, so the assistant does not need a separate get_project_info call per
project. Pass with_llm_instruction=true on the first call to also receive the base working
instructions grouped by dialect.get_bucketstool Lists buckets or retrieves full details of specific buckets, including descriptions,FilesNetworkoutside textread-only (declared)
Lists buckets or retrieves full details of specific buckets, including descriptions,
lineage references (created/updated by), and links.
WHEN NOT TO USE:
- Do NOT call with `bucket_ids=[]` just to find a bucket by name. Use `search` with
item_types=["bucket"] instead.
- Only use `bucket_ids=[]` when you need a complete inventory of all buckets in the project.
EXAMPLES:
- `bucket_ids=[]` → summaries of all buckets in the project
- `bucket_ids=["id1", ...]` → full details of the buckets with the specified IDsget_componentstool Retrieves detailed information about one or more components by their IDs.read-only (declared)
Retrieves detailed information about one or more components by their IDs.
RETURNS FOR EACH COMPONENT:
- Component metadata (name, type, description)
- Documentation and usage instructions
- Configuration JSON schema (required for creating/updating configurations)
- Links to component dashboard in Keboola UI
Components that cannot be retrieved are listed in `not_found` (missing) or `errors` (server-side, retryable);
the call fails only if none of them can be retrieved.
WHEN TO USE:
- Before creating a new configuration: fetch the component to get its configuration schema
- Before updating a configuration: fetch the component to understand valid configuration options
- When user asks about component capabilities or documentation
PREREQUISITES:
- You must know the component_id(s). If unknown, first use `find_component_id` or `docs` tool to discover them.
EXAMPLES:
- User: "Create a generic extractor configuration"
→ First call `find_component_id` to get the component_id, then call this tool to get the schema
- User: "What options does the Snowflake writer support?"
→ Call this tool with the Snowflake writer component_id to retrieve its documentation and schemaget_config_examplestool Retrieves sample configuration examples for a specific component.read-only (declared)
Retrieves sample configuration examples for a specific component.
USAGE:
- Use before calling `create_config` or `add_config_row` to understand the expected parameters structure.
- Use when you want to see example configurations for a specific component.
EXAMPLES:
- user_input: `Show me example configurations for component X`
- set the component_id parameter accordingly
- returns a markdown formatted string with configuration examplesget_configstool Retrieves component configurations in the project with optional filtering.read-only (declared)
Retrieves component configurations in the project with optional filtering.
Can list summaries of multiple configurations (grouped by component) or retrieve full details
for specific configurations.
Returns a list of components, each containing:
- Component metadata (ID, name, type, description)
- Configurations for that component (summaries by default, full details if requested)
- Links to the Keboola UI
PARAMETER BEHAVIOR:
- If configs is provided (non-empty): Returns FULL details ONLY for those configs.
Configs that cannot be retrieved are listed in `not_found` (missing) or `errors` (server-side, retryable);
the call fails only if none of them can be retrieved.
- Else if component_ids is provided (non-empty): Lists config summaries for those components.
- Else: Lists configs based on component_types (all types if empty).
WHEN TO USE:
- For listing: Use component_types/component_ids.
- For details: Use configs (can handle multiple).
WHEN NOT TO USE:
- Do NOT list all configs just to find a configuration by name. Use `search` with
item_types=["configuration", "transformation"] instead.
- Only use broad listing (empty component_types and component_ids) when you need
a complete inventory of all configurations in the project.
EXAMPLES:
- List all configs (summaries): component_types=[], component_ids=[]
- List extractors (summaries): component_types=["extractor"]
- Get details for specific configs:
configs=[{"component_id": "keboola.ex-db-mysql", "configuration_id": "12345"}]get_data_app_preview_linktool Creates a short-lived link that opens a python-js draft in a browser without the app's login.Networkread-only (declared)
Creates a short-lived link that opens a python-js draft in a browser without the app's login.
- With `draft_id` it opens that draft; without it, a legacy draft running in dev mode.
- Open `url` in a real browser before `link_expires_at` (about 60 s): a browser tool, or
a headless browser CLI run from your shell. Do not fetch it with an HTTP client or curl: only a browser
can turn it into a session.
- The browser session then keeps working for hours, so do not call this tool before every check. Call it
again only when the app shows its login page or the link expired unopened.
- Never type a password into the app's login page, and never ask the user for one.
- Do not share `url`: do not show it to the user and do not put it into files, commits, messages, or any
tool or any command other than the one that opens the browser.
- Errors say what to do; never switch a production app to dev mode.get_data_appstool Lists summaries of data apps in the project given the limit and offset or gets details of a data apps byNetworkread-only (declared)
Lists summaries of data apps in the project given the limit and offset or gets details of a data apps by
providing their configuration IDs.
WHEN NOT TO USE:
- Do NOT list all data apps just to find one by name. Use `search` with
item_types=["data-app"] instead.
- Only list all data apps when you need a complete inventory.
Considerations:
- If configuration_ids are provided, the tool will return details of the data apps by their configuration IDs.
- If no configuration_ids are provided, the tool will list all data apps in the project given the limit and offset.
- Data App detail contains configuration, metadata, source code, links, and deployment info along with the latest
data app logs to investigate in-app errors. The logs may be updated after opening the data app URL.
- `deployment_info.last_run` carries the outcome of the most recent deployment attempt. For an app
that fails to start, check its `failure_reason`/`failure_message` FIRST — they cover setup-phase
failures (e.g. invalid secrets, git clone errors, failing setup scripts) that happen before the
container starts and therefore never appear in the regular logs.
- `repo_url` is set only on the detail path (`configuration_ids`), never in the inventory list.
- For a python-js **prod** app the detail also lists its `drafts` (with `draft_id`, `git_branch`, `url`,
`run_state`) and its `legacy_drafts` (separate draft configurations).get_flow_examplestool Retrieves examples of valid flow configurations.FilesNetworkoutside textread-only (declared)
Retrieves examples of valid flow configurations.
PRE-REQUISITES:
- Unknown examples for the target flow type: `keboola.flow` (conditional) or `keboola.orchestrator` (legacy) to help
build the specific flow configuration by mirroring the structure/fields.
RULES:
- Conditional-flow examples require conditional flows to be enabled; otherwise use legacy orchestrator examples
- Present the examples or cite unavailability to the userget_flow_schematool Returns the JSON schema for the given flow type (markdown).FilesNetworkoutside textread-only (declared)
Returns the JSON schema for the given flow type (markdown).
PRE-REQUISITES:
- Unknown schema for the target flow type: `keboola.flow` (conditional) or `keboola.orchestrator` (legacy)
RULES:
- Projects without conditional flows enabled cannot request `keboola.flow` schema
- Use the returned schema to shape `phases` and `tasks` for `create_flow` / `create_conditional_flow` /
`update_flow`get_flowstool Lists flows or retrieves full details for specific flows.read-only (declared)
Lists flows or retrieves full details for specific flows.
WHEN NOT TO USE:
- Do NOT call with `flow_ids=[]` just to find a flow by name. Use `search` with
item_types=["flow"] instead.
- Only use `flow_ids=[]` when you need a complete list of all flows in the project.
OPTIONS:
- `flow_ids=[]` → summaries of all flows in the project
- `flow_ids=["id1", ...]` → full details (including phases/tasks) for those flows; flows that cannot be
retrieved are listed in `not_found` (missing) or `errors` (server-side, retryable), and the call fails
only if none of them can be retrieved; a flow whose schedules cannot be read is still returned, with
`schedules` unset and `schedules_error` saying why (so it is not the same as a flow with no schedules)get_jobstool Retrieves job execution information from the Keboola project.read-only (declared)
Retrieves job execution information from the Keboola project.
CONTEXT:
Jobs in Keboola are execution records of components (extractors, transformations, writers, flows).
Each job represents a single run with its status, timing, configuration, and results.
TWO MODES OF OPERATION (controlled by job_ids parameter):
MODE 1: GET DETAILS FOR SPECIFIC JOBS (job_ids is non-empty)
- Provide one or more job IDs: job_ids=["12345", "67890"]
- Returns: FULL details for each job including status, config_data, results, timing, and metadata
- Jobs that cannot be retrieved are listed in `not_found` (missing) or `errors` (server-side, retryable);
the call fails only if none of them can be retrieved
- Ignores: All filtering/sorting parameters (status, component_id, config_id, limit, offset, sort_by, sort_order)
- Use when: You know specific job IDs and need complete information about them
MODE 2: LIST/SEARCH JOBS (job_ids is empty)
- Leave job_ids empty: job_ids=[]
- Returns: SUMMARY list of jobs (id, status, component_id, config_id, timing only - no config_data or results)
- Supports: Filtering by status/component_id/config_id, pagination with limit/offset, sorting
- Use when: You need to find jobs, see recent executions, or monitor job history
DECISION GUIDE:
- Start with MODE 2 (list) to find jobs → then use MODE 1 (details) if you need full information
- If you already know job IDs → use MODE 1 directly
- For monitoring/browsing → use MODE 2 with filters
NOTE: Jobs cannot be found by name using the `search` tool. However, always use the filtering
parameters (status, component_id, config_id) to narrow results rather than listing all jobs
with no filters. If you need to find jobs for a specific configuration but only know its name,
first use `search` to find the configuration ID, then filter jobs by that config_id.
COMMON WORKFLOWS:
1. Find failed jobs: job_ids=[], status="error" → identify problematic job IDs → get details with MODE 1
2. Check recent runs: job_ids=[], component_id="...", limit=10 → see latest executions
3. Monitor specific job: job_ids=["123"] → poll for status and results
4. Troubleshoot config: job_ids=[], component_id="...", config_id="...", status="error" → find which runs failed
EXAMPLES:
MODE 1 - Get full details:
- job_ids=["12345"] → detailed info for job 12345
- job_ids=["12345", "67890"] → detailed info for multiple jobs
MODE 2 - List/search jobs:
- job_ids=[] → list latest 100 jobs (default)
- job_ids=[], status="error" → list only failed jobs
- job_ids=[], status="processing" → list currently running jobs
- job_ids=[], component_id="keboola.ex-aws-s3" → list jobs for S3 extractor
- job_ids=[], component_id="keboola.ex-aws-s3", config_id="12345" → list jobs for specific configuration
- job_ids=[], limit=50, offset=100 → pagination (skip first 100, get next 50)
- job_ids=[], sort_by="endTime", sort_order="asc" → oldest completed first
- job_ids=[], sort_by="durationSeconds", sort_order="desc" → longest running first
LOG RETRIEVAL (only in MODE 1):
- Set include_logs=True to fetch execution logs from the Storage API events
- Logs are fetched using the job's runId and returned in chronological order
- Use log_tail_lines to control how many recent log events to return (default 50, max 500)
- Use log_event_types to filter by event type: ["error"] for just errors, ["error", "warn"] for errors and warnings
- If a job has no runId (e.g., not yet started), logs will be None
- If the log events cannot be read, the job is still returned: logs will be None and logs_error says why
EXAMPLES WITH LOGS:
- job_ids=["12345"], include_logs=True → job details + last 50 log events
- job_ids=["12345"], include_logs=True, log_event_types=["error"] → job details + only error events
- job_ids=["12345"], include_logs=True, log_tail_lines=200 → job details + last 200 log eventsget_project_infotool Retrieves structured information about the current project,FilesNetworkoutside textread-only (declared)
Retrieves structured information about the current project,
including essential context and base instructions for working with it
(e.g., transformations, components, workflows, and dependencies).
Always call this tool at least once at the start of a conversation
to establish the project context before using other tools. Reports on exactly one project;
pass `project_id` to pick which when the session is scoped to 2+ projects.get_semantic_contexttool Loads semantic objects grouped by semantic object type.read-only (declared)
Loads semantic objects grouped by semantic object type.
CONSIDERATIONS:
- If a selection has empty `ids`, the tool returns all objects of that type in compact form.
- If a selection has non-empty `ids`, the tool returns only those specific objects with full attributes.
- `semantic_model_ids` optionally narrows the lookup to specific semantic models.
- An object returned here carries `scope` ("project", "organization", or "targeted"), `project_id`
(the project it was created in -- present regardless of scope), `source_project_id` (which
project an "organization"-scope object came from, if known), and `target_project_ids` (the
sibling projects granted read access, for "targeted" scope). This is reported only for an
object that appears in the current project's listing or that was loaded by id -- an
"organization"-scope object owned by another project is not surfaced by the listing path
today, only via a direct id lookup. `scope` describes visibility of the metastore object
itself, not whether its underlying Keboola Storage table is actually reachable from every
project that can see it -- a "targeted"/"organization" object's data may still need its
bucket separately shared and linked (`get_shared_buckets`/`link_shared_bucket`) before a
query against it will work outside the owning project. Pass `resolve_data_location=True` to
check this directly instead of inferring it from scope alone.
- An object's `scope_elevation_requested_at` being set means a project has asked an
organization admin to promote it from "project" to "organization" scope, and the request is
still pending. Treat this as a forward-looking signal: once approved, the object (a
semantic-model's promotion also carries its datasets' underlying tables along) becomes
visible org-wide, which may require separately sharing the physical data too -- promotion
alone does not do that automatically.
WHEN TO USE:
- When you already know IDs of the semantic objects you want to load and want to inspect them in detail.
- When you want to list all semantic objects of certain types or specific semantic models.
- When you want to list semantic models.
WHEN NOT TO USE:
- When you need to discover semantic objects.
EXAMPLES:
- List all semantic models:
`semantic_objects=[{"object_type": "semantic-model"}]`
- List semantic datasets and metrics for specific semantic models:
`semantic_objects=[{"object_type": "semantic-dataset"}, {"object_type": "semantic-metric"}],`
`semantic_model_ids=["model-uuid-1", "model-uuid-2"]`
- Get detailed context for specific semantic objects by their id:
`semantic_objects=[{"object_type": "semantic-dataset", "ids": ["dataset-uuid-1"]},`
`{"object_type": "semantic-metric", "ids": ["metric-uuid-1", "metric-uuid-2"]}]`
- List all constraints for specific semantic models:
`semantic_objects=[{"object_type": "semantic-constraint"}], semantic_model_ids=["model-uuid-1"]`get_semantic_schematool Returns JSON schemas for the requested semantic object types.read-only (declared)
Returns JSON schemas for the requested semantic object types.
WHEN TO USE:
- When you want to know the JSON schema of a semantic object type, e.g. before searching something specific.get_shared_bucketstool Lists buckets shared with this project by other Keboola projects that are not necessarilyread-only (declared)
Lists buckets shared with this project by other Keboola projects that are not necessarily
linked into this project yet (the Data Catalog "Shared with me" view). Use this to answer
"what data is shared with this project?" or "what could I link?" — `get_buckets` only
returns buckets already in this project (including already-linked ones).
Results are paginated (`limit`/`offset`) because the number of shared buckets can be large
for projects in big organizations — always check `total_count` and the `message` to see
whether more results exist, and page through with `offset` rather than assuming a single
call returns everything.
Use `link_shared_bucket` to link a shared bucket returned here into this project.get_streamstool Retrieves the Data Streams in the project: sources receiving events and the sinks writing them to tables.read-only (declared)
Retrieves the Data Streams in the project: sources receiving events and the sinks writing them to tables.
Data Streams receive events over HTTP (webhooks, apps) or OTLP (OpenTelemetry logs/metrics/traces) and
store them in Storage tables in near real time, without any component configuration.
Each stream includes its `endpoint_url` (with the secret embedded) and, for OTLP, `otlp_base_url` plus
`otlp_secret`. Give these only to the user who asked; they authenticate writes into the project.
Sessions with read-only access get them hidden (`secret_redacted=true`).
If Data Streams are not enabled in the project, the tool fails with the project feature key and a link to
the Data Streams page where the user can request the feature. Tell the user how to request it.
EXAMPLES:
- source_ids=[] -> all Data Streams with their sinks and endpoints
- source_ids=["github-webhooks"] -> only that streamget_tablestool Lists tables in buckets or retrieves full details of specific tables, including fully qualified database name,FilesNetworkoutside textread-only (declared)
Lists tables in buckets or retrieves full details of specific tables, including fully qualified database name,
column definitions, lineage references (created/updated by) and links.
WHEN NOT TO USE:
- Do NOT list tables across buckets just to find a table by name. Use `search` with
item_types=["table"] instead — it also matches column names and descriptions.
- Only use `bucket_ids` listing when you need all tables in specific known buckets.
RETURNS:
- With `bucket_ids`: Summaries of tables (ID, name, description, primary key).
- With `table_ids`: Full details including columns, data types, and fully qualified database names.
- With `table_ids` and `include_usage`: Full details plus components / transformations that use the tables
in their input / output mappings. Use only when explicitly needed or evident from context; usage calculation
might be demanding in big projects.
COLUMN DATA TYPES:
- database_native_type: The actual type in the storage backend (Snowflake, BigQuery, etc.)
with precision, scale, and other implementation details
- keboola_base_type: Standardized type indicating the semantic data type. May not always be
available. When present, it reveals the actual type of data stored in the column - for example,
a column with database_native_type VARCHAR might have keboola_base_type INTEGER, indicating
it stores integer values despite being stored as text in the backend.
QUERYABILITY RULE:
- A table is directly queryable via query_data tool only if `fully_qualified_name` is present and non-null
in the response.
- If `fully_qualified_name` is absent or null (e.g. for linked/alias tables from other projects),
the table cannot be queried via SQL from this workspace.
- Do not attempt to construct or guess the FQN — it will not work. In that case,
inform the user of the limitation immediately.
EXAMPLES:
- `bucket_ids=["id1", ...]` → summary info of the tables in the buckets with the specified IDs
- `table_ids=["id1", ...]` → detailed info of the tables specified by their IDs
- `bucket_ids=[]` and `table_ids=[]` → empty list; you have to specify at least one filterlink_shared_buckettool Links a bucket shared with this project (found via `get_shared_buckets`) into this project
Links a bucket shared with this project (found via `get_shared_buckets`) into this project
as a new local bucket, so its tables become directly queryable/joinable like any other
bucket in the project.
Not idempotent: calling this again with the same `target_bucket_name` fails once that name
already exists, so don't retry blindly on error without checking whether the link succeeded.
Note: unlike `get_buckets`, the returned bucket does not participate in this server's
prod/dev branch-shading (its `branch_id` is not resolved) -- linking always targets the
caller's current branch context directly.modify_flowtool Updates an existing flow configuration (either legacy `keboola.orchestrator` or conditional `keboola.flow`) orFilesNetworkoutside textdestructive (declared)
Updates an existing flow configuration (either legacy `keboola.orchestrator` or conditional `keboola.flow`) or
manages schedules for this flow.
PRE-REQUISITES:
- Always use `get_flow_schema` (and `get_flow_examples`) for that flow type you want to update to follow the
required structure and see the examples if unknown
- Only pass `phases`/`tasks` when you want to replace them; omit to keep the existing ones unchanged
RULES (ALL FLOWS):
- `flow_type` must match the stored component id of the flow; do not switch flow types during update
- `phases` and `tasks` must follow the schema for the selected flow type; include at least `id` and `name`
- Tasks must reference existing component configurations (data app tasks an existing `data_app_id`); keep
dependencies consistent
- Run a data app from a flow with a `keboola.data-app-control` task whose `configData` is
`{"parameters": {"appId": "<data_app_id>"}}` (`data_app_id` from `get_data_apps`), with no `configId`; never use
`keboola.data-apps` + `configId`. Each run restarts the app with a new build and a new token, or starts it if it
is stopped; add `"forceRestart": false` to the parameters only if the user wants a running app left as it is
- Always provide a clear `change_description` and surface any links returned in the response to the user
- A flow can have multiple schedules for automation runs. Add/update/remove schedules only if requested.
- When updating a flow or a schedule, specify only the fields you want to update, others will be kept unchanged.
CONDITIONAL FLOWS (`keboola.flow`):
- Maintain a single entry phase and ensure every phase is reachable; connect phases via `next` transitions
- No cycles or dangling phases; failed tasks already stop the flow, so only add retries/conditions if requested
LEGACY FLOWS (`keboola.orchestrator`):
- Phases run sequentially; tasks inside a phase run in parallel; `dependsOn` references other phase ids
- Use `continueOnFailure` or best-effort patterns only when the user explicitly asks for them
WHEN TO USE:
- Renaming a flow, updating descriptions, adding/removing phases or tasks, updating schedules,
adjusting dependencies, or enabling/disabling flow executionmodify_python_js_data_apptool Creates or updates a python-js data app.FilesNetworkoutside textdestructive (declared)
Creates or updates a python-js data app.
- The default type when you can run git; otherwise use `modify_streamlit_data_app`.
- Creates the configuration and a managed git repository (`repo_url`). You deliver code by `git push`
with a token from `create_python_js_data_app_git_credential`. **MCP never runs git**: clone, branch,
commit, push and merge are yours.
- Preview changes in a draft (`create_python_js_data_app_draft`) on a branch; merge an approved branch
into `main`, then `deploy_data_app` serves it.
- Update (`configuration_id`) changes name, description, auth, auto-suspend, storage, Storage access,
image, slug, and an external-git app's branch; code changes go through git. A legacy draft
(`isDraft=true`) can be updated but is no longer created.
- **Customer GitHub repository**: pass `git_repository` with `git_auth='organization'` to deploy a prod
app from the customer's repo. Code goes there through the user's own GitHub access; such an app has no
managed repo, no git credential, no drafts and deploys in production mode only.
- **OIDC** (update of a prod app only): first register the `oidc_callback_url` (returned on create) at the
identity provider, then update with `authentication_type='oidc'` and `oidc`. The user enters the client
secret in the Keboola UI (see `change_summary` while `oidc_setup_required` is true); with
`allowed_roles`, update with `'oidc'` once more after that. Deploy last.
- **Slug**: the slug is the app URL. A never-deployed app's slug follows its name; a deployed app keeps
it unless you pass `slug` (with the user's approval). The new URL applies on the next deploy and the old
one stops working; tell the user. An OIDC app's slug never follows its name; a legacy draft's never changes.modify_streamlit_data_apptool Creates or updates a Streamlit data app.FilesNetworkoutside textdestructive (declared)
Creates or updates a Streamlit data app.
<!-- directory:omit -->
Python-js is the default type for new data apps when you can run git: create them with
`modify_python_js_data_app` (python-js source code is delivered only by `git push`). Use this tool to create
a new app when you cannot run git or when the user asks for Streamlit explicitly, and to update existing
Streamlit apps.
<!-- /directory:omit -->
<!-- directory:only -->
Use this tool to create new data apps and to update existing Streamlit apps. Other data apps cannot be changed here;
tell the user so.
<!-- /directory:only -->
Considerations:
- The `source_code` parameter must be a complete and runnable Streamlit app. It must include a placeholder
`{QUERY_DATA_FUNCTION}` where a `query_data` function will be injected. This function queries the workspace to get
data, it accepts a string of SQL query following current sql dialect and returns a pandas DataFrame with the results
from the workspace.
- The placeholder is substituted only by this tool when it saves the configuration; it is not a platform
feature. A configuration written any other way (e.g. Storage API, CLI) must define `query_data` itself, otherwise
the literal placeholder breaks the app.
- Write SQL queries so they are compatible with the current workspace backend, you can ensure this by using the
`query_data` tool to inspect the data in the workspace before using it in the data app.
- To update an app, pass `configuration_id` and `change_description`.
- After a create or update, ALWAYS call `deploy_data_app(action="deploy", configuration_id=...)`: without it a
new app does not start and a running app keeps the previous code.
- On update, `authentication_type='default'` keeps the existing auth (including OIDC set up elsewhere).
- **OIDC** (update only): first register the `oidc_callback_url` (returned on create) at the identity
provider, then update with `authentication_type='oidc'` and `oidc`. The user enters the client secret in the
Keboola UI (see `change_summary` while `oidc_setup_required` is true); with `allowed_roles`, update with
`'oidc'` once more after that. Deploy last.
SQL & DATA TYPE RULES:
- Use delimited identifiers for the current SQL dialect for all column names and aliases in SQL.
Match the exact identifier case used in SQL when referencing columns in Python code.
- `query_data` RETURNS ALL COLUMNS AS STRINGS regardless of SQL CAST. Always convert types in Python after loading:
`df["col"] = pd.to_numeric(df["col"], errors="coerce").fillna(0)` and
`df["date"] = pd.to_datetime(df["date"], errors="coerce")`.run_jobtool Starts a new job for a given component or transformation.destructive (declared)
Starts a new job for a given component or transformation.
run_sync_actiontool Executes a synchronous action for a component configuration or a component row configuration.destructive (declared)
Executes a synchronous action for a component configuration or a component row configuration.
Effects depend on the component and action; execution can modify external resources.
WHEN TO USE:
- For finding available values of a configuration field
- For validating already configured values (e.g. testing a database connection)
- For listing remote resources such as endpoints, schemas or tablessearchtool Searches for Keboola items (tables, buckets, components, configurations, transformations, flows, data-apps, etc.)FilesNetworkoutside textread-only (declared)
Searches for Keboola items (tables, buckets, components, configurations, transformations, flows, data-apps, etc.)
in the current project and returns matching ID + metadata.
This tool supports two complementary search types:
1) textual
- Searches items by name, server-side (fast, independent of project size).
- Tokenized full-text name matching, case- and diacritics-insensitive. Pass the plain name; do NOT build
regex (rejected). It is NOT typo-corrected — misspellings may not match.
- Prefers the current branch context; when nothing is found there, automatically widens the search to all
branches of the project — such hits carry `branch_id`/`branch_name` so you can tell where they live.
2) config-based
- Searches item configurations (JSON objects) by matching patterns against the configuration values converted
to a string, optionally narrowed by JSON path `scopes`.
- Returns also `match_scopes` with JSON paths and matched patterns per scope.
THIS IS THE PRIMARY DISCOVERY TOOL. Always use it BEFORE any get_* tool when you need to find items
by name or specific configuration content. Do NOT enumerate items with get_buckets, get_tables, get_configs,
get_flows, or get_data_apps just to locate a specific item — use this tool instead.
WHEN TO USE:
- User asks to "find", "locate", or "search for" something by name, keyword, text pattern, configuration content or
value
- User mentions a partial name and you need to find the full item (e.g., "find the customer table")
- User asks "what tables/configs/flows do I have with X in the name?"
- You need to discover items before performing operations on them
- User asks to "list all items with [name] or [configuration value/part] in it"
- User asks where a value, table, component, specific configuration ID, or specific settings is used in components,
data-apps, flows, or transformations
- You need to trace lineage by searching for IDs referenced in configurations, or to find flows using a
specific component, or find usage of a bucket/table in transformations or components, or to find items with
specific parameters.
- User asks to "what is the genesis of this item?" or "explain me business logic of this item?"
HOW IT WORKS:
- Supports two types:
- search_type="textual": tokenized full-text name search, server-side. Names only — descriptions, column
names, IDs and configuration contents are NOT searched (use config-based search for configuration contents,
or get_tables for columns). Matching is case- and diacritics-insensitive but NOT typo-corrected.
- search_type="config-based": matches inside configuration JSON objects, optionally narrowed by JSON path `scopes`
- case-insensitive search
- mode for pattern search: applies to config-based only — `literal` (default) or `regex`. Textual search ignores
`mode` (always full-text) and rejects `regex`.
- Multiple patterns work as OR condition - matches items containing ANY of the patterns
- Each result includes the item's ID, name, creation date, and relevant metadata; the response also carries
`total` and `by_type` counts and the `branch_scope` the hits come from
- textual search prefers the current branch; on zero hits it automatically retries across all branches of the
project and marks the response with branch_scope="all-branches"
- scopes (config-based) narrow matching to specific JSONPath areas within configurations; matching is performed
against the stringified JSON node content in those areas.
- config-based always returns all matched paths per item in `match_scopes` (including matched patterns)
IMPORTANT:
- Always use this tool when the user mentions a name but you don't have the exact ID
- The search returns IDs that you can use with other tools (e.g., get_tables, get_configs, get_flows)
- Results are ordered by the `updated` field, most recent first. `updated` is the item's last update time
when available, or its creation time otherwise (textual/global-search hits expose only the creation time).
- Textual search matches names only, with tokenized full-text matching (case/diacritics-insensitive; not
typo-corrected; no regex). It may not return every item the legacy enumeration did. To find items by
description or by table column, use get_tables; to find items by configuration content, use config-based search.
- For exact ID lookups, use specific tools like get_tables, get_configs, get_flows instead
- Use specific `scopes` only when you know the config structure (schema or real example); otherwise run config-based
search without scopes.
<!-- directory:omit -->
- Use find_component_id and get_configs tools to find configurations related to a specific component
<!-- /directory:omit -->
<!-- directory:only -->
- Use the get_configs tool to find configurations related to a specific component
<!-- /directory:only -->
- If results are too numerous or empty, ask the user to refine their query rather than enumerating all items.
USAGE EXAMPLES:
1) textual search examples:
- user_input: "Find all tables with 'customer' in the name"
→ patterns=["customer"], item_types=["table"]
→ Returns all tables whose name matches "customer"
- user_input: "Search for the sales transformation"
→ patterns=["sales"], item_types=["transformation"]
→ Returns transformations with "sales" in the name
- user_input: "Find items named 'daily report' or 'weekly summary'"
→ patterns=["daily report", "weekly summary"], item_types=[]
→ Returns all items matching any of these patterns
- user_input: "Show me all configurations related to Google Analytics"
→ patterns=["google analytics"], item_types=["configuration"]
→ Returns configurations with matching names
2) config-based search examples:
- user_input: "Find transformations/configs/components referencing table in.c-prod.customers"
-> patterns=["in.c-prod.customers"], item_types=["transformation", "configuration"],
search_type="config-based"
-> No scopes = search whole stringified config; result includes `match_scopes` with exact paths + patterns
- user_input: "Find configurations/transformations (etc.) using specific setting / id anywhere"
-> patterns=["setting", "id"], item_types=["configuration", "transformations"], search_type="config-based",
- user_input: "Find configurations/transformations (etc.) using specific setting / id in parameters"
-> patterns=["setting", "id"], item_types=["configuration", "transformations"], search_type="config-based",
scopes=["parameters"]
- user_input: "Find configurations/transformations (etc.) using specific setting / id in storage"
-> patterns=["setting", "id"], item_types=["configuration", "transformations"], search_type="config-based",
scopes=["storage"]
- user_input: "Find configurations/transformations (etc.) using specific setting / id in authorization"
-> patterns=["setting", "id"], item_types=["configuration", "transformations"], search_type="config-based",
scopes=["parameters.authorization", "authorization"]
- user_input: "Find components/transformations using my_bucket in input or output mappings"
-> patterns=["my_bucket"], item_types=["configuration", "transformation"], search_type="config-based",
scopes=["storage.input", "storage.output"]
-> Returns matches with paths like `storage.input.tables[0].source`, `storage.input.files[0].source`,
or `storage.output.tables[0].destination`
- user_input: "Find flows using configuration ID 01k9cz233cvd1rga3zzx40g8qj"
-> patterns=["01k9cz233cvd1rga3zzx40g8qj"], item_types=["flow"], search_type="config-based",
scopes=["tasks", "phases"]
- user_input: "Find transformations using this table / column / specific code in its script"
-> patterns=["element"], item_types=["transformation"], search_type="config-based",
scopes=["parameters", "storage"]
- user_input: "Find data apps using something in its config / python code / setting"
-> patterns=["something"], item_types=["data-app"], search_type="config-based"
-> Returns data apps where script/config sections contain the keyword and includes `match_scopes`set_project_scopetool Scopes the current session to a set of Keboola projects.FilesCredentialsEnv varsSensitive pathsoutside textread-only (declared)
Scopes the current session to a set of Keboola projects.
Mints a scoped access token (narrowed to `project_ids`, optionally read-only) that is used for the
rest of the conversation. Read-only tools then run against every scoped project in a single call;
write/modify/delete tools take a `project_id` argument naming which scoped project to target (required
once 2+ projects are scoped). Call this when the user states which projects to work on; it can be
called again any time to re-scope.
On most transports the server does not remember this scope between calls: pass the returned
`scope_token` as the `scope_token` argument on every subsequent tool call in this conversation
to keep it in effect. Not needed for a local server or an OAuth-authenticated session, both of
which persist the confirmed scope server-side instead -- `scope_token` is null there.tooltool
No description.
update_configtool Updates an existing root component configuration by modifying its parameters, storage mappings, name or description.FilesNetworkoutside textdestructive (declared)
Updates an existing root component configuration by modifying its parameters, storage mappings, name or description.
Not for SQL transformations (`keboola.snowflake-transformation` / `keboola.google-bigquery-transformation`),
data apps (`keboola.data-apps`) or flows — use the dedicated tools (see WHEN NOT TO USE). This IS the tool for
updating Python (`keboola.python-transformation-v2`), R (`keboola.r-transformation-v2`) and DuckDB
(`keboola.duckdb-transformation`) transformations.
This tool allows PARTIAL parameter updates - you only need to provide the fields you want to change.
All other fields will remain unchanged.
Use this tool when modifying existing configurations; for configuration rows, use update_config_row instead.
WHEN TO USE:
- Modifying configuration parameters (credentials, settings, API keys, etc.)
- Updating storage mappings (input/output tables or files)
- Changing configuration name or description
- Any combination of the above
WHEN NOT TO USE:
- `keboola.orchestrator` / `keboola.flow` → use `update_flow`
<!-- directory:omit -->
- `keboola.data-apps` → use `modify_python_js_data_app` / `modify_streamlit_data_app` / `deploy_data_app`
<!-- /directory:omit -->
<!-- directory:only -->
- `keboola.data-apps` → use `modify_streamlit_data_app` / `deploy_data_app`
<!-- /directory:only -->
- `keboola.snowflake-transformation` / `keboola.google-bigquery-transformation` → use `update_sql_transformation`
PREREQUISITES:
- Configuration must already exist (use create_config for new configurations)
- You must know both component_id and configuration_id
- For parameter updates: Review the component's root_configuration_schema using get_components.
- For storage updates: Ensure mappings are valid for the component type
IMPORTANT CONSIDERATIONS:
- Parameter updates are PARTIAL - only specify fields you want to change
- parameter_updates supports granular operations: set keys, replace strings, remove keys, or append to lists
- Parameters must conform to the component's root_configuration_schema
- Validate schemas before calling: use get_components to retrieve root_configuration_schema
- For row-based components, this updates the ROOT only (use update_config_row for individual rows)
WORKFLOW:
1. Retrieve current configuration using get_configs (to understand current state)
2. Identify specific parameters/storage mappings to modify
3. Prepare parameter_updates list with targeted operations
4. Call update_config with only the fields to changeupdate_config_rowtool Updates an existing component configuration row by modifying its parameters, storage mappings, name, or description.FilesNetworkoutside textdestructive (declared)
Updates an existing component configuration row by modifying its parameters, storage mappings, name, or description.
This tool allows PARTIAL parameter updates - you only need to provide the fields you want to change.
All other fields will remain unchanged.
Configuration rows are individual items within a configuration, often representing separate data sources,
tables, or endpoints that share the same component type and parent configuration settings.
WHEN TO USE:
- Modifying row-specific parameters (table sources, filters, credentials, etc.)
- Updating storage mappings for a specific row (input/output tables or files)
- Changing row name or description
- Any combination of the above
WHEN NOT TO USE:
- `keboola.orchestrator` / `keboola.flow` → use `update_flow`
<!-- directory:omit -->
- `keboola.data-apps` → use `modify_python_js_data_app` / `modify_streamlit_data_app` / `deploy_data_app`
<!-- /directory:omit -->
<!-- directory:only -->
- `keboola.data-apps` → use `modify_streamlit_data_app` / `deploy_data_app`
<!-- /directory:only -->
- `keboola.snowflake-transformation` / `keboola.google-bigquery-transformation` → use `update_sql_transformation`
PREREQUISITES:
- The configuration row must already exist (use add_config_row for new rows)
- You must know component_id, configuration_id, and configuration_row_id
- For parameter updates: Review the component's row_configuration_schema using get_components
- For storage updates: Ensure mappings are valid for row-level storage
IMPORTANT CONSIDERATIONS:
- Parameter updates are PARTIAL - only specify fields you want to change
- parameter_updates supports granular operations: set individual keys, replace strings, or remove keys
- Parameters must conform to the component's row_configuration_schema (not root schema)
- Validate schemas before calling: use get_components to retrieve row_configuration_schema
- Each row operates independently - changes to one row don't affect others
- Row-level storage is separate from root-level storage configuration
WORKFLOW:
1. Retrieve current configuration using get_configs to see existing rows
2. Identify the specific row to modify by its configuration_row_id
3. Prepare parameter_updates list with targeted operations for this row
4. Call update_config_row with only the fields to changeupdate_descriptionstool Updates the description for a Keboola storage item.destructive (declared)
Updates the description for a Keboola storage item.
This tool supports three item types, inferred from the provided item_id:
- bucket: item_id = "in.c-bucket"
- table: item_id = "in.c-bucket.table"
- column: item_id = "in.c-bucket.table.column"
Usage examples (payload uses a list of DescriptionUpdate objects):
- Update a bucket:
updates=[DescriptionUpdate(item_id="in.c-my-bucket", description="New bucket description")]
- Update a table:
updates=[DescriptionUpdate(item_id="in.c-my-bucket.my-table", description="New table description")]
- Update a column:
updates=[DescriptionUpdate(item_id="in.c-my-bucket.my-table.my_column", description="New column description")]update_flowtool Updates an existing flow configuration (either legacy `keboola.orchestrator` or conditional `keboola.flow`).FilesNetworkoutside textdestructive (declared)
Updates an existing flow configuration (either legacy `keboola.orchestrator` or conditional `keboola.flow`).
PRE-REQUISITES:
- Always use `get_flow_schema` (and `get_flow_examples`) for that flow type you want to update to follow the
required structure and see the examples if unknown
- Only pass `phases`/`tasks` when you want to replace them; omit to keep the existing ones unchanged
RULES (ALL FLOWS):
- `flow_type` must match the stored component id of the flow; do not switch flow types during update
- `phases` and `tasks` must follow the schema for the selected flow type; include at least `id` and `name`
- Tasks must reference existing component configurations (data app tasks an existing `data_app_id`); keep
dependencies consistent
- Run a data app from a flow with a `keboola.data-app-control` task whose `configData` is
`{"parameters": {"appId": "<data_app_id>"}}` (`data_app_id` from `get_data_apps`), with no `configId`; never use
`keboola.data-apps` + `configId`. Each run restarts the app with a new build and a new token, or starts it if it
is stopped; add `"forceRestart": false` to the parameters only if the user wants a running app left as it is
- Always provide a clear `change_description` and surface any links returned in the response to the user
CONDITIONAL FLOWS (`keboola.flow`):
- Maintain a single entry phase and ensure every phase is reachable; connect phases via `next` transitions
- No cycles or dangling phases; failed tasks already stop the flow, so only add retries/conditions if requested
LEGACY FLOWS (`keboola.orchestrator`):
- Phases run sequentially; tasks inside a phase run in parallel; `dependsOn` references other phase ids
- Use `continueOnFailure` or best-effort patterns only when the user explicitly asks for them
WHEN TO USE:
- Renaming a flow, updating descriptions, adding/removing phases or tasks, adjusting dependencies,
or enabling/disabling flow executionupdate_project_descriptiontool Updates the description of the current Keboola project.destructive (declared)
Updates the description of the current Keboola project.
update_sql_transformationtool Updates an existing SQL transformation configuration by modifying its SQL code, storage mappings,FilesNetworkoutside textdestructive (declared)
Updates an existing SQL transformation configuration by modifying its SQL code, storage mappings,
name or description.
This tool allows PARTIAL parameter updates for transformation SQL blocks and code - you only need to provide
the operations you want to perform. All other fields will remain unchanged.
Use this for modifying SQL transformations created with create_sql_transformation.
WHEN TO USE:
<!-- directory:omit -->
- SQL transformations only (Snowflake/BigQuery); use update_config for Python/R/DuckDB transformations
<!-- /directory:omit -->
<!-- directory:only -->
- SQL transformations only (Snowflake/BigQuery); it cannot update Python/R/DuckDB transformations
<!-- /directory:only -->
- Modifying SQL queries in transformation (add/edit/remove SQL statements)
- Updating transformation block or code block names
- Changing input/output table mappings for the transformation
- Updating the transformation name or description
- Any combination of the above
PREREQUISITES:
- Transformation must already exist (use create_sql_transformation for new transformations)
- You must know the configuration_id of the transformation
- SQL dialect is determined automatically from the workspace
- CRITICAL: Use get_configs first to see the current transformation structure and get block_id/code_id values
TRANSFORMATION STRUCTURE:
A transformation has this hierarchy:
transformation
└─ blocks[] - List of transformation blocks (each has a unique block_id)
└─ block.name - Descriptive name for the block
└─ block.codes[] - List of code blocks within the block (each has a unique code_id)
└─ code.name - Descriptive name for the code block
└─ code.script - SQL script (string with SQL statements)
Example structure from get_configs:
{
"blocks": [
{
"id": "b0", ← block_id needed for operations (format: b{index})
"name": "Data Preparation",
"codes": [
{
"id": "b0.c0", ← code_id needed for operations (format: b{block_index}.c{code_index})
"name": "Load customers",
"script": "SELECT * FROM customers WHERE status = 'active';"
}
]
}
]
}
PARAMETER UPDATE OPERATIONS:
All operations use block_id and code_id to identify elements (get these from get_configs first).
ID Format:
- block_id: "b0", "b1", "b2", etc. (format: b{index})
- code_id: "b0.c0", "b0.c1", "b1.c0", etc. (format: b{block_index}.c{code_index})
1. BLOCK OPERATIONS:
- add_block: Create a new block in the transformation
{"op": "add_block", "block": {"name": "New Block", "codes": []}, "position": "end"}
- remove_block: Delete an entire block
{"op": "remove_block", "block_id": "b0"}
- rename_block: Change a block's name
{"op": "rename_block", "block_id": "b2", "block_name": "Updated Name"}
2. CODE BLOCK OPERATIONS:
- add_code: Create a new code block within an existing block
{"op": "add_code", "block_id": "b1", "code": {"name": "New Code", "script": "SELECT 1;"}, "position": "end"}
- remove_code: Delete a code block
{"op": "remove_code", "block_id": "b0", "code_id": "b0.c0"}
- rename_code: Change a code block's name
{"op": "rename_code", "block_id": "b1", "code_id": "b1.c2", "code_name": "Updated Name"}
3. SQL SCRIPT OPERATIONS:
- set_code: Replace the entire SQL script (overwrites existing)
{"op": "set_code", "block_id": "b0", "code_id": "b0.c0", "script": "SELECT * FROM new_table;"}
- add_script: Append or prepend SQL to existing script (preserves existing)
{"op": "add_script", "block_id": "b2", "code_id": "b2.c1", "script": "WHERE date > '2024-01-01'",
"position": "end"}
- str_replace: Find and replace text in SQL scripts
{"op": "str_replace", "search_for": "old_table", "replace_with": "new_table", "block_id": "b0",'
"code_id": "b0.c0"}
- Omit code_id to replace in all codes of a block
- Omit both block_id and code_id to replace everywhere
IMPORTANT CONSIDERATIONS:
- Parameter updates are PARTIAL - only the operations you specify are applied
- All other parts of the transformation remain unchanged
- Each SQL script must be executable and follow the current SQL dialect:
- Use delimited identifiers for the current SQL dialect.
- Never mix delimiter styles within a single query.
- Storage configuration is COMPLETE REPLACEMENT - include ALL mappings you want to keep
- Leave updated_description empty to preserve the original description
- SCHEMA CHANGES: Destructive schema changes (removing columns, changing types, renaming columns) require
manually deleting the output table before running the updated transformation to avoid schema mismatch errors.
Non-destructive changes (adding columns) typically do not require table deletion.
WORKFLOW:
1. Call get_configs to retrieve current transformation structure and identify block_id/code_id values
2. Identify what needs to change (SQL code, storage, description)
3. For SQL changes: Prepare parameter_updates list with targeted operations
4. For storage changes: Build complete storage configuration (include all mappings)
5. Call update_sql_transformation with change_description and only the fields to change
EXAMPLE WORKFLOWS:
Example 1 - Update SQL script in existing code block:
Step 1: Get current config
result = get_configs(component_id="keboola.snowflake-transformation", configuration_id="12345")
# Note the block_id (e.g., "b0") and code_id (e.g., "b0.c1") from result
Step 2: Update the SQL
update_sql_transformation(
configuration_id="12345",
change_description="Updated WHERE clause to filter active customers only",
parameter_updates=[
{
"op": "set_code",
"block_id": "b0", # from step 1
"code_id": "b0.c0", # from step 1
"script": "SELECT * FROM customers WHERE status = 'active' AND region = 'US';"
}
]
)
Example 2 - Append a new code block to the second block of an existing transformation:
update_sql_transformation(
configuration_id="12345",
change_description="Added aggregation step",
parameter_updates=[
{
"op": "add_code",
"block_id": "b1", # second block
"code": {
"name": "Aggregate Sales",
"script": "SELECT customer_id, SUM(amount) as total FROM orders GROUP BY customer_id;"
},
"position": "end"
}
]
)
Example 3 - Replace table name across all SQL scripts:
update_sql_transformation(
configuration_id="12345",
change_description="Renamed source table from old_customers to customers",
parameter_updates=[
{
"op": "str_replace",
"search_for": "old_customers",
"replace_with": "customers"
# No block_id or code_id = applies to all scripts
}
]
)
Example 4 - Update storage mappings:
update_sql_transformation(
configuration_id="12345",
change_description="Added new input table",
storage={
"input": {
"tables": [
{
"source": "in.c-main.customers",
"destination": "customers"
},
{
"source": "in.c-main.orders",
"destination": "orders"
}
]
},
"output": {
"tables": [
{
"source": "result",
"destination": "out.c-main.customer_summary"
}
]
}
}
)validate_semantic_querytool Performs best-effort semantic validation of an SQL query against one or more semantic models and compares it withFilesNetworkoutside textread-only (declared)
Performs best-effort semantic validation of an SQL query against one or more semantic models and compares it with
the expected semantic objects provided.
RETURNS:
- `validation_auto_detected`: semantic validation built from objects heuristically detected in the SQL
- `validation_detected_from_expected`: semantic validation built only from explicitly provided expected object IDs
- expected semantic objects that were matched or missing in the auto-detected result
- unexpected auto-detected objects outside the expected semantic scope
LIMITATIONS:
- Detection is heuristic and based on string matching over SQL and semantic metadata.
- The tool does not parse SQL semantically and does not execute the query.
- Auto-detected objects, missing objects, and relationship matches may therefore be imperfect.
- Use the result as a best-effort semantic check, not as a formal proof that the query is correct.
CONSIDERATIONS:
- Prefer calling this tool before executing any SQL that touches semantic objects.
- This tool confirms the SQL dialect, surfaces semantic constraint violations, and provides post-execution checks.
- Only proceed to query_data once this tool returns valid=True and violations is empty. If violations are found,
fix the query first or consider the limitations of this tool.
- Besides constraint findings, `violations` flags SQL that contradicts the model itself: a join between two
datasets on keys their relationship does not define (`join_key_mismatch`, error), and an aggregate that matches
no defined metric (`undefined_metric`, warning).
- Entries under `semantic_models` carry `scope`/`project_id`/`source_project_id`/
`target_project_ids` -- see `get_semantic_context`'s CONSIDERATIONS for what they mean. A
"targeted"/"organization"-scope model does not guarantee the query is actually runnable from
every project that can see it; this tool validates against the semantic layer, not against
whether the underlying Storage tables are reachable here. Pass `resolve_data_location=True` to
check that directly for every used dataset instead of inferring it from scope alone.
WHEN TO USE:
- Before generating or approving a query that should follow a semantic model.
- When you want to validate a SQL query against the semantic objects before executing it using "query_data" tool
or creating a new SQL transformation out of it, especially when investigating data quality issues.
- When you want to verify that a query uses the intended semantic objects.
- When you need to surface semantic business-rule violations or follow-up checks.
EXAMPLES:
- Validate a SQL query against one semantic model:
`sql_query="SELECT SUM(\\"REVENUE\\") FROM ...", semantic_model_ids=["semantic-model-uuid"],`
`expected_semantic_objects=[{"object_type": "semantic-dataset"}]`
- Validate a cross-model query against two semantic models:
`sql_query="SELECT * FROM ...", semantic_model_ids=["model-uuid-1", "model-uuid-2"],`
`expected_semantic_objects=[{"object_type": "semantic-dataset", "ids": ["dataset-uuid-1"]}]`
- Validate a query and compare it against expected objects:
`sql_query="SELECT SUM(\\"REVENUE\\") FROM ...", semantic_model_ids=["semantic-model-uuid"],`
`expected_semantic_objects=[{"object_type": "semantic-metric", "ids": ["metric-uuid-1"]}]`Text the model reads (56)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
tool tool
get_components tool
Retrieves detailed information about one or more components by their IDs.
RETURNS FOR EACH COMPONENT:
- Component metadata (name, type, description)
- Documentation and usage instructions
- Configuration JSON schema (required for creating/updating configurations)
- Links to component dashboard in Keboola UI
Components that cannot be retrieved are listed in `not_found` (missing) or `errors` (server-side, retryable);
the call fails only if none of them can be retrieved.
WHEN TO USE:
- Before creating a new configuration: fetch the component to get its configuration schema
- Before updating a configuration: fetch the component to understand valid configuration options
- When user asks about component capabilities or documentation
PREREQUISITES:
- You must know the component_id(s). If unknown, first use `find_component_id` or `docs` tool to discover them.
EXAMPLES:
- User: "Create a generic extractor configuration"
→ First call `find_component_id` to get the component_id, then call this tool to get the schema
- User: "What options does the Snowflake writer support?"
→ Call this tool with the Snowflake writer component_id to retrieve its documentation and schemaget_configs tool
Retrieves component configurations in the project with optional filtering.
Can list summaries of multiple configurations (grouped by component) or retrieve full details
for specific configurations.
Returns a list of components, each containing:
- Component metadata (ID, name, type, description)
- Configurations for that component (summaries by default, full details if requested)
- Links to the Keboola UI
PARAMETER BEHAVIOR:
- If configs is provided (non-empty): Returns FULL details ONLY for those configs.
Configs that cannot be retrieved are listed in `not_found` (missing) or `errors` (server-side, retryable);
the call fails only if none of them can be retrieved.
- Else if component_ids is provided (non-empty): Lists config summaries for those components.
- Else: Lists configs based on component_types (all types if empty).
WHEN TO USE:
- For listing: Use component_types/component_ids.
- For details: Use configs (can handle multiple).
WHEN NOT TO USE:
- Do NOT list all configs just to find a configuration by name. Use `search` with
item_types=["configuration", "transformation"] instead.
- Only use broad listing (empty component_types and component_ids) when you need
a complete inventory of all configurations in the project.
EXAMPLES:
- List all configs (summaries): component_types=[], component_ids=[]
- List extractors (summaries): component_types=["extractor"]
- Get details for specific configs:
configs=[{"component_id": "keboola.ex-db-mysql", "configuration_id": "12345"}]get_config_examples tool
Retrieves sample configuration examples for a specific component.
USAGE:
- Use before calling `create_config` or `add_config_row` to understand the expected parameters structure.
- Use when you want to see example configurations for a specific component.
EXAMPLES:
- user_input: `Show me example configurations for component X`
- set the component_id parameter accordingly
- returns a markdown formatted string with configuration examplescreate_config tool
Creates a root component configuration using the specified name, component ID, configuration JSON, and description.
Not for SQL transformations (`keboola.snowflake-transformation` / `keboola.google-bigquery-transformation`),
data apps (`keboola.data-apps`) or flows — use the dedicated tools (see WHEN NOT TO USE). This IS the tool for
Python (`keboola.python-transformation-v2`), R (`keboola.r-transformation-v2`) and DuckDB
(`keboola.duckdb-transformation`) transformations.
BEFORE CALLING - REQUIRED STEPS:
1. Call `get_components([component_id])` to retrieve the component's `configuration_schema`.
2. Read `configuration_schema.required` to find ALL mandatory top-level fields.
3. Call `get_config_examples(component_id)` to see real-world parameter examples.
4. Populate `parameters` with every required field before calling this tool.
Skipping these steps will cause a schema validation error.
USAGE:
- Use when you want to create a new root configuration for a specific component.
WHEN NOT TO USE:
- `keboola.orchestrator` / `keboola.flow` → use `create_flow` / `create_conditional_flow`
<!-- directory:omit -->
- `keboola.data-apps` → use `modify_python_js_data_app` / `modify_streamlit_data_app` / `deploy_data_app`
<!-- /directory:omit -->
<!-- directory:only -->
- `keboola.data-apps` → use `modify_streamlit_data_app` / `deploy_data_app`
<!-- /directory:only -->
- `keboola.snowflake-transformation` / `keboola.google-bigquery-transformation` → use `create_sql_transformation`
EXAMPLES:
- user_input: `Create a new configuration for component X with these settings`
- set the component_id and configuration parameters accordingly
- returns the created component configuration if successful.update_config tool
Updates an existing root component configuration by modifying its parameters, storage mappings, name or description.
Not for SQL transformations (`keboola.snowflake-transformation` / `keboola.google-bigquery-transformation`),
data apps (`keboola.data-apps`) or flows — use the dedicated tools (see WHEN NOT TO USE). This IS the tool for
updating Python (`keboola.python-transformation-v2`), R (`keboola.r-transformation-v2`) and DuckDB
(`keboola.duckdb-transformation`) transformations.
This tool allows PARTIAL parameter updates - you only need to provide the fields you want to change.
All other fields will remain unchanged.
Use this tool when modifying existing configurations; for configuration rows, use update_config_row instead.
WHEN TO USE:
- Modifying configuration parameters (credentials, settings, API keys, etc.)
- Updating storage mappings (input/output tables or files)
- Changing configuration name or description
- Any combination of the above
WHEN NOT TO USE:
- `keboola.orchestrator` / `keboola.flow` → use `update_flow`
<!-- directory:omit -->
- `keboola.data-apps` → use `modify_python_js_data_app` / `modify_streamlit_data_app` / `deploy_data_app`
<!-- /directory:omit -->
<!-- directory:only -->
- `keboola.data-apps` → use `modify_streamlit_data_app` / `deploy_data_app`
<!-- /directory:only -->
- `keboola.snowflake-transformation` / `keboola.google-bigquery-transformation` → use `update_sql_transformation`
PREREQUISITES:
- Configuration must already exist (use create_config for new configurations)
- You must know both component_id and configuration_id
- For parameter updates: Review the component's root_configuration_schema using get_components.
- For storage updates: Ensure mappings are valid for the component type
IMPORTANT CONSIDERATIONS:
- Parameter updates are PARTIAL - only specify fields you want to change
- parameter_updates supports granular operations: set keys, replace strings, remove keys, or append to lists
- Parameters must conform to the component's root_configuration_schema
- Validate schemas before calling: use get_components to retrieve root_configuration_schema
- For row-based components, this updates the ROOT only (use update_config_row for individual rows)
WORKFLOW:
1. Retrieve current configuration using get_configs (to understand current state)
2. Identify specific parameters/storage mappings to modify
3. Prepare parameter_updates list with targeted operations
4. Call update_config with only the fields to changeadd_config_row tool
Creates a component configuration row in the specified configuration_id, using the specified name,
component ID, configuration JSON, and description.
BEFORE CALLING - REQUIRED STEPS:
1. Call `get_components([component_id])` to retrieve the component's `configuration_row_schema`.
2. Read `configuration_row_schema.required` to find ALL mandatory top-level fields.
3. Call `get_config_examples(component_id)` to see real-world row parameter examples.
4. Populate `parameters` with every required field before calling this tool.
Skipping these steps will cause a schema validation error.
USAGE:
- Use when you want to create a new row configuration for a specific component configuration.
WHEN NOT TO USE:
- `keboola.orchestrator` / `keboola.flow` → use `create_flow` / `create_conditional_flow`
<!-- directory:omit -->
- `keboola.data-apps` → use `modify_python_js_data_app` / `modify_streamlit_data_app` / `deploy_data_app`
<!-- /directory:omit -->
<!-- directory:only -->
- `keboola.data-apps` → use `modify_streamlit_data_app` / `deploy_data_app`
<!-- /directory:only -->
- `keboola.snowflake-transformation` / `keboola.google-bigquery-transformation` → use `create_sql_transformation`
EXAMPLES:
- user_input: `Create a new configuration row for component X with these settings`
- set the component_id, configuration_id and configuration parameters accordingly
- returns the created component configuration if successful.update_config_row tool
Updates an existing component configuration row by modifying its parameters, storage mappings, name, or description.
This tool allows PARTIAL parameter updates - you only need to provide the fields you want to change.
All other fields will remain unchanged.
Configuration rows are individual items within a configuration, often representing separate data sources,
tables, or endpoints that share the same component type and parent configuration settings.
WHEN TO USE:
- Modifying row-specific parameters (table sources, filters, credentials, etc.)
- Updating storage mappings for a specific row (input/output tables or files)
- Changing row name or description
- Any combination of the above
WHEN NOT TO USE:
- `keboola.orchestrator` / `keboola.flow` → use `update_flow`
<!-- directory:omit -->
- `keboola.data-apps` → use `modify_python_js_data_app` / `modify_streamlit_data_app` / `deploy_data_app`
<!-- /directory:omit -->
<!-- directory:only -->
- `keboola.data-apps` → use `modify_streamlit_data_app` / `deploy_data_app`
<!-- /directory:only -->
- `keboola.snowflake-transformation` / `keboola.google-bigquery-transformation` → use `update_sql_transformation`
PREREQUISITES:
- The configuration row must already exist (use add_config_row for new rows)
- You must know component_id, configuration_id, and configuration_row_id
- For parameter updates: Review the component's row_configuration_schema using get_components
- For storage updates: Ensure mappings are valid for row-level storage
IMPORTANT CONSIDERATIONS:
- Parameter updates are PARTIAL - only specify fields you want to change
- parameter_updates supports granular operations: set individual keys, replace strings, or remove keys
- Parameters must conform to the component's row_configuration_schema (not root schema)
- Validate schemas before calling: use get_components to retrieve row_configuration_schema
- Each row operates independently - changes to one row don't affect others
- Row-level storage is separate from root-level storage configuration
WORKFLOW:
1. Retrieve current configuration using get_configs to see existing rows
2. Identify the specific row to modify by its configuration_row_id
3. Prepare parameter_updates list with targeted operations for this row
4. Call update_config_row with only the fields to changerun_sync_action tool
Executes a synchronous action for a component configuration or a component row configuration.
Effects depend on the component and action; execution can modify external resources.
WHEN TO USE:
- For finding available values of a configuration field
- For validating already configured values (e.g. testing a database connection)
- For listing remote resources such as endpoints, schemas or tablescreate_sql_transformation tool
Creates an SQL transformation using the specified name, SQL query following the current SQL dialect, a detailed
description, and a list of created table names.
CONSIDERATIONS:
- By default, SQL transformation must create at least one table to produce a result; omit only if the user
explicitly indicates that no table creation is needed.
- Each SQL code block must include descriptive name that reflects its purpose and group one or more executable
semantically related SQL statements.
- Each SQL query statement within a code block must be executable and follow the current SQL dialect.
- Use delimited identifiers for the current SQL dialect for all identifiers and FQN references.
- When referring to the input tables within the SQL query, use fully qualified table names, which can be
retrieved using appropriate tools.
- When creating a new table within the SQL query (e.g. CREATE TABLE ...): use only the table name with
delimited identifiers, without the fully qualified path; add the plain table name without delimiters
to the `created_table_names` list.
- Unless otherwise specified by user, transformation name and description are generated based on the SQL query
and user intent.
- If there are 20 or more SQL transformations in the project, consider organizing them with a folder: existing
folder names are surfaced in the response's change_summary — use one of them or create a new one.
USAGE:
- Use when you want to create a new SQL transformation.
<!-- directory:omit -->
- This is THE tool for creating `keboola.snowflake-transformation` and `keboola.google-bigquery-transformation`
components (do NOT use `create_config` for these); the transformation ID is derived automatically from the
workspace SQL dialect.
- Snowflake/BigQuery only. For Python, R, or DuckDB transformations, use `create_config` with the appropriate
`component_id` instead — this tool cannot create them.
<!-- /directory:omit -->
<!-- directory:only -->
- This is THE tool for creating `keboola.snowflake-transformation` and `keboola.google-bigquery-transformation`
components; the transformation ID is derived automatically from the workspace SQL dialect.
- Snowflake/BigQuery only: this tool cannot create Python, R, or DuckDB transformations.
<!-- /directory:only -->
EXAMPLES:
- user_input: `Can you create a new transformation out of this sql query?`
- set the sql_code_blocks to the query, and set other parameters accordingly.
- returns the created SQL transformation configuration if successful.
- user_input: `Generate me an SQL transformation which [USER INTENT]`
- set the sql_code_blocks to the query based on the [USER INTENT], and set other parameters accordingly.
- returns the created SQL transformation configuration if successful.update_sql_transformation tool
Updates an existing SQL transformation configuration by modifying its SQL code, storage mappings,
name or description.
This tool allows PARTIAL parameter updates for transformation SQL blocks and code - you only need to provide
the operations you want to perform. All other fields will remain unchanged.
Use this for modifying SQL transformations created with create_sql_transformation.
WHEN TO USE:
<!-- directory:omit -->
- SQL transformations only (Snowflake/BigQuery); use update_config for Python/R/DuckDB transformations
<!-- /directory:omit -->
<!-- directory:only -->
- SQL transformations only (Snowflake/BigQuery); it cannot update Python/R/DuckDB transformations
<!-- /directory:only -->
- Modifying SQL queries in transformation (add/edit/remove SQL statements)
- Updating transformation block or code block names
- Changing input/output table mappings for the transformation
- Updating the transformation name or description
- Any combination of the above
PREREQUISITES:
- Transformation must already exist (use create_sql_transformation for new transformations)
- You must know the configuration_id of the transformation
- SQL dialect is determined automatically from the workspace
- CRITICAL: Use get_configs first to see the current transformation structure and get block_id/code_id values
TRANSFORMATION STRUCTURE:
A transformation has this hierarchy:
transformation
└─ blocks[] - List of transformation blocks (each has a unique block_id)
└─ block.name - Descriptive name for the block
└─ block.codes[] - List of code blocks within the block (each has a unique code_id)
└─ code.name - Descriptive name for the code block
└─ code.script - SQL script (string with SQL statements)
Example structure from get_configs:
{
"blocks": [
{
"id": "b0", ← block_id needed for operations (format: b{index})
"name": "Data Preparation",
"codes": [
{
"id": "b0.c0", ← code_id needed for operations (format: b{block_index}.c{code_index})
"name": "Load customers",
"script": "SELECT * FROM customers WHERE status = 'active';"
}
]
}
]
}
PARAMETER UPDATE OPERATIONS:
All operations use block_id and code_id to identify elements (get these from get_configs first).
ID Format:
- block_id: "b0", "b1", "b2", etc. (format: b{index})
- code_id: "b0.c0", "b0.c1", "b1.c0", etc. (format: b{block_index}.c{code_index})
1. BLOCK OPERATIONS:
- add_block: Create a new block in the transformation
{"op": "add_block", "block": {"name": "New Block", "codes": []}, "position": "end"}
- remove_block: Delete an entire block
{"op": "remove_block", "block_id": "b0"}
- rename_block: Change a block's name
{"op": "rename_block", "block_id": "b2", "block_name": "Updated Name"}
2. CODE BLOCK OPERATIONS:
- add_code: Create a new code block within an existing block
{"op": "add_code", "block_id": "b1", "code": {"name": "New Code", "script": "SELECT 1;"}, "position": "end"}
- remove_code: Delete a code block
{"op": "remove_code", "block_id": "b0", "code_id": "b0.c0"}
- rename_code: Change a code block's name
{"op": "rename_code", "block_id": "b1", "code_id": "b1.c2", "code_name": "Updated Name"}
3. SQL SCRIPT OPERATIONS:
- set_code: Replace the entire SQL script (overwrites existing)
{"op": "set_code", "block_id": "b0", "code_id": "b0.c0", "script": "SELECT * FROM new_table;"}
- add_script: Append or prepend SQL to existing script (preserves existing)
{"op": "add_script", "block_id": "b2", "code_id": "b2.c1", "script": "WHERE date > '2024-01-01'",
"position": "end"}
- str_replace: Find and replace text in SQL scripts
{"op": "str_replace", "search_for": "old_table", "replace_with": "new_table", "block_id": "b0",'
"code_id": "b0.c0"}
- Omit code_id to replace in all codes of a block
- Omit both block_id and code_id to replace everywhere
IMPORTANT CONSIDERATIONS:
- Parameter updates are PARTIAL - only the operations you specify are applied
- All other parts of the transformation remain unchanged
- Each SQL script must be executable and follow the current SQL dialect:
- Use delimited identifiers for the current SQL dialect.
- Never mix delimiter styles within a single query.
- Storage configuration is COMPLETE REPLACEMENT - include ALL mappings you want to keep
- Leave updated_description empty to preserve the original description
- SCHEMA CHANGES: Destructive schema changes (removing columns, changing types, renaming columns) require
manually deleting the output table before running the updated transformation to avoid schema mismatch errors.
Non-destructive changes (adding columns) typically do not require table deletion.
WORKFLOW:
1. Call get_configs to retrieve current transformation structure and identify block_id/code_id values
2. Identify what needs to change (SQL code, storage, description)
3. For SQL changes: Prepare parameter_updates list with targeted operations
4. For storage changes: Build complete storage configuration (include all mappings)
5. Call update_sql_transformation with change_description and only the fields to change
EXAMPLE WORKFLOWS:
Example 1 - Update SQL script in existing code block:
Step 1: Get current config
result = get_configs(component_id="keboola.snowflake-transformation", configuration_id="12345")
# Note the block_id (e.g., "b0") and code_id (e.g., "b0.c1") from result
Step 2: Update the SQL
update_sql_transformation(
configuration_id="12345",
change_description="Updated WHERE clause to filter active customers only",
parameter_updates=[
{
"op": "set_code",
"block_id": "b0", # from step 1
"code_id": "b0.c0", # from step 1
"script": "SELECT * FROM customers WHERE status = 'active' AND region = 'US';"
}
]
)
Example 2 - Append a new code block to the second block of an existing transformation:
update_sql_transformation(
configuration_id="12345",
change_description="Added aggregation step",
parameter_updates=[
{
"op": "add_code",
"block_id": "b1", # second block
"code": {
"name": "Aggregate Sales",
"script": "SELECT customer_id, SUM(amount) as total FROM orders GROUP BY customer_id;"
},
"position": "end"
}
]
)
Example 3 - Replace table name across all SQL scripts:
update_sql_transformation(
configuration_id="12345",
change_description="Renamed source table from old_customers to customers",
parameter_updates=[
{
"op": "str_replace",
"search_for": "old_customers",
"replace_with": "customers"
# No block_id or code_id = applies to all scripts
}
]
)
Example 4 - Update storage mappings:
update_sql_transformation(
configuration_id="12345",
change_description="Added new input table",
storage={
"input": {
"tables": [
{
"source": "in.c-main.customers",
"destination": "customers"
},
{
"source": "in.c-main.orders",
"destination": "orders"
}
]
},
"output": {
"tables": [
{
"source": "result",
"destination": "out.c-main.customer_summary"
}
]
}
}
)modify_streamlit_data_app tool
Creates or updates a Streamlit data app.
<!-- directory:omit -->
Python-js is the default type for new data apps when you can run git: create them with
`modify_python_js_data_app` (python-js source code is delivered only by `git push`). Use this tool to create
a new app when you cannot run git or when the user asks for Streamlit explicitly, and to update existing
Streamlit apps.
<!-- /directory:omit -->
<!-- directory:only -->
Use this tool to create new data apps and to update existing Streamlit apps. Other data apps cannot be changed here;
tell the user so.
<!-- /directory:only -->
Considerations:
- The `source_code` parameter must be a complete and runnable Streamlit app. It must include a placeholder
`{QUERY_DATA_FUNCTION}` where a `query_data` function will be injected. This function queries the workspace to get
data, it accepts a string of SQL query following current sql dialect and returns a pandas DataFrame with the results
from the workspace.
- The placeholder is substituted only by this tool when it saves the configuration; it is not a platform
feature. A configuration written any other way (e.g. Storage API, CLI) must define `query_data` itself, otherwise
the literal placeholder breaks the app.
- Write SQL queries so they are compatible with the current workspace backend, you can ensure this by using the
`query_data` tool to inspect the data in the workspace before using it in the data app.
- To update an app, pass `configuration_id` and `change_description`.
- After a create or update, ALWAYS call `deploy_data_app(action="deploy", configuration_id=...)`: without it a
new app does not start and a running app keeps the previous code.
- On update, `authentication_type='default'` keeps the existing auth (including OIDC set up elsewhere).
- **OIDC** (update only): first register the `oidc_callback_url` (returned on create) at the identity
provider, then update with `authentication_type='oidc'` and `oidc`. The user enters the client secret in the
Keboola UI (see `change_summary` while `oidc_setup_required` is true); with `allowed_roles`, update with
`'oidc'` once more after that. Deploy last.
SQL & DATA TYPE RULES:
- Use delimited identifiers for the current SQL dialect for all column names and aliases in SQL.
Match the exact identifier case used in SQL when referencing columns in Python code.
- `query_data` RETURNS ALL COLUMNS AS STRINGS regardless of SQL CAST. Always convert types in Python after loading:
`df["col"] = pd.to_numeric(df["col"], errors="coerce").fillna(0)` and
`df["date"] = pd.to_datetime(df["date"], errors="coerce")`.modify_python_js_data_app tool
Creates or updates a python-js data app.
- The default type when you can run git; otherwise use `modify_streamlit_data_app`.
- Creates the configuration and a managed git repository (`repo_url`). You deliver code by `git push`
with a token from `create_python_js_data_app_git_credential`. **MCP never runs git**: clone, branch,
commit, push and merge are yours.
- Preview changes in a draft (`create_python_js_data_app_draft`) on a branch; merge an approved branch
into `main`, then `deploy_data_app` serves it.
- Update (`configuration_id`) changes name, description, auth, auto-suspend, storage, Storage access,
image, slug, and an external-git app's branch; code changes go through git. A legacy draft
(`isDraft=true`) can be updated but is no longer created.
- **Customer GitHub repository**: pass `git_repository` with `git_auth='organization'` to deploy a prod
app from the customer's repo. Code goes there through the user's own GitHub access; such an app has no
managed repo, no git credential, no drafts and deploys in production mode only.
- **OIDC** (update of a prod app only): first register the `oidc_callback_url` (returned on create) at the
identity provider, then update with `authentication_type='oidc'` and `oidc`. The user enters the client
secret in the Keboola UI (see `change_summary` while `oidc_setup_required` is true); with
`allowed_roles`, update with `'oidc'` once more after that. Deploy last.
- **Slug**: the slug is the app URL. A never-deployed app's slug follows its name; a deployed app keeps
it unless you pass `slug` (with the user's approval). The new URL applies on the next deploy and the old
one stops working; tell the user. An OIDC app's slug never follows its name; a legacy draft's never changes.create_python_js_data_app_git_credential tool
Mints an HTTPS token for the git repo of a python-js **prod** data app.
- Returns `git_clone_url` (token embedded) and the raw `secret`.
- Call it after creating a prod app, or when the token you had is gone. Always pass the prod app's
`configuration_id`: drafts use branches of the prod app's repo.
- Keboola-managed repo: the secret is shown only once. Each call mints another `readWrite` token; existing
ones stay valid.
- Customer GitHub repo (organization auth): the token expires at `expires_at`, in about an hour. On a push
that fails with 401 or 403, call this tool again and `git remote set-url origin <new git_clone_url>`.
Never ask the user for a GitHub token.
- Rejected for Streamlit apps and for repos connected with a personal token or SSH key.get_data_apps tool
Lists summaries of data apps in the project given the limit and offset or gets details of a data apps by
providing their configuration IDs.
WHEN NOT TO USE:
- Do NOT list all data apps just to find one by name. Use `search` with
item_types=["data-app"] instead.
- Only list all data apps when you need a complete inventory.
Considerations:
- If configuration_ids are provided, the tool will return details of the data apps by their configuration IDs.
- If no configuration_ids are provided, the tool will list all data apps in the project given the limit and offset.
- Data App detail contains configuration, metadata, source code, links, and deployment info along with the latest
data app logs to investigate in-app errors. The logs may be updated after opening the data app URL.
- `deployment_info.last_run` carries the outcome of the most recent deployment attempt. For an app
that fails to start, check its `failure_reason`/`failure_message` FIRST — they cover setup-phase
failures (e.g. invalid secrets, git clone errors, failing setup scripts) that happen before the
container starts and therefore never appear in the regular logs.
- `repo_url` is set only on the detail path (`configuration_ids`), never in the inventory list.
- For a python-js **prod** app the detail also lists its `drafts` (with `draft_id`, `git_branch`, `url`,
`run_state`) and its `legacy_drafts` (separate draft configurations).(name computed at run time) tool
create_python_js_data_app_draft tool
Creates a draft of a python-js data app: its own workload on its own host, serving `git_branch`.
- A push to `git_branch` reaches the running draft within seconds; it needs no deploy.
- The draft runs in dev mode with a copy of the prod app's configuration from this moment. It never takes
production traffic.
- It suspends itself after 15 minutes without requests and wakes on the next one.
- It outlives a prod deployment. Delete it with `delete_python_js_data_app_draft` when the work is done.
- The tool waits until the draft has a `url`; `run_state` reaches `running` 1–2 minutes later.
- Not idempotent: every call starts another draft. When a call fails or times out, look for the draft in
`get_data_apps` before calling again.
Errors:
- branch "does not exist": push the branch first, then call again.
- "already serves branch": continue that draft instead; a closed preview pane never means it is gone.
- "not available on this Keboola stack": tell the user.delete_python_js_data_app_draft tool
Deletes a draft of a python-js data app. It never touches the prod app or the git repository.
- With `draft_id`: stops and removes that draft. Its branch stays.
- Without `draft_id`: deletes the legacy draft `configuration_id` (its data app and its configuration).
Refuses prod apps and Streamlit apps.
- It runs no git: deleting the branch on the remote is up to you.get_data_app_preview_link tool
Creates a short-lived link that opens a python-js draft in a browser without the app's login.
- With `draft_id` it opens that draft; without it, a legacy draft running in dev mode.
- Open `url` in a real browser before `link_expires_at` (about 60 s): a browser tool, or
a headless browser CLI run from your shell. Do not fetch it with an HTTP client or curl: only a browser
can turn it into a session.
- The browser session then keeps working for hours, so do not call this tool before every check. Call it
again only when the app shows its login page or the link expired unopened.
- Never type a password into the app's login page, and never ask the user for one.
- Do not share `url`: do not show it to the user and do not put it into files, commits, messages, or any
tool or any command other than the one that opens the browser.
- Errors say what to do; never switch a production app to dev mode.docs_query tool
Answers a question using the Keboola documentation as a source.
create_flow tool
Creates a new legacy (non-conditional) flow using `keboola.orchestrator`.
PRE-REQUISITES:
- Always use `get_flow_schema` with flow_type="keboola.orchestrator" and review `get_flow_examples` if unknown
- Collect component configuration IDs for every task you include (for data apps, their `data_app_id`)
RULES:
- `phases` and `tasks` must follow the orchestrator schema; each entry must include `id` and `name`
- Phases run sequentially; tasks inside a phase run in parallel
- Use `dependsOn` on phases to sequence them; reference other phase ids
- Always share the returned links with the user
- Run a data app from a flow with a `keboola.data-app-control` task whose `configData` is
`{"parameters": {"appId": "<data_app_id>"}}` (`data_app_id` from `get_data_apps`), with no `configId`; never use
`keboola.data-apps` + `configId`. Each run restarts the app with a new build and a new token, or starts it if it
is stopped; add `"forceRestart": false` to the parameters only if the user wants a running app left as it is
WHEN TO USE:
- Simple/linear orchestrations without branching or conditions
- ETL/ELT pipelines where phases just need ordering and parallel task groupscreate_conditional_flow tool
Creates a new conditional flow configuration using `keboola.flow`.
PRE-REQUISITES:
- Always use `get_flow_schema` with flow_type="keboola.flow" and review `get_flow_examples` if unknown
- Gather component configuration IDs for all tasks you include (for data apps, their `data_app_id`)
RULES:
- `phases` and `tasks` must follow the keboola.flow schema; each entry needs `id` and `name`
- Exactly one entry phase (no incoming transitions); all phases must be reachable
- Connect phases via `next` transitions; no cycles or dangling phases; empty `next` means flow end
- Task/phase failures already stop the flow; add retries/conditions only if the user requests them
- Always share the returned links with the user
- Run a data app from a flow with a `keboola.data-app-control` task whose `configData` is
`{"parameters": {"appId": "<data_app_id>"}}` (`data_app_id` from `get_data_apps`), with no `configId`; never use
`keboola.data-apps` + `configId`. Each run restarts the app with a new build and a new token, or starts it if it
is stopped; add `"forceRestart": false` to the parameters only if the user wants a running app left as it is
WHEN TO USE:
- Flows needing branching, conditions, retries, or notifications
- Default choice when user simply says "create a flow," unless they explicitly want legacy orchestrator behaviorget_flows tool
Lists flows or retrieves full details for specific flows.
WHEN NOT TO USE:
- Do NOT call with `flow_ids=[]` just to find a flow by name. Use `search` with
item_types=["flow"] instead.
- Only use `flow_ids=[]` when you need a complete list of all flows in the project.
OPTIONS:
- `flow_ids=[]` → summaries of all flows in the project
- `flow_ids=["id1", ...]` → full details (including phases/tasks) for those flows; flows that cannot be
retrieved are listed in `not_found` (missing) or `errors` (server-side, retryable), and the call fails
only if none of them can be retrieved; a flow whose schedules cannot be read is still returned, with
`schedules` unset and `schedules_error` saying why (so it is not the same as a flow with no schedules)update_flow tool
Updates an existing flow configuration (either legacy `keboola.orchestrator` or conditional `keboola.flow`).
PRE-REQUISITES:
- Always use `get_flow_schema` (and `get_flow_examples`) for that flow type you want to update to follow the
required structure and see the examples if unknown
- Only pass `phases`/`tasks` when you want to replace them; omit to keep the existing ones unchanged
RULES (ALL FLOWS):
- `flow_type` must match the stored component id of the flow; do not switch flow types during update
- `phases` and `tasks` must follow the schema for the selected flow type; include at least `id` and `name`
- Tasks must reference existing component configurations (data app tasks an existing `data_app_id`); keep
dependencies consistent
- Run a data app from a flow with a `keboola.data-app-control` task whose `configData` is
`{"parameters": {"appId": "<data_app_id>"}}` (`data_app_id` from `get_data_apps`), with no `configId`; never use
`keboola.data-apps` + `configId`. Each run restarts the app with a new build and a new token, or starts it if it
is stopped; add `"forceRestart": false` to the parameters only if the user wants a running app left as it is
- Always provide a clear `change_description` and surface any links returned in the response to the user
CONDITIONAL FLOWS (`keboola.flow`):
- Maintain a single entry phase and ensure every phase is reachable; connect phases via `next` transitions
- No cycles or dangling phases; failed tasks already stop the flow, so only add retries/conditions if requested
LEGACY FLOWS (`keboola.orchestrator`):
- Phases run sequentially; tasks inside a phase run in parallel; `dependsOn` references other phase ids
- Use `continueOnFailure` or best-effort patterns only when the user explicitly asks for them
WHEN TO USE:
- Renaming a flow, updating descriptions, adding/removing phases or tasks, adjusting dependencies,
or enabling/disabling flow executionmodify_flow tool
Updates an existing flow configuration (either legacy `keboola.orchestrator` or conditional `keboola.flow`) or
manages schedules for this flow.
PRE-REQUISITES:
- Always use `get_flow_schema` (and `get_flow_examples`) for that flow type you want to update to follow the
required structure and see the examples if unknown
- Only pass `phases`/`tasks` when you want to replace them; omit to keep the existing ones unchanged
RULES (ALL FLOWS):
- `flow_type` must match the stored component id of the flow; do not switch flow types during update
- `phases` and `tasks` must follow the schema for the selected flow type; include at least `id` and `name`
- Tasks must reference existing component configurations (data app tasks an existing `data_app_id`); keep
dependencies consistent
- Run a data app from a flow with a `keboola.data-app-control` task whose `configData` is
`{"parameters": {"appId": "<data_app_id>"}}` (`data_app_id` from `get_data_apps`), with no `configId`; never use
`keboola.data-apps` + `configId`. Each run restarts the app with a new build and a new token, or starts it if it
is stopped; add `"forceRestart": false` to the parameters only if the user wants a running app left as it is
- Always provide a clear `change_description` and surface any links returned in the response to the user
- A flow can have multiple schedules for automation runs. Add/update/remove schedules only if requested.
- When updating a flow or a schedule, specify only the fields you want to update, others will be kept unchanged.
CONDITIONAL FLOWS (`keboola.flow`):
- Maintain a single entry phase and ensure every phase is reachable; connect phases via `next` transitions
- No cycles or dangling phases; failed tasks already stop the flow, so only add retries/conditions if requested
LEGACY FLOWS (`keboola.orchestrator`):
- Phases run sequentially; tasks inside a phase run in parallel; `dependsOn` references other phase ids
- Use `continueOnFailure` or best-effort patterns only when the user explicitly asks for them
WHEN TO USE:
- Renaming a flow, updating descriptions, adding/removing phases or tasks, updating schedules,
adjusting dependencies, or enabling/disabling flow executionget_flow_examples tool
Retrieves examples of valid flow configurations.
PRE-REQUISITES:
- Unknown examples for the target flow type: `keboola.flow` (conditional) or `keboola.orchestrator` (legacy) to help
build the specific flow configuration by mirroring the structure/fields.
RULES:
- Conditional-flow examples require conditional flows to be enabled; otherwise use legacy orchestrator examples
- Present the examples or cite unavailability to the userget_flow_schema tool
Returns the JSON schema for the given flow type (markdown).
PRE-REQUISITES:
- Unknown schema for the target flow type: `keboola.flow` (conditional) or `keboola.orchestrator` (legacy)
RULES:
- Projects without conditional flows enabled cannot request `keboola.flow` schema
- Use the returned schema to shape `phases` and `tasks` for `create_flow` / `create_conditional_flow` /
`update_flow`get_jobs tool
Retrieves job execution information from the Keboola project.
CONTEXT:
Jobs in Keboola are execution records of components (extractors, transformations, writers, flows).
Each job represents a single run with its status, timing, configuration, and results.
TWO MODES OF OPERATION (controlled by job_ids parameter):
MODE 1: GET DETAILS FOR SPECIFIC JOBS (job_ids is non-empty)
- Provide one or more job IDs: job_ids=["12345", "67890"]
- Returns: FULL details for each job including status, config_data, results, timing, and metadata
- Jobs that cannot be retrieved are listed in `not_found` (missing) or `errors` (server-side, retryable);
the call fails only if none of them can be retrieved
- Ignores: All filtering/sorting parameters (status, component_id, config_id, limit, offset, sort_by, sort_order)
- Use when: You know specific job IDs and need complete information about them
MODE 2: LIST/SEARCH JOBS (job_ids is empty)
- Leave job_ids empty: job_ids=[]
- Returns: SUMMARY list of jobs (id, status, component_id, config_id, timing only - no config_data or results)
- Supports: Filtering by status/component_id/config_id, pagination with limit/offset, sorting
- Use when: You need to find jobs, see recent executions, or monitor job history
DECISION GUIDE:
- Start with MODE 2 (list) to find jobs → then use MODE 1 (details) if you need full information
- If you already know job IDs → use MODE 1 directly
- For monitoring/browsing → use MODE 2 with filters
NOTE: Jobs cannot be found by name using the `search` tool. However, always use the filtering
parameters (status, component_id, config_id) to narrow results rather than listing all jobs
with no filters. If you need to find jobs for a specific configuration but only know its name,
first use `search` to find the configuration ID, then filter jobs by that config_id.
COMMON WORKFLOWS:
1. Find failed jobs: job_ids=[], status="error" → identify problematic job IDs → get details with MODE 1
2. Check recent runs: job_ids=[], component_id="...", limit=10 → see latest executions
3. Monitor specific job: job_ids=["123"] → poll for status and results
4. Troubleshoot config: job_ids=[], component_id="...", config_id="...", status="error" → find which runs failed
EXAMPLES:
MODE 1 - Get full details:
- job_ids=["12345"] → detailed info for job 12345
- job_ids=["12345", "67890"] → detailed info for multiple jobs
MODE 2 - List/search jobs:
- job_ids=[] → list latest 100 jobs (default)
- job_ids=[], status="error" → list only failed jobs
- job_ids=[], status="processing" → list currently running jobs
- job_ids=[], component_id="keboola.ex-aws-s3" → list jobs for S3 extractor
- job_ids=[], component_id="keboola.ex-aws-s3", config_id="12345" → list jobs for specific configuration
- job_ids=[], limit=50, offset=100 → pagination (skip first 100, get next 50)
- job_ids=[], sort_by="endTime", sort_order="asc" → oldest completed first
- job_ids=[], sort_by="durationSeconds", sort_order="desc" → longest running first
LOG RETRIEVAL (only in MODE 1):
- Set include_logs=True to fetch execution logs from the Storage API events
- Logs are fetched using the job's runId and returned in chronological order
- Use log_tail_lines to control how many recent log events to return (default 50, max 500)
- Use log_event_types to filter by event type: ["error"] for just errors, ["error", "warn"] for errors and warnings
- If a job has no runId (e.g., not yet started), logs will be None
- If the log events cannot be read, the job is still returned: logs will be None and logs_error says why
EXAMPLES WITH LOGS:
- job_ids=["12345"], include_logs=True → job details + last 50 log events
- job_ids=["12345"], include_logs=True, log_event_types=["error"] → job details + only error events
- job_ids=["12345"], include_logs=True, log_tail_lines=200 → job details + last 200 log eventsrun_job tool
Starts a new job for a given component or transformation.
(name computed at run time) tool
create_oauth_url tool
Generates an OAuth authorization URL for a Keboola component configuration.
When using this tool, be very concise in your response. Just guide the user to click the
authorization link.
Note that this tool should be called specifically for the OAuth-requiring components after their
configuration is created e.g. keboola.ex-google-analytics-v4 and keboola.ex-gmail.get_project_info tool
Retrieves structured information about the current project,
including essential context and base instructions for working with it
(e.g., transformations, components, workflows, and dependencies).
Always call this tool at least once at the start of a conversation
to establish the project context before using other tools. Reports on exactly one project;
pass `project_id` to pick which when the session is scoped to 2+ projects.update_project_description tool
Updates the description of the current Keboola project.
get_accessible_projects tool
Lists the Keboola projects the current login can access across the stack, each with its SQL
dialect and organization.
Only call this when a data tool call has actually failed asking you to confirm a project scope --
the session may already be pre-scoped (e.g. the user chose specific projects at `login` time), in
which case data tools already work and this call would just be extra, unnecessary API traffic.
When a scope genuinely is needed: present the projects, ask whether the user wants to work across
all of them or a subset, then call `set_project_scope` with their choice. This tool compacts
several API calls (token introspection plus a per-project token verify for the SQL dialect and
organization) into one result, so the assistant does not need a separate get_project_info call per
project. Pass with_llm_instruction=true on the first call to also receive the base working
instructions grouped by dialect.set_project_scope tool
Scopes the current session to a set of Keboola projects.
Mints a scoped access token (narrowed to `project_ids`, optionally read-only) that is used for the
rest of the conversation. Read-only tools then run against every scoped project in a single call;
write/modify/delete tools take a `project_id` argument naming which scoped project to target (required
once 2+ projects are scoped). Call this when the user states which projects to work on; it can be
called again any time to re-scope.
On most transports the server does not remember this scope between calls: pass the returned
`scope_token` as the `scope_token` argument on every subsequent tool call in this conversation
to keep it in effect. Not needed for a local server or an OAuth-authenticated session, both of
which persist the confirmed scope server-side instead -- `scope_token` is null there.create_project tool
Creates a brand-new Keboola project for a session that has no Keboola credentials yet, and
signs this session in to it.
Use this when the user has no Keboola project to work in -- it is how a first-time user gets
started without leaving the conversation. Whether a given caller may create a project is
Keboola's decision, not this tool's; on a locally run server it does refuse when the session is
already signed in, because that server keeps only one session per stack and would overwrite it.
Not every Keboola stack offers this -- it is gated by a stack feature. On a stack without it the
tool says so and the user has to bring their own project instead; that is a fact about the
stack, so do not retry.
The project starts out owned by nobody. Show the user the returned `confirm_url` and tell them
to open it: signing in there makes the project permanently theirs. Until they do, the project is
temporary and Keboola may reclaim it, and once they do, the session created here is revoked and
they continue with their own login. Data tools work against the new project in the meantime --
that is the point: the agent can build in the project before anyone signs anything.
When the result carries a `scope_token`, resend it as the "scope_token" argument on every later
tool call in this conversation: that is what keeps the session signed in to the new project.find_component_id tool
Returns list of component IDs that match the given query.
WHEN TO USE:
- Use when you want to find the component for a specific purpose.
USAGE EXAMPLES:
- user_input: "I am looking for a salesforce extractor component"
→ Returns a list of component IDs that match the query, ordered by relevance/best match.search tool
Searches for Keboola items (tables, buckets, components, configurations, transformations, flows, data-apps, etc.)
in the current project and returns matching ID + metadata.
This tool supports two complementary search types:
1) textual
- Searches items by name, server-side (fast, independent of project size).
- Tokenized full-text name matching, case- and diacritics-insensitive. Pass the plain name; do NOT build
regex (rejected). It is NOT typo-corrected — misspellings may not match.
- Prefers the current branch context; when nothing is found there, automatically widens the search to all
branches of the project — such hits carry `branch_id`/`branch_name` so you can tell where they live.
2) config-based
- Searches item configurations (JSON objects) by matching patterns against the configuration values converted
to a string, optionally narrowed by JSON path `scopes`.
- Returns also `match_scopes` with JSON paths and matched patterns per scope.
THIS IS THE PRIMARY DISCOVERY TOOL. Always use it BEFORE any get_* tool when you need to find items
by name or specific configuration content. Do NOT enumerate items with get_buckets, get_tables, get_configs,
get_flows, or get_data_apps just to locate a specific item — use this tool instead.
WHEN TO USE:
- User asks to "find", "locate", or "search for" something by name, keyword, text pattern, configuration content or
value
- User mentions a partial name and you need to find the full item (e.g., "find the customer table")
- User asks "what tables/configs/flows do I have with X in the name?"
- You need to discover items before performing operations on them
- User asks to "list all items with [name] or [configuration value/part] in it"
- User asks where a value, table, component, specific configuration ID, or specific settings is used in components,
data-apps, flows, or transformations
- You need to trace lineage by searching for IDs referenced in configurations, or to find flows using a
specific component, or find usage of a bucket/table in transformations or components, or to find items with
specific parameters.
- User asks to "what is the genesis of this item?" or "explain me business logic of this item?"
HOW IT WORKS:
- Supports two types:
- search_type="textual": tokenized full-text name search, server-side. Names only — descriptions, column
names, IDs and configuration contents are NOT searched (use config-based search for configuration contents,
or get_tables for columns). Matching is case- and diacritics-insensitive but NOT typo-corrected.
- search_type="config-based": matches inside configuration JSON objects, optionally narrowed by JSON path `scopes`
- case-insensitive search
- mode for pattern search: applies to config-based only — `literal` (default) or `regex`. Textual search ignores
`mode` (always full-text) and rejects `regex`.
- Multiple patterns work as OR condition - matches items containing ANY of the patterns
- Each result includes the item's ID, name, creation date, and relevant metadata; the response also carries
`total` and `by_type` counts and the `branch_scope` the hits come from
- textual search prefers the current branch; on zero hits it automatically retries across all branches of the
project and marks the response with branch_scope="all-branches"
- scopes (config-based) narrow matching to specific JSONPath areas within configurations; matching is performed
against the stringified JSON node content in those areas.
- config-based always returns all matched paths per item in `match_scopes` (including matched patterns)
IMPORTANT:
- Always use this tool when the user mentions a name but you don't have the exact ID
- The search returns IDs that you can use with other tools (e.g., get_tables, get_configs, get_flows)
- Results are ordered by the `updated` field, most recent first. `updated` is the item's last update time
when available, or its creation time otherwise (textual/global-search hits expose only the creation time).
- Textual search matches names only, with tokenized full-text matching (case/diacritics-insensitive; not
typo-corrected; no regex). It may not return every item the legacy enumeration did. To find items by
description or by table column, use get_tables; to find items by configuration content, use config-based search.
- For exact ID lookups, use specific tools like get_tables, get_configs, get_flows instead
- Use specific `scopes` only when you know the config structure (schema or real example); otherwise run config-based
search without scopes.
<!-- directory:omit -->
- Use find_component_id and get_configs tools to find configurations related to a specific component
<!-- /directory:omit -->
<!-- directory:only -->
- Use the get_configs tool to find configurations related to a specific component
<!-- /directory:only -->
- If results are too numerous or empty, ask the user to refine their query rather than enumerating all items.
USAGE EXAMPLES:
1) textual search examples:
- user_input: "Find all tables with 'customer' in the name"
→ patterns=["customer"], item_types=["table"]
→ Returns all tables whose name matches "customer"
- user_input: "Search for the sales transformation"
→ patterns=["sales"], item_types=["transformation"]
→ Returns transformations with "sales" in the name
- user_input: "Find items named 'daily report' or 'weekly summary'"
→ patterns=["daily report", "weekly summary"], item_types=[]
→ Returns all items matching any of these patterns
- user_input: "Show me all configurations related to Google Analytics"
→ patterns=["google analytics"], item_types=["configuration"]
→ Returns configurations with matching names
2) config-based search examples:
- user_input: "Find transformations/configs/components referencing table in.c-prod.customers"
-> patterns=["in.c-prod.customers"], item_types=["transformation", "configuration"],
search_type="config-based"
-> No scopes = search whole stringified config; result includes `match_scopes` with exact paths + patterns
- user_input: "Find configurations/transformations (etc.) using specific setting / id anywhere"
-> patterns=["setting", "id"], item_types=["configuration", "transformations"], search_type="config-based",
- user_input: "Find configurations/transformations (etc.) using specific setting / id in parameters"
-> patterns=["setting", "id"], item_types=["configuration", "transformations"], search_type="config-based",
scopes=["parameters"]
- user_input: "Find configurations/transformations (etc.) using specific setting / id in storage"
-> patterns=["setting", "id"], item_types=["configuration", "transformations"], search_type="config-based",
scopes=["storage"]
- user_input: "Find configurations/transformations (etc.) using specific setting / id in authorization"
-> patterns=["setting", "id"], item_types=["configuration", "transformations"], search_type="config-based",
scopes=["parameters.authorization", "authorization"]
- user_input: "Find components/transformations using my_bucket in input or output mappings"
-> patterns=["my_bucket"], item_types=["configuration", "transformation"], search_type="config-based",
scopes=["storage.input", "storage.output"]
-> Returns matches with paths like `storage.input.tables[0].source`, `storage.input.files[0].source`,
or `storage.output.tables[0].destination`
- user_input: "Find flows using configuration ID 01k9cz233cvd1rga3zzx40g8qj"
-> patterns=["01k9cz233cvd1rga3zzx40g8qj"], item_types=["flow"], search_type="config-based",
scopes=["tasks", "phases"]
- user_input: "Find transformations using this table / column / specific code in its script"
-> patterns=["element"], item_types=["transformation"], search_type="config-based",
scopes=["parameters", "storage"]
- user_input: "Find data apps using something in its config / python code / setting"
-> patterns=["something"], item_types=["data-app"], search_type="config-based"
-> Returns data apps where script/config sections contain the keyword and includes `match_scopes`(name computed at run time) tool
get_semantic_context tool
Loads semantic objects grouped by semantic object type.
CONSIDERATIONS:
- If a selection has empty `ids`, the tool returns all objects of that type in compact form.
- If a selection has non-empty `ids`, the tool returns only those specific objects with full attributes.
- `semantic_model_ids` optionally narrows the lookup to specific semantic models.
- An object returned here carries `scope` ("project", "organization", or "targeted"), `project_id`
(the project it was created in -- present regardless of scope), `source_project_id` (which
project an "organization"-scope object came from, if known), and `target_project_ids` (the
sibling projects granted read access, for "targeted" scope). This is reported only for an
object that appears in the current project's listing or that was loaded by id -- an
"organization"-scope object owned by another project is not surfaced by the listing path
today, only via a direct id lookup. `scope` describes visibility of the metastore object
itself, not whether its underlying Keboola Storage table is actually reachable from every
project that can see it -- a "targeted"/"organization" object's data may still need its
bucket separately shared and linked (`get_shared_buckets`/`link_shared_bucket`) before a
query against it will work outside the owning project. Pass `resolve_data_location=True` to
check this directly instead of inferring it from scope alone.
- An object's `scope_elevation_requested_at` being set means a project has asked an
organization admin to promote it from "project" to "organization" scope, and the request is
still pending. Treat this as a forward-looking signal: once approved, the object (a
semantic-model's promotion also carries its datasets' underlying tables along) becomes
visible org-wide, which may require separately sharing the physical data too -- promotion
alone does not do that automatically.
WHEN TO USE:
- When you already know IDs of the semantic objects you want to load and want to inspect them in detail.
- When you want to list all semantic objects of certain types or specific semantic models.
- When you want to list semantic models.
WHEN NOT TO USE:
- When you need to discover semantic objects.
EXAMPLES:
- List all semantic models:
`semantic_objects=[{"object_type": "semantic-model"}]`
- List semantic datasets and metrics for specific semantic models:
`semantic_objects=[{"object_type": "semantic-dataset"}, {"object_type": "semantic-metric"}],`
`semantic_model_ids=["model-uuid-1", "model-uuid-2"]`
- Get detailed context for specific semantic objects by their id:
`semantic_objects=[{"object_type": "semantic-dataset", "ids": ["dataset-uuid-1"]},`
`{"object_type": "semantic-metric", "ids": ["metric-uuid-1", "metric-uuid-2"]}]`
- List all constraints for specific semantic models:
`semantic_objects=[{"object_type": "semantic-constraint"}], semantic_model_ids=["model-uuid-1"]`get_semantic_schema tool
Returns JSON schemas for the requested semantic object types.
WHEN TO USE:
- When you want to know the JSON schema of a semantic object type, e.g. before searching something specific.validate_semantic_query tool
Performs best-effort semantic validation of an SQL query against one or more semantic models and compares it with
the expected semantic objects provided.
RETURNS:
- `validation_auto_detected`: semantic validation built from objects heuristically detected in the SQL
- `validation_detected_from_expected`: semantic validation built only from explicitly provided expected object IDs
- expected semantic objects that were matched or missing in the auto-detected result
- unexpected auto-detected objects outside the expected semantic scope
LIMITATIONS:
- Detection is heuristic and based on string matching over SQL and semantic metadata.
- The tool does not parse SQL semantically and does not execute the query.
- Auto-detected objects, missing objects, and relationship matches may therefore be imperfect.
- Use the result as a best-effort semantic check, not as a formal proof that the query is correct.
CONSIDERATIONS:
- Prefer calling this tool before executing any SQL that touches semantic objects.
- This tool confirms the SQL dialect, surfaces semantic constraint violations, and provides post-execution checks.
- Only proceed to query_data once this tool returns valid=True and violations is empty. If violations are found,
fix the query first or consider the limitations of this tool.
- Besides constraint findings, `violations` flags SQL that contradicts the model itself: a join between two
datasets on keys their relationship does not define (`join_key_mismatch`, error), and an aggregate that matches
no defined metric (`undefined_metric`, warning).
- Entries under `semantic_models` carry `scope`/`project_id`/`source_project_id`/
`target_project_ids` -- see `get_semantic_context`'s CONSIDERATIONS for what they mean. A
"targeted"/"organization"-scope model does not guarantee the query is actually runnable from
every project that can see it; this tool validates against the semantic layer, not against
whether the underlying Storage tables are reachable here. Pass `resolve_data_location=True` to
check that directly for every used dataset instead of inferring it from scope alone.
WHEN TO USE:
- Before generating or approving a query that should follow a semantic model.
- When you want to validate a SQL query against the semantic objects before executing it using "query_data" tool
or creating a new SQL transformation out of it, especially when investigating data quality issues.
- When you want to verify that a query uses the intended semantic objects.
- When you need to surface semantic business-rule violations or follow-up checks.
EXAMPLES:
- Validate a SQL query against one semantic model:
`sql_query="SELECT SUM(\\\\"REVENUE\\\\") FROM ...", semantic_model_ids=["semantic-model-uuid"],`
`expected_semantic_objects=[{"object_type": "semantic-dataset"}]`
- Validate a cross-model query against two semantic models:
`sql_query="SELECT * FROM ...", semantic_model_ids=["model-uuid-1", "model-uuid-2"],`
`expected_semantic_objects=[{"object_type": "semantic-dataset", "ids": ["dataset-uuid-1"]}]`
- Validate a query and compare it against expected objects:
`sql_query="SELECT SUM(\\\\"REVENUE\\\\") FROM ...", semantic_model_ids=["semantic-model-uuid"],`
`expected_semantic_objects=[{"object_type": "semantic-metric", "ids": ["metric-uuid-1"]}]`(name computed at run time) tool
get_shared_buckets tool
Lists buckets shared with this project by other Keboola projects that are not necessarily
linked into this project yet (the Data Catalog "Shared with me" view). Use this to answer
"what data is shared with this project?" or "what could I link?" — `get_buckets` only
returns buckets already in this project (including already-linked ones).
Results are paginated (`limit`/`offset`) because the number of shared buckets can be large
for projects in big organizations — always check `total_count` and the `message` to see
whether more results exist, and page through with `offset` rather than assuming a single
call returns everything.
Use `link_shared_bucket` to link a shared bucket returned here into this project.link_shared_bucket tool
Links a bucket shared with this project (found via `get_shared_buckets`) into this project
as a new local bucket, so its tables become directly queryable/joinable like any other
bucket in the project.
Not idempotent: calling this again with the same `target_bucket_name` fails once that name
already exists, so don't retry blindly on error without checking whether the link succeeded.
Note: unlike `get_buckets`, the returned bucket does not participate in this server's
prod/dev branch-shading (its `branch_id` is not resolved) -- linking always targets the
caller's current branch context directly.get_buckets tool
Lists buckets or retrieves full details of specific buckets, including descriptions,
lineage references (created/updated by), and links.
WHEN NOT TO USE:
- Do NOT call with `bucket_ids=[]` just to find a bucket by name. Use `search` with
item_types=["bucket"] instead.
- Only use `bucket_ids=[]` when you need a complete inventory of all buckets in the project.
EXAMPLES:
- `bucket_ids=[]` → summaries of all buckets in the project
- `bucket_ids=["id1", ...]` → full details of the buckets with the specified IDsget_tables tool
Lists tables in buckets or retrieves full details of specific tables, including fully qualified database name,
column definitions, lineage references (created/updated by) and links.
WHEN NOT TO USE:
- Do NOT list tables across buckets just to find a table by name. Use `search` with
item_types=["table"] instead — it also matches column names and descriptions.
- Only use `bucket_ids` listing when you need all tables in specific known buckets.
RETURNS:
- With `bucket_ids`: Summaries of tables (ID, name, description, primary key).
- With `table_ids`: Full details including columns, data types, and fully qualified database names.
- With `table_ids` and `include_usage`: Full details plus components / transformations that use the tables
in their input / output mappings. Use only when explicitly needed or evident from context; usage calculation
might be demanding in big projects.
COLUMN DATA TYPES:
- database_native_type: The actual type in the storage backend (Snowflake, BigQuery, etc.)
with precision, scale, and other implementation details
- keboola_base_type: Standardized type indicating the semantic data type. May not always be
available. When present, it reveals the actual type of data stored in the column - for example,
a column with database_native_type VARCHAR might have keboola_base_type INTEGER, indicating
it stores integer values despite being stored as text in the backend.
QUERYABILITY RULE:
- A table is directly queryable via query_data tool only if `fully_qualified_name` is present and non-null
in the response.
- If `fully_qualified_name` is absent or null (e.g. for linked/alias tables from other projects),
the table cannot be queried via SQL from this workspace.
- Do not attempt to construct or guess the FQN — it will not work. In that case,
inform the user of the limitation immediately.
EXAMPLES:
- `bucket_ids=["id1", ...]` → summary info of the tables in the buckets with the specified IDs
- `table_ids=["id1", ...]` → detailed info of the tables specified by their IDs
- `bucket_ids=[]` and `table_ids=[]` → empty list; you have to specify at least one filterupdate_descriptions tool
Updates the description for a Keboola storage item.
This tool supports three item types, inferred from the provided item_id:
- bucket: item_id = "in.c-bucket"
- table: item_id = "in.c-bucket.table"
- column: item_id = "in.c-bucket.table.column"
Usage examples (payload uses a list of DescriptionUpdate objects):
- Update a bucket:
updates=[DescriptionUpdate(item_id="in.c-my-bucket", description="New bucket description")]
- Update a table:
updates=[DescriptionUpdate(item_id="in.c-my-bucket.my-table", description="New table description")]
- Update a column:
updates=[DescriptionUpdate(item_id="in.c-my-bucket.my-table.my_column", description="New column description")]get_streams tool
Retrieves the Data Streams in the project: sources receiving events and the sinks writing them to tables.
Data Streams receive events over HTTP (webhooks, apps) or OTLP (OpenTelemetry logs/metrics/traces) and
store them in Storage tables in near real time, without any component configuration.
Each stream includes its `endpoint_url` (with the secret embedded) and, for OTLP, `otlp_base_url` plus
`otlp_secret`. Give these only to the user who asked; they authenticate writes into the project.
Sessions with read-only access get them hidden (`secret_redacted=true`).
If Data Streams are not enabled in the project, the tool fails with the project feature key and a link to
the Data Streams page where the user can request the feature. Tell the user how to request it.
EXAMPLES:
- source_ids=[] -> all Data Streams with their sinks and endpoints
- source_ids=["github-webhooks"] -> only that streamcreate_stream tool
Creates a Data Stream: a source with an endpoint receiving events and the sinks storing them in tables.
- source_type="http": one sink into `table_id` with the given `columns`. Send events as HTTP POST
requests (any body, JSON recommended) to the returned `endpoint_url`.
- source_type="otlp": three sinks storing logs, metrics and traces into the tables
"in.c-otlp-<source_id>.logs|metrics|traces". Configure the OpenTelemetry SDK/Collector OTLP/HTTP exporter:
OTEL_EXPORTER_OTLP_ENDPOINT=<otlp_base_url> and OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer <otlp_secret>".
Rows appear in the tables in batches, typically within a few minutes.
The returned endpoint embeds a secret: give it only to the user. If Data Streams are not enabled in the
project, the tool fails with the project feature key and a link to the Data Streams page where the user
can request the feature. Tell the user how to request it.analyze_project_structure prompt
Generate a comprehensive analysis prompt for a Keboola project's structure.
This prompt analyzes the project's components, data flow, buckets, tables,
and configurations to provide insights into capabilities and applications.project_health_check prompt
Generate a comprehensive health check analysis for the entire Keboola project.
This one-click prompt analyzes project health, identifies issues, and provides recommendations.data_quality_assessment prompt
Generate a comprehensive data quality assessment for all project data.
One-click analysis of data quality across all buckets and tables.component_usage_summary prompt
Generate a comprehensive summary of all components and their usage patterns.
One-click overview of project components, configurations, and usage analytics.error_analysis_report prompt
Generate an analysis of recent errors and failures across the project.
One-click error analysis with troubleshooting recommendations.create_project_documentation prompt
Generate comprehensive project documentation automatically.
One-click documentation creation for the entire Keboola project.What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 56 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 56 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 56 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 56 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 56 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 56 capabilities; 51 more call code the scanner could not follow, where it may happen
- Tools that touch files22 of 56 capabilities touch files; 29 more call code the scanner could not follow, where it may happen
- Tools that call the network24 of 56 capabilities call the network; 27 more call code the scanner could not follow, where it may happen
Where the code is: 56 handlers in 16 files at commit 75e7fc4266b4
src/keboola_mcp_server/mcp.pytoolsrc/keboola_mcp_server/prompts/keboola_prompts.pyanalyze_project_structure, project_health_check, data_quality_assessment, component_usage_summary, error_analysis_report, create_project_documentationsrc/keboola_mcp_server/tools/components/tools.pyget_components, get_configs, get_config_examples, create_config, update_config, add_config_row, update_config_row, run_sync_action, create_sql_transformation, update_sql_transformationsrc/keboola_mcp_server/tools/data_apps.pymodify_streamlit_data_app, modify_python_js_data_app, create_python_js_data_app_git_credential, get_data_apps, (name computed at run time), create_python_js_data_app_draft, delete_python_js_data_app_draft, get_data_app_preview_linksrc/keboola_mcp_server/tools/doc.pydocs_querysrc/keboola_mcp_server/tools/flow/tools.pycreate_flow, create_conditional_flow, get_flows, update_flow, modify_flow, get_flow_examples, get_flow_schemasrc/keboola_mcp_server/tools/jobs.pyget_jobs, run_jobsrc/keboola_mcp_server/tools/merge_requests/tools.py(name computed at run time)src/keboola_mcp_server/tools/oauth.pycreate_oauth_urlsrc/keboola_mcp_server/tools/project.pyget_project_info, update_project_description, get_accessible_projects, set_project_scope, create_projectsrc/keboola_mcp_server/tools/search.pyfind_component_id, searchsrc/keboola_mcp_server/tools/semantic/tools.py(name computed at run time), get_semantic_context, get_semantic_schema, validate_semantic_querysrc/keboola_mcp_server/tools/sql.py(name computed at run time)src/keboola_mcp_server/tools/storage/shared_buckets.pyget_shared_buckets, link_shared_bucketsrc/keboola_mcp_server/tools/storage/tools.pyget_buckets, get_tables, update_descriptionssrc/keboola_mcp_server/tools/streams.pyget_streams, create_stream
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityNot checked: no tool description could be read from the code
- Dependency manifests1 manifest: pyproject.toml
- Lockfiles checked against OSV1 file resolved and checked against the OSV database; 1 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
- Known vulnerabilities in production dependenciesNo production dependency with a known advisory
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionfastmcp == 4.1.6, mcp == 2.3.0
- 2 checks: undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Credential harvestingNot checked: no tool description could be read from the code
- Tools that read credentials3 of 56 capabilities read credentials; 48 more call code the scanner could not follow, where it may happen
- Environment variables3 capabilities read environment variables (often API keys)
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read (3 only in code no tool reaches)
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (0 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
No known vulnerabilities in the production dependencies that could be checked.
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package. A hosted version is also offered: https://mcp.us-east4.gcp.keboola.com/mcp not assessed a code scan covers the repository, not what runs on the vendor's servers |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | fastmcp == 4.1.6, mcp == 2.3.0 |
| Servers in the code | 1 (test) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-11-16 |
| Signed releases | not checked yet |
Where it is published
| MCP Registry | com.keboola/mcp |
|---|---|
| Hosted endpoint | https://mcp.us-east4.gcp.keboola.com/mcp |
| Listed in | 5 catalogs (docker_catalog, github_search, glama, mcp_registry, mcpservers_org) |
| License | MIT |
| Created | 2025-01-12 |
| Topics | data-platform etl-pipeline keboola-platform mcp mcp-server model-context-protocol |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.