SOS.city public record is an MCP server published by io.github.Proof-Layer, hosted at api.sos.city. When last checked on 2026-11-22 it was working: it answers and lists its tools. It declares 21 tools, including search_library, get_source, list_places, list_departments, list_gaps.
Public records for every city: permits, alerts, wildfires, laws and funding, linked to the source.
1 connections through 4 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Find public-records sources (datasets, portals, registers, reports) by question or keywords. Use `place` to include everything covering a place, from the city up to federal and global sources. Returns the publisher, how to get the data (API endpoint or page), update rate, last update, licence and whether we verified it. Not for finding, profiling or screening people.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | |
| place | string | Place id, e.g. 'us-ca-los-angeles', 'us-ca', 'us', 'germany'. Use list_places to find ids. |
| query * | string | What you're looking for, e.g. 'open code enforcement cases' or 'boil water notices'. |
| department | string | Shelf id: water, power, safety, housing, laws, funding, services, transport, environment, health, people, consumer, education, jobs, portals. |
{
"name": "search_library",
"title": "Search the public record",
"description": "Find public-records sources (datasets, portals, registers, reports) by question or keywords. Use `place` to include everything covering a place, from the city up to federal and global sources. Returns the publisher, how to get the data (API endpoint or page), update rate, last update, licence and whether we verified it. Not for finding, profiling or screening people.",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"default": 10,
"maximum": 50,
"minimum": 1
},
"place": {
"type": "string",
"description": "Place id, e.g. 'us-ca-los-angeles', 'us-ca', 'us', 'germany'. Use list_places to find ids."
},
"query": {
"type": "string",
"description": "What you're looking for, e.g. 'open code enforcement cases' or 'boil water notices'."
},
"department": {
"type": "string",
"description": "Shelf id: water, power, safety, housing, laws, funding, services, transport, environment, health, people, consumer, education, jobs, portals."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}Full details of one source by id: publisher, original link, API endpoint, formats, update rate, last update, licence, location detail, check status and notes.
| Parameter | Type | Description |
|---|---|---|
| id * | integer |
{
"name": "get_source",
"title": "Get one source",
"description": "Full details of one source by id: publisher, original link, API endpoint, formats, update rate, last update, licence, location detail, check status and notes.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer"
}
}
},
"annotations": {
"readOnlyHint": true
}
}The atlas: world, countries, states, counties and cities, with their ids. Filter by parent id (e.g. 'us' for US states) or kind.
| Parameter | Type | Description |
|---|---|---|
| kind | string | one of ["world","country","state","county","city"] |
| name | string | Part of a place name. |
| parent | string |
{
"name": "list_places",
"title": "List places",
"description": "The atlas: world, countries, states, counties and cities, with their ids. Filter by parent id (e.g. 'us' for US states) or kind.",
"inputSchema": {
"type": "object",
"properties": {
"kind": {
"enum": [
"world",
"country",
"state",
"county",
"city"
],
"type": "string"
},
"name": {
"type": "string",
"description": "Part of a place name."
},
"parent": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}The 15 departments (shelves) every source sits on, with what each covers.
No parameters.
{
"name": "list_departments",
"title": "List shelves",
"description": "The 15 departments (shelves) every source sits on, with what each covers.",
"inputSchema": {
"type": "object",
"properties": {}
},
"annotations": {
"readOnlyHint": true
}
}Records people need that the library doesn't hold yet, or that no agency publishes. Check this before telling a user a record doesn't exist.
| Parameter | Type | Description |
|---|---|---|
| place | string | |
| status | string | one of ["researching","sourced","no_public_source"] |
{
"name": "list_gaps",
"title": "What's missing",
"description": "Records people need that the library doesn't hold yet, or that no agency publishes. Check this before telling a user a record doesn't exist.",
"inputSchema": {
"type": "object",
"properties": {
"place": {
"type": "string"
},
"status": {
"enum": [
"researching",
"sourced",
"no_public_source"
],
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true
}
}The records SOS.city reads from agencies' open data, one row each: building permits, code-enforcement cases, inspections, certificates of occupancy, new business registrations, grants, weather alerts, earthquakes, US wildfires (NIFC), SCE power shutoffs, satellite fire detections (NASA FIRMS), bank branch openings, closings and mergers (FDIC), current drug shortages (openFDA) and county night-light drops that estimate power outages (NASA Black Marble). Filter by place, kind, ZIP or street address. Each row links to the agency's original. History depends on the plan (Free: 30 days, 100 rows). full_history=true (1 credit) and limit over 100 (1 credit per extra 100 rows, up to 1,000) are paid from the API key's credits; see get_store.
| Parameter | Type | Description |
|---|---|---|
| zip | string | Five-digit ZIP. |
| kind | string | one of ["permit","code_case","inspection","cofo","business","grant","weather_alert","earthquake","wildfire","power_shutoff","fire_detection","bank_branch","drug_shortage","lights_drop"] |
| limit | integer | Over 100 is paid (1 credit per extra 100 rows). |
| place | string | Place id, e.g. 'us-ca-los-angeles'. |
| since | string | YYYY-MM-DD. |
| address | string | Street address, e.g. '200 N Spring St'. Matches by house number and street name. |
| full_history | boolean | Past the plan's history window (1 credit). |
Ask SOS.city to find a public record that isn't in the library. It joins the gap board; give an email to hear back. Never for locating or profiling a person.
| Parameter | Type | Description |
|---|---|---|
| string | ||
| place | string | |
| question * | string |
{
"name": "request_record",
"title": "Request a record",
"description": "Ask SOS.city to find a public record that isn't in the library. It joins the gap board; give an email to hear back. Never for locating or profiling a person.",
"inputSchema": {
"type": "object",
"required": [
"question"
],
"properties": {
"email": {
"type": "string"
},
"place": {
"type": "string"
},
"question": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}
}The SOS.city data store: what's free, what costs credits (1 credit = 1 cent), credit packs, city data packs, building records and deep searches, and every way to pay (credits with an API key, x402 USDC, or a Stripe link for a person). Shows the caller's credit balance when an API key is sent.
No parameters.
{
"name": "get_store",
"title": "See prices and how to pay",
"description": "The SOS.city data store: what's free, what costs credits (1 credit = 1 cent), credit packs, city data packs, building records and deep searches, and every way to pay (credits with an API key, x402 USDC, or a Stripe link for a person). Shows the caller's credit balance when an API key is sent.",
"inputSchema": {
"type": "object",
"properties": {}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}Starts a one-time purchase and returns a Stripe Checkout link for the person who pays, plus a status_url to poll. product: credits_1k ($10), credits_10k ($79), city_pack ($29, needs place) or compliance_list ($99, one whole compliance list as CSV, needs list). The person must agree to the data-use terms (no screening or profiling people): pass agree_data_use=true only after they have.
| Parameter | Type | Description |
|---|---|---|
| list | string | For compliance_list: a list id from list_compliance, e.g. sb721-cited. |
| email * | string | Email of the person paying. Receipts and the account go there. |
| place | string | For city_pack: a place id, e.g. us-ca-los-angeles. |
| product * | string | one of ["credits_1k","credits_10k","city_pack","compliance_list"] |
| personhood | string | Optional 5arz proof-of-personhood credential (pop_jwt) showing a verified human stands behind this agent. Recorded with the order. |
| agree_data_use * | boolean | True once the person accepts: no tenant, employment, credit or insurance screening, and no locating or profiling anyone. |
{
"name": "buy",
"title": "Buy credits or a city data pack",
"description": "Starts a one-time purchase and returns a Stripe Checkout link for the person who pays, plus a status_url to poll. product: credits_1k ($10), credits_10k ($79), city_pack ($29, needs place) or compliance_list ($99, one whole compliance list as CSV, needs list). The person must agree to the data-use terms (no screening or profiling people): pass agree_data_use=true only after they have.",
"inputSchema": {
"type": "object",
"required": [
"product",
"email",
"agree_data_use"
],
"properties": {
"list": {
"type": "string",
"description": "For compliance_list: a list id from list_compliance, e.g. sb721-cited."
},
"email": {
"type": "string",
"description": "Email of the person paying. Receipts and the account go there."
},
"place": {
"type": "string",
"description": "For city_pack: a place id, e.g. us-ca-los-angeles."
},
"product": {
"enum": [
"credits_1k",
"credits_10k",
"city_pack",
"compliance_list"
],
"type": "string"
},
"personhood": {
"type": "string",
"description": "Optional 5arz proof-of-personhood credential (pop_jwt) showing a verified human stands behind this agent. Recorded with the order."
},
"agree_data_use": {
"type": "boolean",
"description": "True once the person accepts: no tenant, employment, credit or insurance screening, and no locating or profiling anyone."
}
}
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}
}Every source that covers one place (with publisher, original link, licence and reuse terms) plus a year of records whose sources allow reuse. Costs 2900 credits from the API key's balance. Without credits, use buy (product city_pack) or the REST URL with x402.
| Parameter | Type | Description |
|---|---|---|
| place * | string | Place id, e.g. us-ca-los-angeles. |
{
"name": "get_city_pack",
"title": "Get a city data pack",
"description": "Every source that covers one place (with publisher, original link, licence and reuse terms) plus a year of records whose sources allow reuse. Costs 2900 credits from the API key's balance. Without credits, use buy (product city_pack) or the REST URL with x402.",
"inputSchema": {
"type": "object",
"required": [
"place"
],
"properties": {
"place": {
"type": "string",
"description": "Place id, e.g. us-ca-los-angeles."
}
}
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Checks one street address against every compliance list at once (SB 721 balcony citations, LA energy benchmarking, open code cases, soft-story and concrete retrofit orders, industrial stormwater permits) and says which lists name it, with the agency's status, dates and a link to its own record. Free. Covers buildings in the City of Los Angeles. Give the ZIP: without it, the same number and street name in another ZIP can match. Not on a list means the agency's data does not name the address today, not that the building has met the law. About buildings, never people.
| Parameter | Type | Description |
|---|---|---|
| zip | string | 5-digit ZIP. |
| address * | string | Street address with a house number, e.g. 200 N Spring St. |
{
"name": "check_compliance",
"title": "Is this address on a compliance list?",
"description": "Checks one street address against every compliance list at once (SB 721 balcony citations, LA energy benchmarking, open code cases, soft-story and concrete retrofit orders, industrial stormwater permits) and says which lists name it, with the agency's status, dates and a link to its own record. Free. Covers buildings in the City of Los Angeles. Give the ZIP: without it, the same number and street name in another ZIP can match. Not on a list means the agency's data does not name the address today, not that the building has met the law. About buildings, never people.",
"inputSchema": {
"type": "object",
"required": [
"address"
],
"properties": {
"zip": {
"type": "string",
"description": "5-digit ZIP."
},
"address": {
"type": "string",
"description": "Street address with a house number, e.g. 200 N Spring St."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}Buildings and facilities that owe a legally required inspection, filing or fix (SB 721 balcony inspections, LA energy benchmarking, open code cases, soft-story and concrete retrofits, industrial stormwater permits), read from the agency's dataset and refreshed daily. Free: what each law requires, who may sign, how many are on each list, by ZIP and status. For the firms that do this work. Not for finding or profiling people.
| Parameter | Type | Description |
|---|---|---|
| list | string | Optional list id for its full numbers, e.g. sb721-cited. Leave out to see every list. |
{
"name": "list_compliance",
"title": "Compliance lists: who owes an inspection, filing or fix",
"description": "Buildings and facilities that owe a legally required inspection, filing or fix (SB 721 balcony inspections, LA energy benchmarking, open code cases, soft-story and concrete retrofits, industrial stormwater permits), read from the agency's dataset and refreshed daily. Free: what each law requires, who may sign, how many are on each list, by ZIP and status. For the firms that do this work. Not for finding or profiling people.",
"inputSchema": {
"type": "object",
"properties": {
"list": {
"type": "string",
"description": "Optional list id for its full numbers, e.g. sb721-cited. Leave out to see every list."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}Rows of one compliance list (address, ZIP, dates, status, the agency's id, a link to the original, and other lists the same address is on). The first 10 rows are free; more cost credits per 100 rows (see get_store). Filter by zip, address (q), status, type, since (YYYY-MM-DD) or stacked=true (addresses on more than one list).
| Parameter | Type | Description |
|---|---|---|
| q | string | An address or part of one. |
| zip | string | |
| list * | string | one of ["sb721-cited","ebewe-not-complied","code-cases-open","soft-story-open","ndc-concrete","stormwater-facilities"] |
| type | string | |
| limit | integer | |
| since | string | Only rows dated on or after this day (YYYY-MM-DD). |
| offset | integer | |
| status | string | |
| stacked | boolean |
Buildings and facilities added to, taken off, or changed on a compliance list since a day (default the last 7 days), from the agency's own data. Counts are free; the first 10 rows are free, then credits per 100 rows. Off the list means the agency's data no longer lists the item, not proof the work was done.
| Parameter | Type | Description |
|---|---|---|
| zip | string | One or more 5-digit ZIPs, comma-separated. |
| kind | string | added, removed, changed (comma-separated). |
| list * | string | one of ["sb721-cited","ebewe-not-complied","code-cases-open","soft-story-open","ndc-concrete","stormwater-facilities"] |
| limit | integer | |
| since | string | YYYY-MM-DD, default 7 days ago. |
| until | string | |
| offset | integer | |
| stacked | boolean | Only addresses also on another list. |
{
"name": "get_compliance_changes",
"title": "What changed on a compliance list",
"description": "Buildings and facilities added to, taken off, or changed on a compliance list since a day (default the last 7 days), from the agency's own data. Counts are free; the first 10 rows are free, then credits per 100 rows. Off the list means the agency's data no longer lists the item, not proof the work was done.",
"inputSchema": {
"type": "object",
"required": [
"list"
],
"properties": {
"zip": {
"type": "string",
"description": "One or more 5-digit ZIPs, comma-separated."
},
"kind": {
"type": "string",
"description": "added, removed, changed (comma-separated)."
},
"list": {
"enum": [
"sb721-cited",
"ebewe-not-complied",
"code-cases-open",
"soft-story-open",
"ndc-concrete",
"stormwater-facilities"
],
"type": "string"
},
"limit": {
"type": "integer",
"default": 10,
"maximum": 1000,
"minimum": 1
},
"since": {
"type": "string",
"description": "YYYY-MM-DD, default 7 days ago."
},
"until": {
"type": "string"
},
"offset": {
"type": "integer",
"default": 0,
"minimum": 0
},
"stacked": {
"type": "boolean",
"description": "Only addresses also on another list."
}
}
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Save a watch on one compliance list (ZIPs, status, type, stacked) and get what changed daily or weekly by email and/or a signed webhook. Pass track (item keys) to follow items one by one: each closes on its own when the agency's data no longer lists it. Needs an API key. Rows past the first 10 in each delivery cost credits per 100.
| Parameter | Type | Description |
|---|---|---|
| list * | string | one of ["sb721-cited","ebewe-not-complied","code-cases-open","soft-story-open","ndc-concrete","stormwater-facilities"] |
| name | string | |
| type | string | |
| zips | array | |
| kinds | array | |
| track | array | |
| status | string | |
| cadence | string | one of ["daily","weekly"] |
| stacked | boolean | |
| webhook_url | string |
The account's compliance watches: what each covers, how it's delivered, when it last went out and what it did, and its tracked items open and closed.
No parameters.
{
"name": "list_compliance_watches",
"title": "List my compliance alerts",
"description": "The account's compliance watches: what each covers, how it's delivered, when it last went out and what it did, and its tracked items open and closed.",
"inputSchema": {
"type": "object",
"properties": {}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}Free. How many bank and credit union branches a ZIP, county or state has today, how far the nearest bank branch is, closings and openings in the last 120 days, ZIPs left with one bank or none, and the top lenders already there. From FDIC BankFind, the NCUA call report and Census files, rebuilt daily. Give zip, county (5-digit FIPS), place (a county or state place id) or state; none gives the US.
| Parameter | Type | Description |
|---|---|---|
| zip | string | 5-digit ZIP |
| place | string | County or state place id, e.g. us-mi |
| state | string | 2-letter state, e.g. MI |
| county | string | 5-digit county FIPS, e.g. 26125 |
{
"name": "get_bank_access",
"title": "Bank access for a ZIP, county or state",
"description": "Free. How many bank and credit union branches a ZIP, county or state has today, how far the nearest bank branch is, closings and openings in the last 120 days, ZIPs left with one bank or none, and the top lenders already there. From FDIC BankFind, the NCUA call report and Census files, rebuilt daily. Give zip, county (5-digit FIPS), place (a county or state place id) or state; none gives the US.",
"inputSchema": {
"type": "object",
"properties": {
"zip": {
"type": "string",
"description": "5-digit ZIP"
},
"place": {
"type": "string",
"description": "County or state place id, e.g. us-mi"
},
"state": {
"type": "string",
"description": "2-letter state, e.g. MI"
},
"county": {
"type": "string",
"description": "5-digit county FIPS, e.g. 26125"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}ZIPs where a branch closing left no bank, one bank, or a 10+ mile trip to the next branch, with the bank that left and the nearest one still open. Free: the last 30 days, 25 rows. full=true returns the whole 120-day window (100 credits from the API key, or free with a watch for that state).
| Parameter | Type | Description |
|---|---|---|
| full | boolean | |
| alert | string | one of ["new_desert","lost_last_bank","down_to_one_bank"] |
| state | string |
{
"name": "list_bank_gaps",
"title": "ZIPs that just lost their bank",
"description": "ZIPs where a branch closing left no bank, one bank, or a 10+ mile trip to the next branch, with the bank that left and the nearest one still open. Free: the last 30 days, 25 rows. full=true returns the whole 120-day window (100 credits from the API key, or free with a watch for that state).",
"inputSchema": {
"type": "object",
"properties": {
"full": {
"type": "boolean"
},
"alert": {
"enum": [
"new_desert",
"lost_last_bank",
"down_to_one_bank"
],
"type": "string"
},
"state": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}Every bank and credit union with a branch in one county, with branch counts and assets. 25 credits from the API key (free with a watch for that state). Organizations only.
| Parameter | Type | Description |
|---|---|---|
| kind | string | one of ["bank","credit_union"] |
| county * | string | 5-digit county FIPS |
{
"name": "find_lenders",
"title": "Who can serve a county",
"description": "Every bank and credit union with a branch in one county, with branch counts and assets. 25 credits from the API key (free with a watch for that state). Organizations only.",
"inputSchema": {
"type": "object",
"required": [
"county"
],
"properties": {
"kind": {
"enum": [
"bank",
"credit_union"
],
"type": "string"
},
"county": {
"type": "string",
"description": "5-digit county FIPS"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}Start a checkout for a Bank desert watch (state, regional, national, closing soon, branch sites) or a one-time report (market brief, acquisition screen, merger impact). Returns a Stripe link for the person who pays. See get_store for prices.
| Parameter | Type | Description |
|---|---|---|
| email * | string | |
| scope | string | For reports: the market, deal or target |
| states | string | 2-letter states, comma-separated |
| product * | string | one of ["bank_state_watch","bank_regional_watch","bank_closing_soon","bank_sites","bank_national","bank_market_brief","bank_acquisition_screen","bank_merger_impact"] |
| agree_data_use * | boolean |
{
"name": "order_bank_report",
"title": "Buy a bank watch or report",
"description": "Start a checkout for a Bank desert watch (state, regional, national, closing soon, branch sites) or a one-time report (market brief, acquisition screen, merger impact). Returns a Stripe link for the person who pays. See get_store for prices.",
"inputSchema": {
"type": "object",
"required": [
"product",
"email",
"agree_data_use"
],
"properties": {
"email": {
"type": "string"
},
"scope": {
"type": "string",
"description": "For reports: the market, deal or target"
},
"states": {
"type": "string",
"description": "2-letter states, comma-separated"
},
"product": {
"enum": [
"bank_state_watch",
"bank_regional_watch",
"bank_closing_soon",
"bank_sites",
"bank_national",
"bank_market_brief",
"bank_acquisition_screen",
"bank_merger_impact"
],
"type": "string"
},
"agree_data_use": {
"type": "boolean"
}
}
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}
}Free. FEMA National Risk Index for the county of one of the 30 largest U.S. cities: overall rating and score, every hazard's share of the risk, rating, score and expected annual loss, plus (for verified cities) the federal disaster declarations and the official emergency alert sign-up. Omit city for the list. Every result names its source; FEMA rates counties, not cities.
| Parameter | Type | Description |
|---|---|---|
| city | string | City id (e.g. dallas, new-york-city), city name or 5-digit county FIPS. Omit to list all 30. |
{
"name": "get_city_risk",
"title": "Natural-hazard risk for a U.S. city",
"description": "Free. FEMA National Risk Index for the county of one of the 30 largest U.S. cities: overall rating and score, every hazard's share of the risk, rating, score and expected annual loss, plus (for verified cities) the federal disaster declarations and the official emergency alert sign-up. Omit city for the list. Every result names its source; FEMA rates counties, not cities.",
"inputSchema": {
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "City id (e.g. dallas, new-york-city), city name or 5-digit county FIPS. Omit to list all 30."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}SOS.city indexes public records by place, shelf (department) and publisher. Start with search_library; pass a place id to include everything that covers it. Always show the publisher and link to the original when you use a result; the original wins if it differs. If nothing fits, check list_gaps, then offer request_record. Some data is paid (full history, bulk records, city data packs): get_store lists prices; buy returns a checkout link for the person who pays. For natural-hazard risk in one of the 30 largest U.S. cities (FEMA National Risk Index by county, disaster declarations, official alert sign-up), use get_city_risk (free). For buildings and facilities that owe a required inspection, filing or fix (SB 721 balconies, LA energy benchmarking, code cases, retrofits, industrial stormwater), use list_compliance, then get_compliance_items (first 10 rows free); get_compliance_changes says what was added, taken off or changed since a day, and watch_compliance sets up a daily or weekly alert (email or signed webhook) with tracked items that close on their own. Never use these tools to locate, profile or screen a person (tenant, employment, credit or insurance decisions): SOS.city is not a consumer reporting agency. Not an emergency service: in an emergency, call 911.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.
{
"name": "search_records",
"title": "Search the records themselves",
"description": "The records SOS.city reads from agencies' open data, one row each: building permits, code-enforcement cases, inspections, certificates of occupancy, new business registrations, grants, weather alerts, earthquakes, US wildfires (NIFC), SCE power shutoffs, satellite fire detections (NASA FIRMS), bank branch openings, closings and mergers (FDIC), current drug shortages (openFDA) and county night-light drops that estimate power outages (NASA Black Marble). Filter by place, kind, ZIP or street address. Each row links to the agency's original. History depends on the plan (Free: 30 days, 100 rows). full_history=true (1 credit) and limit over 100 (1 credit per extra 100 rows, up to 1,000) are paid from the API key's credits; see get_store.",
"inputSchema": {
"type": "object",
"properties": {
"zip": {
"type": "string",
"description": "Five-digit ZIP."
},
"kind": {
"enum": [
"permit",
"code_case",
"inspection",
"cofo",
"business",
"grant",
"weather_alert",
"earthquake",
"wildfire",
"power_shutoff",
"fire_detection",
"bank_branch",
"drug_shortage",
"lights_drop"
],
"type": "string"
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 1000,
"minimum": 1,
"description": "Over 100 is paid (1 credit per extra 100 rows)."
},
"place": {
"type": "string",
"description": "Place id, e.g. 'us-ca-los-angeles'."
},
"since": {
"type": "string",
"description": "YYYY-MM-DD."
},
"address": {
"type": "string",
"description": "Street address, e.g. '200 N Spring St'. Matches by house number and street name."
},
"full_history": {
"type": "boolean",
"description": "Past the plan's history window (1 credit)."
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}{
"name": "get_compliance_items",
"title": "Get rows of a compliance list",
"description": "Rows of one compliance list (address, ZIP, dates, status, the agency's id, a link to the original, and other lists the same address is on). The first 10 rows are free; more cost credits per 100 rows (see get_store). Filter by zip, address (q), status, type, since (YYYY-MM-DD) or stacked=true (addresses on more than one list).",
"inputSchema": {
"type": "object",
"required": [
"list"
],
"properties": {
"q": {
"type": "string",
"description": "An address or part of one."
},
"zip": {
"type": "string"
},
"list": {
"enum": [
"sb721-cited",
"ebewe-not-complied",
"code-cases-open",
"soft-story-open",
"ndc-concrete",
"stormwater-facilities"
],
"type": "string"
},
"type": {
"type": "string"
},
"limit": {
"type": "integer",
"default": 10,
"maximum": 1000,
"minimum": 1
},
"since": {
"type": "string",
"description": "Only rows dated on or after this day (YYYY-MM-DD)."
},
"offset": {
"type": "integer",
"default": 0,
"minimum": 0
},
"status": {
"type": "string"
},
"stacked": {
"type": "boolean"
}
}
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}{
"name": "watch_compliance",
"title": "Set up a compliance alert",
"description": "Save a watch on one compliance list (ZIPs, status, type, stacked) and get what changed daily or weekly by email and/or a signed webhook. Pass track (item keys) to follow items one by one: each closes on its own when the agency's data no longer lists it. Needs an API key. Rows past the first 10 in each delivery cost credits per 100.",
"inputSchema": {
"type": "object",
"required": [
"list"
],
"properties": {
"list": {
"enum": [
"sb721-cited",
"ebewe-not-complied",
"code-cases-open",
"soft-story-open",
"ndc-concrete",
"stormwater-facilities"
],
"type": "string"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"zips": {
"type": "array",
"items": {
"type": "string"
}
},
"kinds": {
"type": "array",
"items": {
"enum": [
"added",
"removed",
"changed"
],
"type": "string"
}
},
"track": {
"type": "array",
"items": {
"type": "string"
}
},
"status": {
"type": "string"
},
"cadence": {
"enum": [
"daily",
"weekly"
],
"type": "string"
},
"stacked": {
"type": "boolean"
},
"webhook_url": {
"type": "string"
}
}
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}