Skip to main content
Glama

Dallas Query

dallas_query
Read-onlyIdempotent

Run a raw SoQL query against any Dallas open-data resource (www.dallasopendata.com) by its Socrata id (8-char like "qv6i-rri7"). Full SoQL: where/select/group/order/limit/offset. Use dallas_datasets to find a resource id, or dallas_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": {
      "limit": 100,
      "where": "status = 'Open'",
      "_apiKey": "your-data-dallas-api-key",
      "resource_id": "qv6i-rri7"
    },
    "name": "dallas_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. "qv6i-rri7".

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-dallas-api-key",
      +    "limit": 100,
      +    "resource_id": "qv6i-rri7",
      +    "where": "status = 'Open'"
      +  },
      +  {
      +    "_apiKey": "your-data-dallas-api-key",
      +    "group": "permit_type",
      +    "order": "cnt DESC",
      +    "resource_id": "8qv6-iprr",
      +    "select": "permit_type, count(*) as cnt"
      +  }
      +]
  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, idempotentHint, destructiveHint=false and openWorldHint=true, so the safety profile is covered by structured data. The description adds useful context — full SoQL clause support and the id format — but says nothing about return shape, pagination behavior beyond the offset param, or rate-limit consequences. With rich annotations the bar is lower, so a 3 fits.

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, with the core action front-loaded and the sibling routing placed after. Every clause earns its place.

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?

For an 8-parameter, 100%-documented, well-annotated read tool with no output schema, the description supplies the essential operational context: endpoint, id format, supported clauses, and alternatives. It stops short of describing what a result row looks like, which is the only meaningful omission.

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, including the default/max limit and the optional app token. The description's enumeration of where/select/group/order/limit/offset confirms the full SoQL surface is supported but adds no syntax or formatting detail beyond the schema. 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 Dallas open-data resource"), gives the domain and the required 8-char Socrata id format, and explicitly distinguishes itself from dallas_datasets and dallas_recent. An agent can identify this as the raw/low-level query tool without opening the schema.

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?

Names both alternatives and the condition that selects each: dallas_datasets to find a resource id, dallas_recent for common ones. The only minor gap is the absence of an explicit "don't use for non-Dallas or non-Socrata sources," but the routing guidance is otherwise concrete and actionable.

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.