Skip to main content
Glama

Seattle Query

seattle_query
Read-onlyIdempotent

Run a raw SoQL query against any Seattle open-data resource (data.seattle.gov) by its Socrata id (8-char like "tazs-3rd5"). Full SoQL: where/select/group/order/limit/offset. Use seattle_datasets to find a resource id, or seattle_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",
      "limit": 10,
      "order": "count(*) DESC",
      "select": "offense, count(*)",
      "_apiKey": "your-data-seattle-api-key",
      "resource_id": "tazs-3rd5"
    },
    "name": "seattle_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupNoSoQL $group.
limitNoMax rows (default 100, max 5000).
orderNoSoQL $order (e.g. "report_date_time DESC").
whereNoSoQL $where filter.
offsetNoRow offset for paging.
selectNoSoQL $select (e.g. "offense, count(*)").
_apiKeyNoOptional, your own Socrata app token for higher rate limits. Omit to use the keyless endpoint.
resource_idYesSocrata resource id, e.g. "tazs-3rd5" (crime data).

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-seattle-api-key",
      +    "group": "offense",
      +    "limit": 10,
      +    "order": "count(*) DESC",
      +    "resource_id": "tazs-3rd5",
      +    "select": "offense, count(*)"
      +  },
      +  {
      +    "_apiKey": "your-data-seattle-api-key",
      +    "limit": 100,
      +    "resource_id": "wvfv-dwka",
      +    "where": "issue_date >= '2024-01-01'"
      +  }
      +]
  3. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is fully covered without the description. The description adds useful capability context (full SoQL expressiveness across any resource) but says nothing about result shape, paging behavior, or failure modes on a bad resource id or malformed SoQL.

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?

Three short sentences, zero filler, front-loaded with the core action and the id format before the routing guidance. Nothing is repeated unnecessarily.

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 8 parameters, one required, full schema coverage and no output schema, the description gives enough to select and call the tool correctly. The only mild gap is that paging/result-size expectations and error behavior are left entirely to the schema's limit/offset notes.

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 including _apiKey, limit bounds (max 5000), and the resource id example is already documented in the schema. The description's clause list largely restates what the properties say; it confirms full SoQL is passed through but adds no syntax or format detail beyond the schema.

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 — running a raw SoQL query against any data.seattle.gov resource — and pins down the identity format (8-char Socrata id like "tazs-3rd5"). It is clearly distinguishable from seattle_datasets (discovery) and seattle_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 Guidelines5/5

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

Explicitly routes the agent: use seattle_datasets to resolve a resource id, or seattle_recent for common datasets, implying this tool is for everything else. It also enumerates the full SoQL clause set supported (where/select/group/order/limit/offset), so the agent knows it is not a simplified query surface.

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.