Skip to main content
Glama

Query

query
Read-onlyIdempotent

Run a Socrata SoQL query against a Connecticut Open Data dataset by resource_id (e.g. "28fr-iqnx"). Filter with where/select/group/order (SoQL clauses, without the leading $) plus limit/offset. Returns matching rows as JSON.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupNoSoQL $group column(s).
limitNoMax rows (default Socrata 1000).
orderNoSoQL $order, e.g. "date DESC".
whereNoSoQL $where filter, e.g. "year >= 2020 AND status = 'Active'".
offsetNoPagination offset.
selectNoSoQL $select, e.g. "name, count(*) AS n".
resource_idYesDataset id, e.g. "28fr-iqnx" (from datasets).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "limit": 100,
      -    "resource_id": "28fr-iqnx",
      -    "where": "year >= 2020"
      -  },
      -  {
      -    "group": "name",
      -    "order": "count DESC",
      -    "resource_id": "28fr-iqnx",
      -    "select": "name, count(*) AS count"
      -  }
      -]New value: +[
      +  {
      +    "limit": 20,
      +    "resource_id": "28fr-iqnx"
      +  },
      +  {
      +    "limit": 20,
      +    "resource_id": "28fr-iqnx",
      +    "select": "lastupdatedate"
      +  }
      +]
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "limit": 100,
      +    "resource_id": "28fr-iqnx",
      +    "where": "year >= 2020"
      +  },
      +  {
      +    "group": "name",
      +    "order": "count DESC",
      +    "resource_id": "28fr-iqnx",
      +    "select": "name, count(*) AS count"
      +  }
      +]
  3. First observed

TDQS

A4/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 usefully adds the return shape ('returns matching rows as JSON') and the clause-prefix constraint, but says nothing about Socrata rate limits, throttling, or how large result sets are handled.

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?

Two sentences, front-loaded with the verb and resource, then the parameter contract. No filler, no restating the title, and the constraint about dropping '$' is placed with the parameter list where it belongs.

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?

With no output schema, the description covers the return format ('matching rows as JSON') and all seven parameters are documented in the schema. It is complete enough to call correctly, though pagination interplay between limit and offset and default behavior are left to the schema.

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 baseline is 3, but the description adds genuinely non-schema information: the SoQL clauses are passed without the leading '$' (where/select/group/order), which is exactly the kind of detail that prevents malformed calls. It also names the resource_id example format.

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 (run a SoQL query), a specific resource (Connecticut Open Data datasets), and the keying parameter (resource_id) with an example value. This is clearly distinguishable from sibling tools like datasets or metadata, which handle discovery rather than row retrieval.

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 by the phrasing (query a dataset by id) and the resource_id description points at 'datasets' as the source of ids, which is a useful hint about the sibling relationship. However, it never explicitly states when to choose this over alternatives or what preconditions apply (e.g., id must come from a prior datasets call).

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.