Skip to main content
Glama

Georgia Civic Data

query_dataset

Query one topic's gold facts with dimension labels joined in (the district/school/county/demographic names come back on every row). filters is a dict of column → value or list-of-values: FK codes (district_code, school_code, county_fips, demographic) and any categorical column — see describe_dataset's filters for the exact keys and enum values. Use year (exact) OR year_min/year_max (range), never both. detail picks the grain (default is the finest available). Returns rows plus a columns descriptor array (type/role/unit/null-meaning, and is_key_metric flagging the headline column) so you interpret values and NULLs correctly — NULL usually means SUPPRESSED, not zero (see null_semantics). The top-level key_metric echoes which column is the answer. Use columns to project a subset, include_labels=false to skip the joined name columns (codes only), and order_by+order for server-side top-N instead of over-fetching. Pages are small (default 100, max 500); when truncated is true a bulk_export block points at the REST CSV/Parquet endpoint and the source path for the full pull — do not loop pagination to dump a table. A bad filter returns a self-describing error listing the valid keys/values.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearNoExact year. Use this OR year_min/max.
limitNoPage size (default 100, max 500).
orderNoSort direction for order_by: 'asc' or 'desc'.asc
topicYesTopic name, e.g. 'act_scores'.
detailNoGrain (e.g. schools/districts/states); default finest.
offsetNoRow offset for paging (>= 0).
columnsNoProject only these output columns (fact columns + joined label columns). Smaller pages / fewer column reads. Omit for all columns.
filtersNoColumn → value (or list of values) filters. Keys are FK columns (district_code, school_code, county_fips, demographic) and categorical columns; read describe_dataset's `filters` for the exact keys and enum values FIRST. A value list is a union (OR); multiple keys AND together. A wrong key/value returns a self-describing error listing the valid ones.
order_byNoOrder by one fact column or joined label column (for server-side top-N). Default order is the row grain. NULL (suppressed) cells sort LAST in either direction, so a metric top-N is never polluted by suppressed rows.
year_maxNoInclusive upper year bound (range).
year_minNoInclusive lower year bound (range).
main_topicNoMain topic: 'education' or 'census'.education
include_labelsNoJoin district/school/county/demographic name columns (default true); false = codes only (faster, leaner).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure, and it excels: NULL usually means SUPPRESSED not zero, bad filters return a self-describing error, NULL cells sort last, pages are small with max 500, and truncated responses point to a bulk_export endpoint. It also explains the columns descriptor array and key_metric echo, giving an agent a clear picture of what the call will do and what the response means. There is no contradiction with annotations because no annotations exist.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but every sentence earns its place. It opens with the core purpose, then flows through filters, year selection, grain, return shape, projection, sorting, pagination, and error behavior in a logical order. There is no filler, repetition, or vague phrasing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter tool with no annotations, this description is remarkably complete. It covers return semantics, null semantics, sorting, pagination limits, bulk export, label joining, and error handling, and it points to describe_dataset for filter vocabulary. The presence of an output schema means it need not restate the full return shape, and the description still goes beyond that requirement.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is 100%, the description adds substantial meaning beyond the schema: filters is a dict of column to value/list-of-values with OR/AND semantics, year vs year_min/year_max are mutually exclusive, detail defaults to finest grain, columns projects a subset, and order_by sorts NULL-suppressed rows last. It also directs the agent to describe_dataset for the exact valid filter keys and enum values, which is exactly the kind of cross-tool semantic glue the schema cannot provide.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb-resource pair: 'Query one topic's gold facts with dimension labels joined in.' It clearly distinguishes the tool's read/query role from siblings like aggregate, describe_dataset, and distinct_values, and states what comes back on each row. This is far above a tautology and gives an agent an accurate mental model immediately.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives strong in-tool usage rules: use year OR year_min/year_max never both, use order_by+order for server-side top-N, set include_labels=false for leaner pulls, and prefer bulk_export over pagination when truncated. It references describe_dataset for valid filter keys. It does not explicitly say 'use aggregate instead when you need aggregations' or otherwise compare against sibling tools, so it stops just short of a full 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.5/5.0
Disambiguation5/5

Each tool maps to a distinct capability: discovery, schema, values, entity resolution, row query, aggregation, cross-dataset joins, and dimension reads. Even the pairs that sound closest (list_datasets vs search_datasets, describe_dataset vs get_contract) are explicitly differentiated by behavior and use case.

Naming Consistency4/5

Names are uniformly lowercase snake_case and mostly follow a clear verb_noun pattern (describe_dataset, query_dataset, resolve_entity, link_tables). Only aggregate (bare verb) and distinct_values (noun phrase without a verb) deviate slightly from that pattern.

Tool Count5/5

Twelve tools is a well-scoped size for a data-access MCP server. Each tool adds a non-redundant capability, supporting the full workflow from discovery and schema inspection to querying, aggregation, and cross-dataset joins.

Completeness5/5

The surface covers the complete read-only lifecycle: catalog discovery, schema/dimension inspection, value and entity lookup, row-level queries, grouped aggregation, cross-dataset analysis, and dimension table reads. Bulk data access is handled via pointers in query results rather than a dedicated tool, which is a deliberate non-gap for this query-focused server.

Resources