Skip to main content
Glama
Ontario Open Data CKAN MCP

Ontario Open Data CKAN MCP

Query Ontario DataStore

query_ontario_datastore
Read-onlyIdempotent

Query live tabular records from an Ontario CKAN DataStore resource by UUID, with optional full-text filtering and pagination.

Instructions

Query live tabular records from an active Ontario CKAN DataStore resource UUID, with optional full-text filtering.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "resource_id": "<resource_id>"
    },
    "name": "query_ontario_datastore"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum rows to return (default 10).
queryNoOptional full-text filter across table columns.
offsetNoPagination offset (default 0).
resource_idYesCKAN DataStore resource UUID (check datastore_active in get_ontario_dataset_details).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already establish readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds that records are "live" (queried against the current DataStore rather than a cached copy) and that filtering is optional full-text across columns, which is useful context. It says nothing about row caps or pagination behavior, which the schema covers instead.

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

Conciseness4/5

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

One front-loaded sentence with no wasted preamble and a clear core clause. The trailing "with optional full-text filtering" largely restates the query parameter already described in the schema, so a small amount of the sentence is redundant.

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 read-only filtered-list tool with full schema coverage, no output schema, and annotations covering the safety profile, the description supplies what an agent needs: what is queried, against which resource type, and that filtering is optional. Return shape is loosely indicated by "tabular records," which is sufficient given there is no output schema to explain away.

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

Parameters3/5

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

Schema description coverage is 100%, so all four parameters including limit/defaults and offset semantics are already documented in the schema. The description only echoes the resource_id and query concepts without adding format rules, default behavior, or edge cases. Baseline 3 is appropriate where the schema does the heavy lifting.

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

Purpose4/5

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

Names a specific verb ("Query") and a specific resource ("live tabular records from an active Ontario CKAN DataStore resource UUID"), which is concrete enough to separate it from metadata-lookup or discovery siblings. It never names those siblings explicitly, though, so differentiation is inferred from the resource type rather than stated.

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

Usage Guidelines3/5

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

The phrase "active ... resource UUID" implies a prerequisite (the resource must have DataStore enabled) but gives no explicit when-to-use / when-not-to-use guidance or named alternative. The actionable pointer to checking datastore_active live in get_ontario_dataset_details sits in the schema, not the description, so the description itself leaves routing to inference.

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