Get DDR compliance trends
get_delinquency_trendsCompute year-over-year federal agency delinquency referral compliance trends, rank agencies by metric change across a fiscal-year window, or show one agency's yearly series.
Instructions
Compute year-over-year trends in federal agency DDR compliance metrics.
Fetches agency-level data for a range of fiscal years from the Fiscal Data API, then ranks agencies by how much their selected metric changed from the first to the last year in the window. Useful for spotting systematic improvement or deterioration in referral compliance across the government or within one agency.
When agency_name is omitted, returns the top_n agencies by change magnitude across the whole government. When agency_name is provided, returns the year-by-year series for that single agency.
For "biggest movers" questions, set cfo_agencies_only=True (the 24 CFO Act agencies) or min_eligible_debt_usd — otherwise tiny agencies whose rates swing between 0% and 100% on a handful of debts dominate the ranking.
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": {
"params": "<params>"
},
"name": "get_delinquency_trends"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes | Trend window, agency filter, and metric options. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||