Skip to main content
Glama

Cincinnati Query

cincinnati_query
Read-onlyIdempotent

Run a raw SoQL query against any Cincinnati open-data resource (data.cincinnati-oh.gov) by its Socrata id (8-char like "k59e-2pvf"). Full SoQL: where/select/group/order/limit/offset. Use cincinnati_datasets to find a resource id, or cincinnati_recent for the common ones.

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": {
      "group": "offense_type",
      "select": "count(*)",
      "_apiKey": "your-data-cincinnati-api-key",
      "resource_id": "k59e-2pvf"
    },
    "name": "cincinnati_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupNoSoQL $group.
limitNoMax rows (default 100, max 5000).
orderNoSoQL $order.
whereNoSoQL $where filter.
offsetNoRow offset for paging.
selectNoSoQL $select.
_apiKeyNoOptional, your own Socrata app token for higher rate limits. Omit to use the keyless endpoint.
resource_idYesSocrata resource id, e.g. "k59e-2pvf".

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-cincinnati-api-key",
      +    "group": "offense_type",
      +    "resource_id": "k59e-2pvf",
      +    "select": "count(*)"
      +  },
      +  {
      +    "_apiKey": "your-data-cincinnati-api-key",
      +    "limit": 100,
      +    "order": "reported_date DESC",
      +    "resource_id": "k59e-2pvf",
      +    "where": "reported_date >= '2024-01-01'"
      +  }
      +]
  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 readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds the supported SoQL clause set (where/select/group/order/limit/offset) and the resource-id format, but says nothing about row caps, rate limiting, or what a failure looks like — those live only in the schema's _apiKey/limit text.

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?

Three tight sentences, front-loaded with the action and the identifying key before the sibling routing. No filler, though the clause list partially duplicates 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 an 8-parameter query tool with fully documented schema and no output schema, the description covers what it queries, how resources are addressed, and where to get ids. Return shape is implicitly row-oriented SoQL output, so no critical agent need is missing.

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% and each parameter is already documented, including defaults and max rows. The description merely enumerates the same SoQL clauses the schema lists, adding no syntax examples or semantics beyond the schema's provided examples. Baseline 3 applies.

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 ('Run a raw SoQL query against any Cincinnati open-data resource') plus the addressing key (Socrata 8-char id with an example). It is clearly distinguishable from cincinnati_datasets (id discovery) and cincinnati_recent (curated common resources).

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 routes the agent: use cincinnati_datasets to find a resource id, or cincinnati_recent for common ones. That is real when-to-use-which guidance, though it lacks any exclusion (e.g., when raw SoQL is overkill) or a note on unsupported clauses.

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.