Database tables for connectors
This page lists the columns of connectors, connector_accounts, connector_grants, connector_tools, connector_ask_uses, connector_conversation_grants, view_results and view_notes. Database tables says how to read the columns.
connectors
Section titled “connectors”An MCP server a team added, from the catalog or by address. No table holds a token or a key. Those are files in AGENTS_CONNECTORS_DIR.
| Column | Type | Notes |
|---|---|---|
id |
uuid |
key |
team_id |
uuid |
references teams |
name |
text |
|
catalog |
text |
optional; one of jira, confluence, slack, github, gdrive |
url |
text |
|
sign_in |
text |
one of none, oauth, token |
whose |
text |
default 'person'; one of person, team |
instructions |
text |
default '' |
apps |
text |
default 'off'; one of off, on |
apps_allow |
text[] |
default '{}' |
added_by |
uuid |
optional; references people |
tools_read_at |
timestamptz |
optional |
created_at |
timestamptz |
default now() |
Unique (team_id, name). Check ((name ~ '^[a-z][a-z0-9-]{0,39}$') AND (name <> ALL (ARRAY['team-record', 'stage', 'computer', 'team-agents']))). Check ((url ~ '^https://[^[:space:]]+$') AND (length(url) <= 2000)). Check (cardinality(apps_allow) <= 20). Check (length(instructions) <= 4000).
connector_accounts
Section titled “connector_accounts”One sign-in or key for a connector. The tokens are a file named by this row’s id.
| Column | Type | Notes |
|---|---|---|
id |
uuid |
key |
team_id |
uuid |
references teams |
connector_id |
uuid |
references connectors |
person_id |
uuid |
optional; references people |
kind |
text |
one of oauth, token |
label |
text |
|
status |
text |
default 'ok'; one of ok, sign_in_needed |
signed_in_at |
timestamptz |
default now() |
Unique (connector_id, person_id) where (person_id IS NOT NULL). Unique (connector_id) where (person_id IS NULL). Check ((length(label) >= 1) AND (length(label) <= 200)).
connector_grants
Section titled “connector_grants”Which agents may use a connector, and what each tool does for them.
| Column | Type | Notes |
|---|---|---|
id |
uuid |
key |
team_id |
uuid |
references teams |
connector_id |
uuid |
references connectors |
agent_id |
uuid |
optional; references agents |
tools |
jsonb |
default '{}' |
instructions |
text |
default '' |
granted_by |
uuid |
optional; references people |
updated_at |
timestamptz |
default now() |
Unique (connector_id, agent_id) where (agent_id IS NOT NULL). Unique (connector_id) where (agent_id IS NULL). Check (jsonb_typeof(tools) = 'object'). Check (length(instructions) <= 4000).
connector_tools
Section titled “connector_tools”A connector’s tool list as last read, so sessions are served without calling the server.
| Column | Type | Notes |
|---|---|---|
connector_id |
uuid |
references connectors |
name |
text |
|
title |
text |
optional |
description |
text |
default '' |
read_only |
boolean |
optional |
input_schema |
jsonb |
default '{"type": "object"}' |
ui_resource |
text |
optional |
ui_visibility |
text[] |
default '{model,app}' |
read_at |
timestamptz |
default now() |
Primary key (connector_id, name).
connector_ask_uses
Section titled “connector_ask_uses”A tool approval that a gateway call has used. A connector tool that asks runs once for each answered approval.
| Column | Type | Notes |
|---|---|---|
ask_id |
uuid |
key; references asks |
used_at |
timestamptz |
default now() |
connector_conversation_grants
Section titled “connector_conversation_grants”A person’s yes to using their personal account in one team-readable conversation or task, since what the agent reads there is saved where the team can read it.
| Column | Type | Notes |
|---|---|---|
id |
uuid |
key |
connector_id |
uuid |
references connectors |
conversation_id |
uuid |
optional; references conversations |
task_id |
uuid |
optional; references tasks |
person_id |
uuid |
references people |
granted_at |
timestamptz |
default now() |
Unique (connector_id, person_id, conversation_id) where (conversation_id IS NOT NULL). Unique (connector_id, person_id, task_id) where (task_id IS NOT NULL). Check ((conversation_id IS NULL) <> (task_id IS NULL)).
view_results
Section titled “view_results”The input and result of a tool that has a view, for the frame to show.
| Column | Type | Notes |
|---|---|---|
id |
uuid |
key |
team_id |
uuid |
references teams |
connector_id |
uuid |
references connectors |
session_id |
uuid |
references sessions |
person_id |
uuid |
optional; references people |
tool |
text |
|
ui_resource |
text |
|
input |
jsonb |
default '{}' |
result |
jsonb |
|
html |
text |
|
mime_type |
text |
|
resource_meta |
jsonb |
default '{}' |
created_at |
timestamptz |
default now() |
Check ((octet_length((result)) <= 1048576) AND (octet_length(html) <= 1048576)).
view_notes
Section titled “view_notes”Text a view sent for the model to read with the session’s next turn, until a turn takes it.
| Column | Type | Notes |
|---|---|---|
id |
uuid |
key |
team_id |
uuid |
references teams |
session_id |
uuid |
references sessions |
connector_id |
uuid |
references connectors |
person_id |
uuid |
optional; references people |
text |
text |
|
created_at |
timestamptz |
default now() |
taken_at |
timestamptz |
optional |
Check (octet_length(text) <= 8192).