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

canada-edmonton-open-data-mcp

Query Edmonton Socrata dataset

query_edmonton_socrata_dataset
Read-onlyIdempotent

Retrieve live rows from any City of Edmonton Socrata dataset using its four-by-four resource ID and optional SoQL filters, sorting, pagination, and full-text search.

Instructions

Query live rows from any City of Edmonton 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_edmonton_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 "q7d6-ambg").

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 readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds the useful traits that rows are 'live' and that filtering follows SoQL, but says nothing about the limit of 50, rate limits, or error behavior on an invalid dataset ID.

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 zero filler; the action, the resource, the identifier format and the optional filtering are all delivered at once.

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 read-only query tool with full parameter documentation and no output schema, the definition covers what an agent needs to select and call it. It stops short of noting that returned columns vary per dataset or what the row payload looks like, which would help given the absent output schema.

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 coverage is 100% and every parameter carries its own description, so the baseline is 3. The description only echoes that filtering uses 'optional SoQL parameters' and that the ID is a four-by-four resource ID, adding no syntax or format detail beyond the schema.

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 rows from an Edmonton Socrata dataset), and the keying mechanism (four-by-four resource ID). This distinguishes it functionally from metadata/catalog siblings like get_edmonton_dataset_metadata or search_edmonton_opendata_catalog, though it never names an alternative.

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: use this when you already have a four-by-four dataset ID and want rows. There is no explicit when-to-use versus get_edmonton_dataset_metadata or search_edmonton_opendata_catalog, and no stated precondition for obtaining a dataset ID.

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