Skip to main content

Operational Tools

Connections (3), Workspaces (2), Knowledge Base (3), and Notion (4) tools.

check_budget lives on the Query Intelligence reference.


Connections

list_database_connections

List all configured database connections in the gateway.

Parameters: None (uses current auth context to scope to the org).

Returns: List of connections: name, database type, host/database, status, last-seen.

When to use: First call in any session. Confirm which connections are available before calling any other tool.


connection_health

Latency percentiles and error rates for all or a specific connection.

Parameters:

ParameterTypeRequiredDescription
connectionstringNoConnection name (omit for all connections)

Returns: Per-connection: p50/p95/p99 latency, error rate (last 100 queries), current status (healthy/degraded/unreachable).


connector_capabilities

Connector tier classification and feature availability for a connection.

Parameters:

ParameterTypeRequiredDescription
connectionstringYesConnection name

Returns: Tier (1/2/3), available features (cost estimation, explain plan, schema stats, etc.), dialect.

Tier breakdown:

TierConnectorsFeatures
1PostgreSQL, DuckDB, Snowflake, BigQueryFull: cost estimation, explain, schema stats, FK discovery
2MySQL, SQLite, SQL ServerPartial: explain and schema stats, limited cost estimation
3DatabricksBasic: query execution and schema, limited explain

Workspaces

list_workspace_projects

List the dbt and notebook projects available in the user's workspace.

Parameters: None (uses current auth context to scope to the user/org).

Returns: List of workspace projects with name and type.


run_notebook

Run a .py notebook in a sandboxed cloud Kubernetes pod. Writes the notebook into the user's notebook workspace and executes it with sp export session.

Parameters:

ParameterTypeRequiredDescription
filenamestringYesName of the .py file (e.g. analysis.py), relative path inside the workspace
codestringYesFull contents of the .py notebook file
agent_branchstringNoDeprecated legacy label; ignored for project routing

Returns: stdout/stderr from the run plus a URL to view the notebook in the browser.

Sandboxing: Notebook pods run under gVisor with per-org NetworkPolicy isolation, read-only rootfs, and blocked IMDS egress. See Security.


Knowledge Base

get_knowledge

Load baseline knowledge docs plus task-relevant entries for a session.

Parameters:

ParameterTypeRequiredDescription
task_descriptionstringNoTask text used to surface relevant entries

Returns: Baseline docs (understanding, conventions) plus matching task-relevant docs.


search_knowledge

Agent-directed search across the knowledge base.

Parameters:

ParameterTypeRequiredDescription
querystringYesSearch query (max 200 chars)
scopestringNoScope filter
scope_refstringNoScope reference (e.g. project name)
categorystringNoCategory filter
limitintegerNoMax results (default: 20, capped at 50)

Returns: Matching docs: ID, scope, category, title, and a snippet.


propose_knowledge

Propose a new knowledge entry after a run. Entries are auto-accepted.

Parameters:

ParameterTypeRequiredDescription
scopestringYesScope (e.g. org, project)
scope_refstringNoScope reference
categorystringYesOne of: understanding, conventions, decisions, domain-rules, debugging, quirks
titlestringYesEntry title
bodystringYesEntry body
supersedesstringNoID of a doc this entry replaces

Returns: Confirmation with the new doc ID.


Notion Integration

list_notion_integrations

List configured Notion integrations with their search scope and report destination.

Parameters: None.

Returns: Per-integration: name, search scope, report destination.


Search Notion pages visible to an integration's access token.

Parameters:

ParameterTypeRequiredDescription
integration_namestringYesConfigured Notion integration name
querystringYesSearch query

Returns: Matching Notion pages with IDs and titles.


notion_fetch_page

Fetch the full content of a Notion page by ID.

Parameters:

ParameterTypeRequiredDescription
integration_namestringYesConfigured Notion integration name
page_idstringYesNotion page ID

Returns: Full page content.


notion_create_page

Create a page under the integration's configured report destination.

Parameters:

ParameterTypeRequiredDescription
integration_namestringYesConfigured Notion integration name
titlestringYesPage title
contentstringYesPage content

Returns: Created page ID and URL.