How to Use DataSF dataset details in Claude Code
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.
Prompts to try with DataSF dataset details in Claude Code
Copy an example into Claude Code, or ask in your own words.
Use DataSF dataset details for Building Permits, i98e-djp9, to document the available columns and their meanings in this project's data source notes.
Use DataSF dataset details to look this up and give me the result as a table. Save the result in ./assets.
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 Claude Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
This adds Spiral to the current project. Add --scope user to use it in every project.
claude mcp add --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start claude, type /mcp, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.
Use the Spiral skill
- Send Claude Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run DataSF dataset details
One request; the result comes back by polling or a webhook.
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: Claude Code finds DataSF dataset details on Spiral, shows the price and runs it.
DataSF dataset details providers and prices
Spiral runs DataSF dataset details through Alexandria. Open a card for today's price, with every fee included.
What can you do with DataSF dataset details in Claude Code?
Build a San Francisco civic report backed by source definitions and queryable records. A coding agent can turn catalog discovery, schema inspection, and record counts into an analysis that fits your project's files.
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.
More on DataSF dataset details and Claude Code
Overview
DataSF dataset details in other agents
Questions about DataSF dataset details in Claude Code
Can Claude Code use DataSF dataset details?
Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run DataSF dataset details like any built-in tool.
How much does DataSF dataset details cost in Claude Code?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.
Do I need an Alexandria account to use DataSF dataset details in Claude Code?
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 Claude Code?
About two minutes: add the hosted server, then sign in.
Does Claude Code wait while DataSF dataset details runs?
DataSF dataset details runs in the background. Claude Code 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.
Start using DataSF dataset details in Claude Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Claude Code:
set up https://spiral.ai/SKILL.md


