problem_trend
Compare monthly 311 request counts for one problem and district with the same period a year earlier to spot trends and year-over-year changes.
Instructions
Requests per month for one problem in one district, with the same days a year earlier. Optional description, agency and status filters. Months only partly covered are marked. From BoardStat (BetaNYC, NYC Open Data, 2020 on); not an official City report. 311 counts are reports, not problems; 'closed' is not 'fixed'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"problem": "<problem>"
},
"name": "problem_trend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agency | No | Agency code as 311 writes it, e.g. 'NYPD'. | |
| status | No | 'not_closed' = any status but Closed. | |
| problem | Yes | One BoardStat problem name, e.g. 'HEAT/HOT WATER', 'Noise - Residential', 'Rodent'. | |
| to_date | No | End, YYYY-MM-DD, inclusive. | |
| from_date | No | Start, YYYY-MM-DD, inclusive. | |
| last_days | No | The last N days of data, ending on the newest request's day (not today). | |
| fiscal_year | No | NYC fiscal year: 2027 or 'FY2027' = 2026-07-01 to 2027-06-30. | |
| descriptions | No | 311 descriptors, e.g. ['Blocked Bike Lane']; a missing one is '(none)'. | |
| council_district | No | Council district, 1 to 51. Not with community_district. | |
| community_district | No | 306, BK06 or 'Brooklyn 6' (all forms: server instructions). Not with council_district. | |
| exclude_descriptions | No | Leave out these descriptions instead of keeping only them. |