Skip to main content
Glama

Nova Scotia Data Explorer

Query a Nova Scotia Open Dataset

query_dataset

Run a SoQL query against a Nova Scotia Open Data dataset. SoQL is SQL-like.

Key clauses (combine with &): $select=col1,col2 — choose columns $where=field='value' — filter rows (use single quotes for strings) $where=field like '%val%' — partial match $order=field DESC — sort $limit=50 — row count (default 25, max 50000) $offset=50 — pagination $group=field — group by (use with aggregate functions) $q=search term — full-text search

Aggregates: count(*), sum(col), avg(col), min(col), max(col)

Examples: $where=year='2024'&$order=total DESC&$limit=10 $select=department,count()&$group=department&$order=count() DESC $where=area like '%Halifax%'&$limit=5

Always call get_dataset_metadata first to find exact field names.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
soqlNoSoQL query string. Multiple clauses joined with '&'. String values in $where must use single quotes: field='value'. Do NOT URL-encode — pass the raw string.
limitNoMax rows to return (1–1000, default 25). Ignored if $limit is in soql.
dataset_idYes8-character Socrata dataset identifier (e.g. '3nka-59nz')

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries full responsibility. It discloses key behaviors: SoQL syntax details, single-quote requirement, no URL encoding, default and maximum limits, pagination via $offset, and full-text search option. It also gives a clear prerequisite (call metadata first). This is a rich behavioral disclosure that goes beyond the minimum.

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 structured with bullets, examples, and a clear call-to-action. Every sentence provides useful information for using SoQL, and the organization makes it easy to scan. It is long but not verbose.

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?

Given the tool's complexity (a full query language) and lack of output schema/annotations, the description covers the essential aspects: query clauses, aggregates, examples, limits, pagination, and the prerequisite to fetch metadata. It is sufficiently complete for an agent to invoke this tool correctly.

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

Parameters4/5

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

The schema already has 100% coverage with descriptive text for all three parameters. The description adds significant value by detailing the SoQL key clauses ($select, $where, $order, $limit, $offset, $group, $q) and aggregate functions, which is essential for constructing the 'soql' parameter. It also clarifies the distinction between the limit parameter (max 1000) and the $limit clause (max 50000), though this nuance is not fully highlighted.

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 'Run a SoQL query against a Nova Scotia Open Data dataset,' which clearly identifies the action (run a query) and target (rows within a specific dataset). This contrasts with siblings like search_datasets (finds datasets) and get_dataset_metadata (returns metadata), making it well-differentiated.

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 concrete usage guidance: it explains the query syntax, provides examples, and explicitly instructs to 'Always call get_dataset_metadata first to find exact field names.' It does not, however, explicitly mention when to use search_datasets as an alternative, so it earns a 4 rather than a 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.6/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: metadata retrieval, category listing, querying, and searching. There is no overlap that would cause an agent to select the wrong tool.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern (get_, list_, query_, search_) and use snake_case throughout, making the set predictable and easy to navigate.

Tool Count5/5

With 4 tools, the set is well-scoped for an open data explorer. Each tool covers an essential workflow step without unnecessary bloat or thinness.

Completeness5/5

The tool set covers the full exploration lifecycle: discover datasets (search, list_categories), understand their schema (get_dataset_metadata), and retrieve data (query_dataset). No obvious gaps for read-only exploration.

Resources