Group and measure building permits
analyze_permitsCounts and mix of matching building permits, grouped by up to three of: city, county, state, workType, workGroup, status, stage, constructionType, propertyType, valueBand, trade, sector, jobKind, appliedMonth, issuedMonth, or activityMonth. Metrics: count, sumJobValue, medianJobValue, avgJobValue, valueKnown, sumUnits, and contractors (how many distinct contractors). Value metrics come with valueKnown, the share of permits that state a value. filters take the search_permits names. Groups under five permits are omitted. Returns no permit records, names, or contacts. Does not use credits.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "analyze_permits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Groups to return, at most 1,000. This is not a record count. | |
| filters | No | The search_permits filter names, as an object. | |
| groupBy | No | Up to 3 dimensions, e.g. ["city","issuedMonth"]. | |
| metrics | No | Defaults to ["count"]. "contractors" counts distinct contractors. | |
| orderBy | No | A metric or dimension name to sort groups by. | |
| direction | No |