Skip to main content
Glama
canada-montreal-open-data-ckan-mcp

canada-montreal-open-data-ckan-mcp

Query Montreal datastore

query_montreal_datastore
Read-onlyIdempotent

Query live tabular records from Montreal's open data datastore by resource ID, with optional keyword search, row limits, and pagination.

Instructions

Query live tabular records from a datastore-enabled resource on donnees.montreal.ca by resource ID and optional keyword.

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_montreal_datastore"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum rows to return (default 10).
queryNoOptional full-text search query across datastore columns.
offsetNoPagination offset (default 0).
resource_idYesCity of Montreal Open Data resource UUID with datastore enabled (from get_montreal_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 declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds 'live' (real-time reads rather than cached) and the datastore-enabled constraint, which is useful context, but it says nothing about failure behavior for non-datastore resources or about result volume/pagination beyond what the schema documents.

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?

A single front-loaded sentence with no filler; the qualifying clauses ('live', 'datastore-enabled', the source domain) each constrain the call meaningfully.

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

Completeness4/5

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

For a simple four-parameter read tool with rich annotations and full schema coverage, the description plus structured fields give an agent everything needed to invoke it. The only slight gap is what happens when the resource lacks datastore support, but with no output schema the description need not explain return values.

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 resource_id, query, limit and offset are all documented in structured data. The description only restates that filtering is by resource ID and optional keyword, matching the schema without adding syntax or semantic detail. Baseline 3 applies when the schema carries the parameter burden.

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?

States a specific verb (query), a specific resource (live tabular records from a datastore-enabled resource), the source domain (donnees.montreal.ca), and the keying (resource ID plus optional keyword). This is clearly a row-level data fetch, distinguishable from sibling listing/search tools, though the description itself does not explicitly name those siblings.

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 'datastore-enabled resource' implies the precondition that the resource must support datastore queries, but there is no explicit when-to-use/when-not guidance and no named alternative for cases where the resource is not datastore-enabled or when the agent only wants metadata (e.g. the dataset-details sibling). Usage is implied rather than stated.

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