govlake
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GOVLAKE_ORG | No | The organization for row-scoped roles such as care_coordinator, e.g. org-riverbend. | |
| GOVLAKE_ROLE | No | The role the server acts as. Defaults to population_analyst. Can be population_analyst, care_coordinator, or auditor. | population_analyst |
| GOVLAKE_MAX_SCAN_ROWS | No | Maximum estimated rows touched before a request is rejected. Defaults to 10 million. | 10000000 |
| GOVLAKE_PSEUDONYM_KEY | No | Key used for pseudonymizing IDs. If not set, pseudonyms change on restart. | |
| GOVLAKE_QUERY_TIMEOUT_S | No | Maximum running time in seconds before a query is stopped. Defaults to 5 seconds. | 5 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Governed access to a synthetic healthcare lakehouse. You cannot send SQL. Call list_metrics to see what your role may query, then ask in plain English or use query_metric. Identifiers are masked or withheld, and every data request is audited.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| healthA | Report that the server is up, and its version. |
| list_metricsA | List the metrics and datasets your role may query, with their dimensions, grains and columns. Dataset columns show how each is returned (e.g. 'initial', 'year', 'forbidden'). |
| describe_metricB | Describe one metric or dataset your role may query. |
| askA | Ask a plain-English question about a defined metric or dataset, e.g. 'How many encounters per month in 2025 by payer?'. The server maps it to a definition, applies your role's rules, generates SQL itself, and returns the SQL, the result, any masking applied, and an audit id. Denials include a reason_code. |
| query_metricA | Structured form of ask: name a metric or dataset from list_metrics, plus dimensions (metrics), columns (datasets), an optional grain and year. |
| read_auditA | Auditor role only: the most recent audit events (newest last) and whether the audit log's hash chain is intact. Reading the log is itself audited. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Most tools target clearly separate concerns (health, discovery via list_metrics/describe_metric, querying, auditing). The only real overlap is between ask and query_metric, but the descriptions explicitly frame query_metric as the 'structured form of ask', which gives an agent a usable decision rule. Minor residual risk that an agent picks the NL path when structured parameters were intended.
Four of six tools follow a clean verb_noun snake_case pattern (list_metrics, describe_metric, query_metric, read_audit). Deviations are 'health' (bare noun) and 'ask' (bare verb), which are conventional and readable but break the pattern. No style mixing such as camelCase, so the set stays predictable.
Six tools is well-scoped for a governed metric-query server: exactly one liveness probe, two discovery tools, two query entry points, and one audit tool. Every tool earns its place with no redundant entries. Nothing feels thin given the narrow, governance-focused domain.
The surface covers the full lifecycle an agent needs: connectivity check, metric discovery, metric description, two query paths, and audit verification including hash-chain integrity. Gaps are small — no pagination/limit controls on results, and read_audit only exposes the most recent events rather than filtering or time ranges. Agents can work around these, but they are real limitations.