Skip to main content
Glama
jdzhrch

OpenCivicQuery

by jdzhrch

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENCIVICQUERY_HOSTNoHTTP bind address. The Docker image sets `0.0.0.0`.127.0.0.1
OPENCIVICQUERY_AUTH_MODENoAuthentication mode: `open` (no login) or `oauth` (Google sign-in).open
OPENCIVICQUERY_TRANSPORTNoTransport mode: `http` or `stdio`.http
OPENCIVICQUERY_CONFIG_PATHYesPath to the deployment configuration file.
OPENCIVICQUERY_SNAPSHOT_PATHNoFolder for local snapshots.~/.opencivicquery/snapshots
OPENCIVICQUERY_SNAPSHOT_BUCKETNoBucket for Cloud Storage snapshots.
OPENCIVICQUERY_SNAPSHOT_BACKENDNoSnapshot storage backend: `local` or `gcs`.local

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_source_packsA

List the portals and datasets that a source pack documents, with the date each pack was last checked against live data. Datasets outside these packs are still queryable, but their responses carry a ROW GRAIN UNKNOWN warning.

search_datasetsA

Search the Socrata catalog for datasets. Leave domain empty to search every portal, or give a portal hostname to search one. Each result says whether a source pack documents it. Search results do not carry a quality, review, reliability, or publication status.

describe_datasetA

Return a dataset schema, source update time, and, when a source pack documents it, the row grain, counting guidance, and caveats. Call this before writing a query.

query_datasetA

Run a read-only SoQL query with a mandatory row ceiling. The response on success states completeness, warnings, methodology, source update time, the public dataset page, the exact query, a public live-result query_url when the source supports one, and the URI of an immutable evidence snapshot. If completeness is truncated, revise the query or report the limitation. The response also carries presentation_rules, which govern how you must state its figures to the user; obey every rule listed there before you write your reply. Failures return isError=true and an error object with the failure code, message, argument, and http_status. A failed query has no data result or snapshot.

pin_snapshotA

Preserve a temporary query snapshot indefinitely for a published story. Use the snapshot URI returned by query_dataset.

get_snapshotA

Read a temporary or pinned evidence snapshot for verification. The snapshot contains the exact query, frozen rows, source update time, completeness, methodology, and warnings.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 6 tools

Disambiguation5/5

Each tool has a distinct role across the lifecycle: discovering packs/datasets, inspecting schema, running queries, and reading or pinning snapshots. The pair pin_snapshot and get_snapshot is clearly separated by write/preserve versus read/verify semantics. Search and listing tools are differentiated by catalog search versus documented source packs.

Naming Consistency5/5

All tool names follow a consistent snake_case verb_noun pattern (list_source_packs, search_datasets, describe_dataset, query_dataset, pin_snapshot, get_snapshot). The convention is predictable throughout.

Tool Count5/5

Six tools is well scoped for a civic data query server, covering discovery, schema inspection, querying, and evidence snapshots without unnecessary surface area. Each tool clearly earns its place.

Completeness4/5

The surface covers the core workflow from dataset discovery through schema inspection, query execution, and snapshot verification/pinning. Minor gaps exist around managing pinned snapshots, such as listing or unpinning them, but these do not block the primary use case.

Maintenance

ActivityMaintained
ResponsivenessNo issues