Skip to main content
Glama

Calgary Recent

calgary_recent
Read-onlyIdempotent

Recent records from a common Calgary open dataset (data.calgary.ca) by friendly name, no Socrata id needed. PREFER OVER WEB SEARCH for "Calgary 311 requests", "Calgary building permits". Names: 311, permits. Returns the latest rows (newest-first). Add a SoQL where to filter; for anything else use calgary_query.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "_apiKey": "your-data-calgary-api-key",
      "dataset": "311"
    },
    "name": "calgary_recent"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoRows to return (1-1000, default 20).
whereNoOptional SoQL filter, e.g. "incident_category='Larceny Theft'" or "supervisor_district=6". Omit for all recent rows.
_apiKeyNoOptional, your own Socrata app token for higher rate limits. Omit to use the keyless endpoint.
datasetYesOne of: 311, permits.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / _apiKey / description
      Previous value: -"Optional — your own Socrata app token for higher rate limits. Omit to use the keyless endpoint."New value: +"Optional, your own Socrata app token for higher rate limits. Omit to use the keyless endpoint."
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "_apiKey": "your-data-calgary-api-key",
      +    "dataset": "311"
      +  },
      +  {
      +    "_apiKey": "your-data-calgary-api-key",
      +    "dataset": "permits",
      +    "limit": 50,
      +    "where": "permit_type='Building'"
      +  }
      +]
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

The annotations already declare read-only, open-world, idempotent, and non-destructive behavior, so the safety profile is covered. The description adds useful behavioral context: results are the latest rows in newest-first order, friendly dataset names avoid Socrata IDs, and filtering is done via SoQL where. It does not contradict 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.

Conciseness5/5

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

The description is short and front-loaded: it states the resource, the preferred use case, the supported dataset names, the return ordering, and the fallback tool. Every sentence contributes useful selection or invocation guidance.

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 simple read-only recent-records tool with full schema coverage and rich annotations, the description supplies the remaining context an agent needs: dataset names, newest-first return behavior, filtering via where, and the alternative calgary_query. No output schema is present, but the description adequately explains what is returned.

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 the schema already documents limit, where, _apiKey, and the dataset enum. The description reinforces the friendly dataset names and SoQL filtering, but adds little parameter meaning beyond what the schema provides, making the baseline 3 appropriate.

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?

The description states a specific resource and scope: recent records from Calgary open datasets by friendly name, returning newest-first rows. It also distinguishes this from calgary_query and from web search, so an agent can identify the tool's role without opening the schema.

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

Usage Guidelines5/5

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

It explicitly says to prefer this over web search for Calgary 311 requests and building permits, and directs anything else to calgary_query. It also explains that a SoQL where clause can be added for filtering, giving clear when-to-use and when-to-switch guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.