Skip to main content
Glama
sf-opendata-business-registry-mcp

sf-opendata-business-registry-mcp

Query San Francisco dataset resource

query_sf_dataset_resource
Read-onlyIdempotent

Query live rows from any San Francisco DataSF Socrata dataset by 4x4 resource ID, with optional full-text filtering, row limits, and pagination for business registry and KYB workflows.

Instructions

Query live JSON rows from any San Francisco DataSF Socrata dataset using its 4x4 resource identifier.

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": {
      "dataset_id": "<dataset_id>"
    },
    "name": "query_sf_dataset_resource"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum rows to return (default 10).
queryNoOptional full-text filter query.
offsetNoPagination offset (default 0).
dataset_idYes4x4 Socrata resource ID (from search_sf_opendata_catalog, e.g. "g8m3-pdis").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.2/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 and network profile is covered. The description adds only that rows are 'live JSON', implying freshness and format, but says nothing about rate limits, failure modes, or result shape beyond what annotations provide.

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 front-loaded sentence with no filler; the verb, resource scope, and key identifier format all appear immediately. It is tight but so terse that it leaves no room for the routing information an agent would benefit from.

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 four-parameter read tool with full annotation coverage and no output schema, the description covers the essentials of what is queried. However, it omits how to obtain the required dataset_id and how this generic query relates to the specialized sibling tools, which an agent needs when choosing among them.

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 all four parameters (dataset_id, query, limit, offset) are already documented in the schema, giving a baseline of 3. The description's '4x4 resource identifier' echoes the dataset_id description rather than adding new meaning, and the limit ceiling of 25 and pagination semantics are left entirely to 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) and resource (live JSON rows from any San Francisco DataSF Socrata dataset), and the 'any dataset' phrasing implicitly separates it from the narrow sibling queries like query_sf_businesses_by_zip. It stops short of naming an alternative explicitly, but an agent can tell what it does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance in the description itself. The only routing hint ('from search_sf_opendata_catalog') lives in the schema's dataset_id field rather than the description, so the agent gets no stated relationship to the catalog or the specialized business-query siblings.

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