Skip to content

Settings and tools reference (Enterprise)

Enterprise only. This page is about the Portward gateway that a company runs in its own cloud. If Portward runs it for you, on the web, this page doesn’t apply: see the page for Portward on the web.

This page lists the config file keys that shape governance, and every tool the two connectors give Claude and ChatGPT.

The gateway reads portward.toml. On AWS, the stack’s parameters write this file, and on Google Cloud, your Terraform settings write it. Restart the gateway after a change. What an admin adds in the console is added to the config file’s settings, and it can’t remove anything the file lists.

[auth], with sign-in through your directory

Section titled “[auth], with sign-in through your directory”
KeyWhat it doesDefault
directoryYour directory’s https sign-in address (its OpenID Connect issuer)Required
client_idThe app registered for this gateway in your directoryRequired
client_secret_envThe environment variable that holds the app’s secretPORTWARD_DIRECTORY_SECRET
admin_groupsGroups whose members are admins, as the directory sends themNone
admin_subjectsAdmins by sign-in id or verified emailNone
user_groupsGroups whose members may use the data connectorNone
usersOther data users, as sign-in ids, verified emails or "@yourcompany.com". [] means admins and user groups only. Without the line, everyone the directory signs in.No line
groups_claimThe sign-in token claim that holds the groupsgroups
scopesExtra sign-in scopes, such as ["groups"] for OktaNone
subject_claimThe claim that logs and records show as the personsub
step_upAsk for a fresh sign-in before changes that give more accesstrue
redirect_urisExact https return addresses of apps other than Claude, ChatGPT and local onesNone

With WorkOS or another provider that issues its own tokens, [auth] takes issuer, jwks_url, audience, roles_claim and admin_roles instead of directory, client_id and the group keys (Sign-in setup).

KeyWhat it doesDefault
public_urlThe gateway’s address
setup_hostsDatabase hosts setup may connect to. "*.corp.example" covers a domain.None
min_group_sizeSmallest group a Totals only column is summed or averaged over (2 at least)5
max_rowsMost rows one answer returns200
timeout_msQuery time limit for databases, files and apps5000
warehouse_timeout_msQuery time limit for warehouses60000
records_pathThe records file, next to the config fileportward.db
KeyWhat it does
kindsThe kinds of source setup may connect, such as ["postgres", "snowflake"]. Without it, every kind.
[setup.sign_in.<kind>]For sources people connect by signing in (Microsoft 365, Google Drive). Takes client_id_env, an optional client_secret_env, and for Microsoft, tenant.

You can also define sources in the config file, with rules per column:

[sources.tables.customers.columns.email]
ai = "token" # "token" (the default for a listed column), "aggregate" or "plain"
person = "reveal" # "plain", "reveal", "mask" or "hidden"; only for a token column
prefix = "EMAIL" # the token type
share = true # people may send it to the AI

person = "reveal" is Click to show, and ai = "aggregate" is Totals only. A column that the config file tokenizes stays a token. Setup and the console can’t make it a real value.

The data connector is at https://<your gateway>/mcp, for everyone who asks questions. Each person sees only the datasets they may use.

ToolWhat it does
list_datasetsLists the datasets, columns, token columns, definitions and links the person may query
describeDescribes one dataset with its columns, definitions and a few sample rows, with token columns as tokens. Makes an answer record.
queryRuns one read-only SELECT with the AI’s stated assumptions, shows the results table and makes an answer record
suggest_linksRanks columns in other sources that likely match a column of this dataset, by shared values (counts only), and shows the person a picker
save_linkSaves the match the person chose in chat

The admin connector is at https://<your gateway>/admin/mcp, for admins only. These tools return metadata, never data values. The tools that change something show a card that a person approves.

ToolWhat it does
setupOpens the setup widget for sources, access rules and context. Can open prefilled for a kind of source.
propose_accessProposes changes to exposure and column rules as a review card
context_templateReturns a dataset’s columns and the context template, with any saved context
draft_contextShows a context draft, checked against the data, for a person to edit and save
governanceOpens the governance view, with links to confirm, definitions to settle and recent activity
review_queueLists columns whose definition is missing or a draft, most used first
assumptionsLists recent assumptions the AI made when answering
draft_definitionSaves a draft definition. Never confirms one.
confirm_definitionProposes a definition as a review card
linksLists links between sources, who chose each one and its state
confirm_linkProposes confirming a link as a review card
access_summaryShows queries, people and reveals for each column
reveal_logShows who revealed, shared or matched which column, and when. Never the values.
setup_logShows who changed setup, and when
evidenceReturns the evidence pack for one answer record, or the last one, with a download