terno

v1.0.39
io.github.terno-ai/terno Checked 3 hours ago Published 4 days ago

Query, 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.

ParameterTypeDescription
modestring'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.

ParameterTypeDescription
limitintegerMaximum number of lines to return (default 2000)
offsetinteger1-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.

ParameterTypeDescription
pattern *stringRegular 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

ParameterTypeDescription
datasource *stringDatasource name or ID

list_table_columns List columns in a table

List all columns for a table with their public names and types

ParameterTypeDescription
datasource *stringDatasource name or ID
table *stringTable 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.

ParameterTypeDescription
datasource *stringDatasource name or ID
sql *stringSQL query to execute (can use public names)
max_rowsintegerMaximum number of rows to return (optional, returns all rows if not set)

get_sample_data Preview sample rows

Get sample rows from a table

ParameterTypeDescription
table_id *integerID of the table
rowsintegerNumber 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.

ParameterTypeDescription
datasource_idintegerOptional: 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.

ParameterTypeDescription
name *stringThe memory's name/slug, e.g. 'zydus-active-users-join'
datasource_idintegerOptional: 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.

ParameterTypeDescription
pattern *stringRegular expression matched (case-insensitive) against memory content
datasource_idintegerOptional: restrict to global + this datasource's memories