Search or enumerate indexed connection entities
Search for (or, with skip_matching, enumerate) connection-scoped
entities in the connection index (tables, columns, and modeling
suggestions). Results are always grouped by table. Powers the Credible
app’s connection schema viewer and the MCP search_database_schema /
search_modeling_suggestions tools. Package-scoped retrieval has moved
to get_context. Results are scoped to what the caller can access
(OpenFGA scoped-access checks).
Paging (enumerate path only). When limit is set on the request,
the enumerate path (no query) returns at most that many distinct
tables in a stable order and reports the total number of in-scope
tables on the Total-Count response header; page forward with offset.
The response body is unchanged — a bare RetrievalResult array — so
existing callers that ignore the header and omit limit are unaffected.
Authorizations
Auth0-issued user JWT. Provide as Authorization: Bearer <token>.
Body
Request body for the search_connection_entities endpoint. Self-contained and scoped to the connection index — it does not reference the broader internal retrieval context. Results are always grouped by table.
Connection scopes to search within. Results are restricted to the union of these scopes, further intersected with what the caller can access. At least one scope is required.
1Natural-language text to semantically match against indexed entities. When null or empty, the endpoint enumerates every indexed entity in scope (no semantic matching) — used by callers that just want to list the contents of a connection.
Restrict results to these entity types. When omitted, all types are returned.
The type of connection-index entity to search for. all is a
convenience marker that matches every concrete type.
all, table, column, dimension, measure, view, join, dimensional_value Restrict results to entities of these origins. When omitted, all origins are returned.
The origin of a connection-index entity. all is a convenience marker
that matches every origin.
all, published, sql_logs, llm_generated When true, also include entities reachable from the scoped tables via joins. Defaults to false.
Minimum cosine-similarity score for a semantic match (ignored when enumerating). Defaults to 0.
Maximum number of table-grouped results to return. Omit for the service default; a value <= 0 returns every matching table.
Maximum number of entities to return per table. A limit is strongly recommended for performance.
Maximum number of dimensional values to return per matched dimension.
Maximum number of distinct tables to return, paged in a stable order
(by connection, catalog, schema, table). Only honored on the
enumerate path (no query); ranked search is not pageable. Omit for
the current unbounded behavior — every in-scope table is returned.
When set, the total number of in-scope tables is reported on the
Total-Count response header so the caller can compute the next
offset, and top_n_results is ignored (the page window bounds the
table count instead).
x >= 1Number of tables to skip before the page (0-based), in the same
stable order as limit. Only honored on the enumerate path. Omit or
0 for the first page.
x >= 0Response
OK
The package info for the result (can be null if the result is not scoped by a package)
The relative URI of the model for the result (can be null if the result is not scoped by a model)
The Malloy source for the result (can be null if the result is not scoped by a source)
Documentation for the source (extracted from Malloy annotations)
Overall score for the result (for comparing multiple results)