Skip to main content
Glama
us-boston-open-data-ckan

us-boston-open-data-ckan

Query Boston datastore

query_boston_datastore
Read-onlyIdempotent

Query live tabular records from Boston's Analyze Boston datastore by resource ID and optional keyword to retrieve paginated rows for analysis and research.

Instructions

Query live tabular records from a datastore-enabled resource on data.boston.gov by resource ID and optional keyword.

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": {
      "resource_id": "<resource_id>"
    },
    "name": "query_boston_datastore"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum rows to return (default 10).
queryNoOptional full-text search query across datastore columns.
offsetNoPagination offset (default 0).
resource_idYesAnalyze Boston resource UUID with datastore enabled (from get_boston_dataset_details).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.4/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 useful context — that results are 'live' and that the resource must be datastore-enabled — but says nothing about error behavior when the datastore is disabled or about result volume beyond the schema's limit cap.

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 well-formed sentence with the verb, target, and keying strategy front-loaded and no filler. It is efficient, though it could be split to add a short usage clause without bloat.

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 simple read-only paged query with full schema coverage and rich annotations, this is close to sufficient. However, with no output schema, an agent gets no hint about the shape of returned records or their fields, which is the main missing piece.

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 every parameter is already documented in the schema, including limit/offset defaults and the resource_id source (get_boston_dataset_details). The description only restates that resource ID is required and that the keyword search is optional, adding no syntax or matching-behavior 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 (tabular records from a datastore-enabled resource), and the lookup keys (resource ID plus optional keyword). It is clearly distinct from siblings like search_boston_datasets, though it never names them explicitly.

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 rather than stated: the phrase 'datastore-enabled resource' hints that the resource must have the datastore feature, and 'live' implies fresh rather than cached data. There is no explicit when-to-use versus when-not guidance and no named alternative such as get_boston_dataset_details for metadata-only lookups.

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