Skip to main content
Glama
canada-calgary-open-data-mcp

canada-calgary-open-data-mcp

Query Calgary Socrata dataset

query_calgary_socrata_dataset
Read-onlyIdempotent

Query live City of Calgary Socrata datasets by resource ID with optional SoQL filters, sorting, field selection, full-text search, and pagination.

Instructions

Query live rows from any City of Calgary Socrata dataset by four-by-four resource ID using optional SoQL parameters.

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": {
      "dataset_id": "<dataset_id>"
    },
    "name": "query_calgary_socrata_dataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoOptional full-text search term.
limitNoMaximum records to return (default 10).
orderNoOptional SoQL $order sort clause.
whereNoOptional SoQL $where filter expression.
offsetNoPagination offset (default 0).
selectNoOptional comma-separated list of column names to return.
dataset_idYesSocrata four-by-four dataset ID (for example "c2es-76ed").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description usefully adds that rows are 'live' (fresh data from the source dataset) and that parameters are optional SoQL clauses. However, for an openWorld tool it says nothing about rate limiting/throttling, behavior on an invalid dataset ID, or that results are capped at 50 rows (the schema notes the cap but not the description's implications).

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?

One sentence, front-loaded with verb and resource, with no filler. Every clause (live rows, dataset ID, optional SoQL) carries information the agent needs.

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

Completeness3/5

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

For a 7-parameter open-world query tool with no output schema, the definition covers the core purpose but omits the return-shape implications (rows truncated by limit, max 50), the prerequisite of sourcing a dataset ID from the catalog, and error behavior. Adequate but with clear gaps an agent would want filled before calling.

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?

Schema description coverage is 100%, so the baseline is 3. The description adds a bit beyond the schema: it frames the non-required parameters as 'optional SoQL parameters' and clarifies the dataset_id is a 'four-by-four resource ID', helping the agent understand the SoQL family (where/order/select) and ID format expectations.

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?

States a specific verb (query), a precise resource (live rows), the scope (any City of Calgary Socrata dataset), the key identifier (four-by-four resource ID), and the query dialect (SoQL). This clearly separates it from siblings like get_calgary_dataset_metadata and list_calgary_dataset_categories, which deal with metadata rather than rows.

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?

Usage is implied: fetch data rows from a known dataset ID. But there is no explicit when-to-use guidance, no mention of the prerequisite of finding a dataset_id via search_calgary_opendata_catalog or get_calgary_dataset_metadata, and no when-not guidance. The agent must infer the workflow order on its own.

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