terno
v1.0.39Query, explore, and manage your databases through natural conversation.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
terno_guide About this connector
Orientation for this connector: what it can do, the canonical tool sequence, and what changed in recent versions. Call at most once per conversation, when you are unsure what the connector supports — not before every task.
| Parameter | Type | Description |
|---|---|---|
mode | string | 'tour' for what the connector does and how to use it; 'whats_new' for the changelog. Default 'tour'. |
get_org_prompt Read the organisation prompt
Get this organisation's custom system-prompt addendum — text appended to the default LLM system prompt for all users in this organisation. The response includes `content_hash` — pass it back as `expected_hash` when you later edit or replace this prompt. Paginated like a file read: returns up to `limit` lines (default 2000) starting at 1-indexed `offset`; when `has_more` is true, page through with `next_offset`. `content_hash` always covers the full prompt regardless of which page you read.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of lines to return (default 2000) |
offset | integer | 1-indexed line number to start reading from (default 1) |
grep_org_prompt Search the organisation prompt
Regex-search the organisation prompt's own text and return matching lines (1-indexed). Use to find a specific passage before editing it with edit_org_prompt.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Regular expression matched (case-insensitive) against the org prompt's lines |
list_datasources List databases
List all configured database connections
list_tables List tables
List all tables in a datasource with their public names
| Parameter | Type | Description |
|---|---|---|
datasource * | string | Datasource name or ID |
list_table_columns List columns in a table
List all columns for a table with their public names and types
| Parameter | Type | Description |
|---|---|---|
datasource * | string | Datasource name or ID |
table * | string | Table name or ID |
execute_query Run a SQL query
Execute a SQL query using high-performance server-side streaming. Returns columns and data rows. Use max_rows to limit the number of rows returned.
| Parameter | Type | Description |
|---|---|---|
datasource * | string | Datasource name or ID |
sql * | string | SQL query to execute (can use public names) |
max_rows | integer | Maximum number of rows to return (optional, returns all rows if not set) |
get_sample_data Preview sample rows
Get sample rows from a table
| Parameter | Type | Description |
|---|---|---|
table_id * | integer | ID of the table |
rows | integer | Number of sample rows (default: 10) |
list_memories List recorded facts
List the memory index (name, one-line description, type, scope — not full content) of persistent facts. Optionally scope to a datasource; global memories are always included. Use `get_memory` to read a full fact.
| Parameter | Type | Description |
|---|---|---|
datasource_id | integer | Optional: include this datasource's scoped memories alongside global ones |
get_memory Read a recorded fact
Fetch the full content of one memory by its `name` (the slug shown in the memory index). The response includes `content_hash` — pass it back as `expected_hash` when you later edit or overwrite this memory.
| Parameter | Type | Description |
|---|---|---|
name * | string | The memory's name/slug, e.g. 'zydus-active-users-join' |
datasource_id | integer | Optional: datasource scope to prefer when resolving the name |
grep_memory Search recorded facts
Regex-search the BODIES of memories and return matching index rows (name/description/type/scope, no bodies). Use to find a fact when you don't know its exact name.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Regular expression matched (case-insensitive) against memory content |
datasource_id | integer | Optional: restrict to global + this datasource's memories |