Apache Pinot MCP Server
v5.0.0Query and manage Apache Pinot through MCP with typed tools and preview-first safety.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
test_connection Test connection
Probe Pinot connectivity and return diagnostics. Runs three checks — broker connection, a trivial ``SELECT 1`` query, and a controller table listing — and reports which succeeded plus a small sample of tables. Useful for troubleshooting configuration before using other tools. Failure recovery: Individual check failures are returned in ``error``. Verify the broker and controller URLs, credentials, and network, then retry only failed checks.
reload_table_filters Reload table filters
Preview or apply the configured table-filter YAML without restarting. Reads only the path configured by ``PINOT_TABLE_FILTER_FILE``. The YAML must be an object whose ``included_tables`` value is a non-empty list of glob strings. Allowing every table requires an explicit ``allow_all: true``. The default ``dry_run=true`` validates and reports the before/after patterns and returns a short-lived confirmation token. Pass ``dry_run=false`` with that token to apply the exact candidate atomically. Editing the file after preview invalidates the confirmation and requires another preview. Failure recov…
| Parameter | Type | Description |
|---|---|---|
confirmation_token | One-time token returned by a dry-run preview of the exact current filter-file contents. Required when dry_run is false. | |
dry_run | boolean | When true (default), validate and preview the candidate allow-list without changing server state. Pass false explicitly to apply it. |
begin_investigation Begin investigation
Open an owner-bound, budgeted evidence run using a server-owned profile. Supply closed baseline/incident windows in epoch milliseconds. The server checks scope, windows, and authorization before issuing an opaque run ID. Failure recovery: Correct invalid scope/window inputs; expired runs require a new investigation.
| Parameter | Type | Description |
|---|---|---|
baseline_start_ms * | integer | |
end_ms * | integer | |
profile_id * | string | |
service * | string | |
start_ms * | integer |
query_incident Query incident
Collect bounded evidence with fixed tenant/time predicates and citations. The server generates SQL for the selected kind. Candidate filters apply only to onset queries. Failed, unknown, partial, truncated, or late execution is retained as incomplete evidence; it cannot support a qualified finish. Failure recovery: Query attempts consume budget even on failure. Inspect evidence before retrying.
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
run_id * | string | |
candidate |
get_trace Get trace
Retrieve scoped trace rows with actual span and parent-span identifiers. Configure both span columns in the server profile. This fetches recorded relationships and does not infer causality or validate instrumentation coverage. Failure recovery: Use an exact scoped trace ID; inspect completeness before citing.
| Parameter | Type | Description |
|---|---|---|
run_id * | string | |
trace_id * | string |
finish_investigation Finish investigation
Close a run once with authentic citations and an unverified outcome. Choose proposed for an adequately supported candidate association, abstained when adequate evidence shows healthy, unrelated, or confounded observations, and incomplete when missing, sparse, stale, partial, or failed evidence prevents evaluating the association. Complete SQL execution can still yield insufficient observations. Missing matched controls in otherwise adequate observations can reveal confounding and support abstention. Proposed requires a hypothesis; proposed/abstained require complete citations. Incomplete req…
| Parameter | Type | Description |
|---|---|---|
citations * | array | |
run_id * | string | |
hypothesis | ||
reason | ||
status | string | Caller decision: proposed for an adequately supported unverified association; abstained for adequate evidence showing healthy, unrelated, or confounded observations; incomplete when required coverage… |
read_query Read query
Run a read-only SQL query against Pinot and return a page of rows. Only a single SELECT (or WITH ... SELECT) statement is allowed; the query is rejected if it contains multiple statements or write/DDL/admin keywords. Results are paginated to keep responses small — use ``limit``/``offset`` and the ``has_more`` flag to page through large result sets. Returns ``QueryResult`` with the page of rows, the column list, fetched row count, a ``has_more`` flag, and native execution metadata. Missing native metadata is unknown; complete execution does not establish dataset coverage. Failure recovery:…
| Parameter | Type | Description |
|---|---|---|
query * | string | A single read-only statement in Pinot SQL: 'SELECT ...' or 'WITH ... SELECT ...'. Stacked statements and DML/DDL/admin keywords (INSERT, UPDATE, DELETE, DROP, SET, ...) are rejected. |
limit | integer | Maximum rows to return in this page. |
offset | integer | Zero-based row offset for pagination. |
list_tables List tables
List Pinot tables visible to this server (subject to table filters). Returns a paginated list of table names. Use ``limit``/``offset`` and the ``has_more`` flag to page through clusters with many tables. Failure recovery: An empty page is success. For authentication/connectivity errors, verify the controller with ``test_connection`` and retry after access is restored.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum tables to return in this page. |
offset | integer | Zero-based offset for pagination. |
get_table_size Table size details
Get a table's storage footprint: reported vs. estimated size in bytes. Use this for capacity/size questions about a whole table. It does NOT list segments (use ``list_segments``) or return row counts/time boundaries (use ``list_segment_metadata``). ``reportedSizeInBytes`` is what the servers currently hosting the segments report; ``estimatedSizeInBytes`` assumes every replica is present. Failure recovery: For not-found errors, copy an exact name from ``list_tables``. Fix permission errors before retrying; retry transient controller failures after a health check.
| Parameter | Type | Description |
|---|---|---|
table_name * | string | Exact Pinot table name, without _OFFLINE/_REALTIME. Use letters, digits, hyphens, or underscores, optionally prefixed by one 'database.' qualifier; whitespace is invalid and '__' is reserved by Pinot.… |
list_segments List segments
List a table's segment names, grouped by table type (OFFLINE/REALTIME). Use this to discover segment names — e.g. to get a ``segment_name`` for ``get_segment_index_metadata``, or to see how a table is partitioned. For per-segment row counts / sizes / time boundaries call ``list_segment_metadata`` instead; for total storage call ``get_table_size``. Segment names are paginated (a busy table can have thousands) — use ``limit``/``offset`` and the ``has_more`` flag to page through them. Failure recovery: An empty page is success. For not-found errors, use an exact name from ``list_tables``;…
| Parameter | Type | Description |
|---|---|---|
table_name * | string | Exact Pinot table name, without _OFFLINE/_REALTIME. Use letters, digits, hyphens, or underscores, optionally prefixed by one 'database.' qualifier; whitespace is invalid and '__' is reserved by Pinot.… |
limit | integer | Maximum segment names to return in this page. |
offset | integer | Zero-based offset for pagination. |
get_segment_index_metadata Index/column details
Get per-column index metadata for ONE segment (which indexes each column has). Use this to inspect how a specific segment is indexed (inverted, sorted, range, etc.). Requires a ``segment_name`` from ``list_segments``. For a segment's row count/size/time boundaries use ``list_segment_metadata``; for the table's declared index *configuration* (not per-segment state) use ``get_table_config``. Failure recovery: A missing segment is non-retryable with the same value; refresh ``list_segments`` and use an exact returned name. Retry transient controller errors after ``test_connection`` succeeds.
| Parameter | Type | Description |
|---|---|---|
segment_name * | string | Exact, case-sensitive opaque segment name returned by list_segments; do not construct, trim, or add a table-type suffix. Pinot defines the length and characters, so this client only requires non-empty… |
table_name * | string | Exact Pinot table name, without _OFFLINE/_REALTIME. Use letters, digits, hyphens, or underscores, optionally prefixed by one 'database.' qualifier; whitespace is invalid and '__' is reserved by Pinot.… |
list_segment_metadata Segment metadata
Get a deterministic page of segment rows, sizes, and time boundaries. Pinot can return thousands of segment objects. Results are sorted by exact segment name, then sliced with ``limit``/``offset``; follow ``has_more`` until false. Use ``list_segments`` when only names are needed. Failure recovery: An empty page is success. For not-found errors, use ``list_tables``; correct permissions before retrying, and retry transient server failures only after ``test_connection`` succeeds.
| Parameter | Type | Description |
|---|---|---|
table_name * | string | Exact Pinot table name, without _OFFLINE/_REALTIME. Use letters, digits, hyphens, or underscores, optionally prefixed by one 'database.' qualifier; whitespace is invalid and '__' is reserved by Pinot.… |
limit | integer | Maximum segment metadata objects in this page. |
offset | integer | Zero-based segment offset for pagination. |
create_schema Create schema
Preview or create a new Pinot schema without replacing an existing schema. The default preview performs strict local structural validation and returns a short-lived confirmation token bound to the exact normalized schema. Pass that token with ``dry_run=false`` to apply. Replacement belongs in ``update_schema``. Failure recovery: Invalid JSON, missing ``schemaName``, and controller validation failures are non-retryable until corrected. Permission failures require access changes; retry transient controller failures only after connectivity is restored.
| Parameter | Type | Description |
|---|---|---|
schema * | object | Structured Pinot schema. schemaName is required. |
confirmation_token | Token returned by a preview of this exact payload. | |
dry_run | boolean | Preview safely (default); false requests application. |
update_schema Update schema
Update an existing Pinot schema. Accepts a typed schema object. This can change column definitions on a live table; the default ``dry_run=true`` previews without applying and returns a confirmation token bound to the exact replacement. Failure recovery: Invalid JSON/name or schema validation failures require a corrected payload; do not retry unchanged. Fix permission errors first, and retry transient controller failures only after connectivity is restored.
| Parameter | Type | Description |
|---|---|---|
schema * | object | Complete replacement schema; schemaName must match. |
schema_name * | string | Exact Pinot schema name. It normally matches the table name without an _OFFLINE/_REALTIME suffix; use letters, digits, hyphens, or underscores, optionally prefixed by one 'database.' qualifier. |
confirmation_token | Token returned by a preview of this exact payload. | |
dry_run | boolean | Preview safely (default); false requests application. |
reload | boolean | Reload affected segments after updating. |
get_schema Get schema
Get one Pinot schema, including dimensions, metrics, time, and primary keys. This is a single-object lookup, not a list, so pagination does not apply. The output preserves additional fields introduced by the connected Pinot version. Failure recovery: For not-found errors, pass the table's exact schema name (normally the table name without a type suffix). Fix permissions before retrying; retry transient controller failures after ``test_connection`` succeeds.
| Parameter | Type | Description |
|---|---|---|
schema_name * | string | Exact Pinot schema name. It normally matches the table name without an _OFFLINE/_REALTIME suffix; use letters, digits, hyphens, or underscores, optionally prefixed by one 'database.' qualifier. |
create_table_config Create table config
Create a new Pinot table configuration. Accepts a typed table-config object. The default ``dry_run=true`` asks Pinot to validate the payload and returns a confirmation token without applying. Failure recovery: Invalid JSON, missing ``tableName``, and controller validation failures need a corrected payload; do not retry unchanged. Fix access failures first, and retry transient controller errors after connectivity is restored.
| Parameter | Type | Description |
|---|---|---|
table_config * | object | Complete structured Pinot table configuration. |
confirmation_token | Token returned by a preview of this exact payload. | |
dry_run | boolean | Preview safely (default); false requests application. |
update_table_config Update table config
Update an existing Pinot table configuration. Accepts a typed replacement table-config object. This changes a live table; the default ``dry_run=true`` asks Pinot to validate it, compares it with the current configuration, and returns a token without applying. Failure recovery: Invalid JSON/name or controller validation failures require a corrected payload; do not retry unchanged. Fix access errors first, and retry transient controller failures only after connectivity is restored.
| Parameter | Type | Description |
|---|---|---|
table_config * | object | Complete replacement table configuration. |
table_name * | string | Exact Pinot table name, without _OFFLINE/_REALTIME. Use letters, digits, hyphens, or underscores, optionally prefixed by one 'database.' qualifier; whitespace is invalid and '__' is reserved by Pinot.… |
confirmation_token | Token returned by a preview of this exact payload. | |
dry_run | boolean | Preview safely (default); false requests application. |
get_table_config Get table config
Get one table's indexing, retention, tenant, and ingestion configuration. This is a single-object lookup, not a list, so pagination does not apply. Set ``table_type`` only when one side of a hybrid table is needed. Failure recovery: For not-found errors, use an exact name from ``list_tables`` and a valid table type. Fix permissions before retrying; retry transient controller failures after ``test_connection`` succeeds.
| Parameter | Type | Description |
|---|---|---|
table_name * | string | Exact Pinot table name, without _OFFLINE/_REALTIME. Use letters, digits, hyphens, or underscores, optionally prefixed by one 'database.' qualifier; whitespace is invalid and '__' is reserved by Pinot.… |
table_type | Restrict to one table type; omit to return both when present. |