[Integrations](https://spiral.ai/integrations) › [Grok](https://spiral.ai/integrations/grok) › [DataSF dataset details](https://spiral.ai/integrations/grok/datasf-dataset-details)

# How to Use DataSF dataset details in Grok

Returns metadata and column definitions for one DataSF dataset. Use it to understand what each record represents and choose the right columns before analyzing records.

|  |  |
| --- | --- |
| Model | DataSF dataset details |
| Available through | Alexandria |
| Category | Listings |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with DataSF dataset details in Grok

- Use DataSF dataset details to explain what one row represents in Building Permits, i98e-djp9, and how that affects permit totals.
- Use DataSF dataset details to look this up and give me the result as a table.
- Pull the latest numbers from DataSF dataset details and tell me what changed since last week.
- Check DataSF dataset details and summarize what you find in three bullet points.
- Pull the newest data from DataSF dataset details and give me the result as a table.

## How to set up DataSF dataset details in Grok

Pick the way that suits you. Each takes about two minutes.

### Use the Grok connector

1. **Add a custom connector**: In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

```text
https://api.spiral.ai/mcp
```

2. **Sign in to Spiral and approve**: Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

3. **Check that it is connected**: Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

### Use the Spiral skill

1. **Send Grok this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run DataSF dataset details**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "data-sf-gov/open-data/dataset",
    "input": {
      "dataset_id": "<dataset_id>"
    }
  }'
```

Then paste one of the prompts above: Grok finds DataSF dataset details on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/grok

## DataSF dataset details tools and prices

- [DataSF open data portal · Dataset](https://spiral.ai/tools/alexandria/data-sf-gov/open-data/dataset) (Alexandria): $0.00873 per call.

## What can you do with DataSF dataset details in Grok?

Create a source-backed briefing on San Francisco permits or city service requests. A chat app can help find the appropriate dataset, explain its definitions, and turn selected records into a readable comparison.

### Build a permit activity briefing

Find permit sources through the catalog's categories and tags, inspect their definitions, count the selected period, and retrieve records for a monthly construction briefing. Account for permits that cover multiple addresses.

### Compare neighborhood service requests

Locate the 311 source through catalog discovery, verify its neighborhood and date definitions, and compare matching record totals with a breakdown of requests. Label the result as service requests.

### Create a civic data source guide

Use the portal's categories and tags to find related datasets, then document what each source measures and how its columns are defined. Give researchers a source guide for a specific subject, such as housing.

### Prepare a scoped data extraction

Discover relevant tables using the catalog vocabulary, inspect their schemas, and count matching records before retrieving a defined date range. Use the result to populate a civic analysis project.

### Audit sources behind a civic report

Review the categories, search results, and dataset definitions behind a housing or city services report. Recalculate its record totals and retrieve supporting records so the published figures can be checked.

### Check permit counting assumptions

Inspect the Building Permits documentation, count records for a selected period, and examine repeated permit numbers. Establish whether a report needs address-level rows or a deduplicated permit total.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Grok guides](https://spiral.ai/integrations/grok)

## DataSF dataset details in other agents

- [Amp](https://spiral.ai/integrations/amp/datasf-dataset-details)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/datasf-dataset-details)
- [Claude](https://spiral.ai/integrations/claude-desktop/datasf-dataset-details)
- [Claude Code](https://spiral.ai/integrations/claude-code/datasf-dataset-details)
- [Cline](https://spiral.ai/integrations/cline/datasf-dataset-details)
- [Codex](https://spiral.ai/integrations/codex/datasf-dataset-details)
- [Cursor](https://spiral.ai/integrations/cursor/datasf-dataset-details)
- [Devin](https://spiral.ai/integrations/devin/datasf-dataset-details)
- [dots](https://spiral.ai/integrations/dots/datasf-dataset-details)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/datasf-dataset-details)
- [Gemini](https://spiral.ai/integrations/gemini/datasf-dataset-details)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/datasf-dataset-details)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/datasf-dataset-details)
- [goose](https://spiral.ai/integrations/goose/datasf-dataset-details)
- [Grok Build](https://spiral.ai/integrations/grok-build/datasf-dataset-details)
- [Hermes](https://spiral.ai/integrations/hermes/datasf-dataset-details)
- [Instinct](https://spiral.ai/integrations/instinct/datasf-dataset-details)
- [Manus](https://spiral.ai/integrations/manus/datasf-dataset-details)
- [Muse](https://spiral.ai/integrations/muse/datasf-dataset-details)
- [Muse Code](https://spiral.ai/integrations/muse-code/datasf-dataset-details)
- [n8n](https://spiral.ai/integrations/n8n/datasf-dataset-details)
- [Notion](https://spiral.ai/integrations/notion/datasf-dataset-details)
- [OpenClaw](https://spiral.ai/integrations/openclaw/datasf-dataset-details)
- [opencode](https://spiral.ai/integrations/opencode/datasf-dataset-details)
- [Perplexity](https://spiral.ai/integrations/perplexity/datasf-dataset-details)
- [Raycast](https://spiral.ai/integrations/raycast/datasf-dataset-details)
- [VS Code](https://spiral.ai/integrations/vscode/datasf-dataset-details)
- [Windsurf](https://spiral.ai/integrations/windsurf/datasf-dataset-details)
- [Zapier](https://spiral.ai/integrations/zapier/datasf-dataset-details)

## More Grok guides

- [DataSF catalog categories and tags](https://spiral.ai/integrations/grok/datasf-catalog-categories-and-tags)
- [DataSF dataset records](https://spiral.ai/integrations/grok/datasf-dataset-records)
- [DC building permit search](https://spiral.ai/integrations/grok/dc-building-permit-search)
- [DataSF dataset search](https://spiral.ai/integrations/grok/datasf-dataset-search)
- [DC building permit details](https://spiral.ai/integrations/grok/dc-building-permit-details)
- [DataSF record count](https://spiral.ai/integrations/grok/datasf-record-count)

## Questions about DataSF dataset details in Grok

**Can Grok use DataSF dataset details?**

Yes. Add Spiral to Grok as an MCP server, and Grok can find and run DataSF dataset details like any built-in tool.

**How much does DataSF dataset details cost in Grok?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Grok plan is separate.

**Do I need an Alexandria account to use DataSF dataset details in Grok?**

No. Spiral runs DataSF dataset details on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up DataSF dataset details in Grok?**

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

**Does Grok wait while DataSF dataset details runs?**

DataSF dataset details runs in the background. Grok starts the run, checks on it and gives you the json when it's ready.

**Is every DataSF search result a dataset?**

No. The catalog can include tables, charts, maps, stories, and derived views. Check the result's type before choosing a source for record analysis.

**How fresh is DataSF data?**

Refresh schedules depend on the dataset. DataSF documents an approximately 10 a.m. daily refresh for 311 Cases, while DBI uploads Building Permits nightly.

**How much historical data is available?**

History depends on the selected dataset. For example, 311 Cases covers eligible cases created on July 1, 2008, or later.

**Does a row count equal the number of permits?**

Not necessarily. Building Permits can repeat one permit across multiple rows when it has multiple associated addresses, so counting rows can overstate the number of permits.

**Does DataSF guarantee the data is accurate?**

No. The city's terms say the data is subject to error and cannot be relied on without verification or a site inspection.

