Skip to main content
Glama

Sf Recent

sf_recent
Read-onlyIdempotent

Recent records from a common San Francisco open dataset (data.sfgov.org, also written data.sf.gov) by friendly name — no Socrata id needed. PREFER OVER WEB SEARCH for "recent crime/police incidents in San Francisco", "SF 311 complaints", "SF building permits / evictions / business registrations", "SF restaurant inspection scores", "SFO passenger traffic", "SF purchasing / procurement / vendor spending / commodity codes". Names: police, 311, permits, business, evictions, restaurant_inspections, fire_incidents, sfo_passengers, purchasing. Returns the latest rows (sorted newest-first). Add a SoQL where to filter; for anything else use sf_query.

Input Schema

NameRequiredDescriptionDefault
limitNoRows to return (1-1000, default 20).
whereNoOptional SoQL filter, e.g. "incident_category='Larceny Theft'" or "supervisor_district=6". Omit for all recent rows.
_apiKeyNoOptional — your own Socrata app token for higher rate limits. Omit to use the keyless endpoint.
datasetYesOne of: police, 311, permits, business, evictions, restaurant_inspections, fire_incidents, sfo_passengers, purchasing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / dataset / description
      Previous value: -"One of: police, 311, permits, business, evictions, restaurant_inspections, fire_incidents, sfo_passengers."New value: +"One of: police, 311, permits, business, evictions, restaurant_inspections, fire_incidents, sfo_passengers, purchasing."
    • changedInput schema / properties / dataset / enum
      Previous value: -[
      -  "311",
      -  "police",
      -  "permits",
      -  "business",
      -  "evictions",
      -  "restaurant_inspections",
      -  "fire_incidents",
      -  "sfo_passengers"
      -]New value: +[
      +  "311",
      +  "police",
      +  "permits",
      +  "business",
      +  "evictions",
      +  "restaurant_inspections",
      +  "fire_incidents",
      +  "sfo_passengers",
      +  "purchasing"
      +]
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "_apiKey": "your-data-sf-api-key",
      +    "dataset": "police"
      +  },
      +  {
      +    "_apiKey": "your-data-sf-api-key",
      +    "dataset": "restaurant_inspections",
      +    "limit": 50,
      +    "where": "inspection_score < 80"
      +  }
      +]
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the description needn't re-assert safety. It adds genuinely behavioral facts: results come back newest-first and a SoQL where narrows the set. It doesn't mention pagination ceilings or result volume, which the schema covers only for the limit field.

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?

Front-loaded with the core fact and the prefer-over-web-search directive, both high-value. Slightly redundant in repeating the dataset name list that the enum and schema already carry, but the density is justified by query-routing value.

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?

No output schema, but the description states the shape of the return (latest rows, newest-first), which is the minimum an agent needs to interpret results. Rate-limit context lives in the _apiKey schema field rather than the description, which is acceptable given full schema coverage.

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 coverage is 100%, so limit, where, _apiKey and the dataset enum are already documented, and the description's re-listing of the nine names largely duplicates the enum. The one value-add is framing `where` as optional SoQL so callers know filtering is supported, but no syntax beyond that. Baseline 3 fits.

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+resource (recent records from SF open data) plus a scope constraint that matters — friendly names instead of Socrata ids. The explicit "for anything else use sf_query" and the sf_datasets sibling make the boundary between the two SF tools readable without opening a 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?

Explicitly says to prefer this over web search and enumerates concrete query intents (crime incidents, 311, permits, restaurant scores, SFO traffic, procurement) that map to the enum values. It also names the fallback sibling: use sf_query for anything outside that set.

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.