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

canada-calgary-open-data-mcp

Query Calgary building permits

query_calgary_building_permits
Read-onlyIdempotent

Search and filter live City of Calgary building permit records by keyword, SoQL conditions, and sort order to find relevant permits.

Instructions

Query live City of Calgary building permit records from dataset c2es-76ed with optional full-text search, SoQL filter, and sorting.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "query_calgary_building_permits"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoOptional full-text search term (for example "commercial" or "renovation").
limitNoMaximum records to return (default 10).
orderNoOptional SoQL $order sort clause.
whereNoOptional SoQL $where filter expression.
offsetNoPagination offset (default 0).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, covering the safety profile. The description adds only that records are "live" and tied to dataset c2es-76ed; it says nothing about rate limits, result caps, pagination behavior, or what a query costs, so it adds modest context beyond the annotations.

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?

A single front-loaded sentence with no filler: the resource and dataset come first, optional capabilities follow. It is dense but every clause carries information, so only minor gains from structuring (e.g., separating scope from options) are missing.

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?

With five optional parameters, an open-world annotation, and no output schema, the definition is adequate but thin. It never hints at what a permit record contains or how results are paginated, so an agent must inspect the response to understand return shape.

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 five parameters are already documented, including defaults, bounds, and example search terms. The description only echoes the capability categories (search, SoQL where/order, pagination implied) without adding syntax or format detail beyond the schema, making the baseline 3 appropriate.

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?

The description states a specific verb and resource ("Query live City of Calgary building permit records") and even identifies the source dataset c2es-76ed. It does not distinguish this tool from the sibling query_calgary_socrata_dataset, which plausibly covers the same dataset generically, so it falls short of the top mark.

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

Usage Guidelines2/5

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

The second half of the sentence is a feature list (full-text search, SoQL filter, sorting) rather than guidance on when to choose this tool over the generic dataset query sibling. No when-to-use, when-not, or prerequisite conditions are given, leaving the agent to infer routing.

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