Skip to main content
Glama

Richmond Bc Query Dataset

richmond_bc_query_dataset
Read-onlyIdempotent

Query one City of Richmond, British Columbia, Canada public GIS dataset by dataset key (from richmond_bc_list_datasets), e.g. housing_sites, ev_chargers_current, park_washrooms. SQL-like where (e.g. "units > 50" or "name LIKE '%Court%'"), out_fields, order_by, limit (default 50, max 500), offset. Returns attribute rows plus total and next_offset. Geometry is off by default. Contact e-mail and phone fields are removed from every row.

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": {
      "limit": 5,
      "where": "units > 50",
      "dataset": "housing_sites",
      "order_by": "units DESC",
      "out_fields": "name,address,units,housing_type"
    },
    "name": "richmond_bc_query_dataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoRows per page, default 50, max 500.
whereNoSQL where clause. Default "1=1".
offsetNoPagination offset; pass next_offset.
datasetYesDataset key: housing_sites, low_end_market_rental, non_market_housing, co_op_housing, ev_chargers_current, ev_chargers_future, park_washrooms, cooling_drinking_fountains, cooling_community_centres, cooling_libraries, cooling_misters, neighbourhood_boundaries.
order_byNoe.g. "units DESC".
out_fieldsNoComma-separated field names, or "*" (default).
return_geometryNoInclude geometry (default false).

Output Schema

NameRequiredDescriptionDefault
noteNo
limitNo
totalNo
fieldsNo
offsetNo
featuresNo
returnedNo
next_offsetNo
geometry_includedNo
globalIdFieldNameNo
objectIdFieldNameNo
exceededTransferLimitNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), and the description adds real behavior beyond that: geometry excluded by default, contact e-mail/phone fields stripped from every row, and returned metadata of total plus next_offset. It does not mention rate limits, error behavior for an invalid dataset key, or auth requirements.

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?

Front-loaded with the dataset key and its source, then the query parameters, then return/redaction behavior. Dense and largely waste-free, though it restates the `limit` default and max already present in the schema.

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 paginated, filtered read tool with full schema coverage, annotations, and an output schema, the description covers what an agent needs: key source, filter syntax, pagination, return shape, geometry default, and PII redaction.

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 coverage is 100%, so the schema baseline is already a 3. The description goes beyond it by illustrating the SQL-like `where` syntax with concrete examples ("units > 50", "name LIKE '%Court%'") and tying `dataset` to the listing tool, which the schema alone does not convey.

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 and resource: query one City of Richmond public GIS dataset keyed by `dataset`. It gives concrete example keys and points to `richmond_bc_list_datasets` as the source of keys, which cleanly separates it from the sibling dataset-discovery tool and from `richmond_bc_business_licences`.

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

Usage Guidelines4/5

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

Explicitly tells the agent to obtain the `dataset` key from `richmond_bc_list_datasets`, which is the key prerequisite for correct invocation. It does not state exclusions or when to prefer a different sibling, so it stops short of a 5.

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.