Get court decision statistics
get_case_statisticsGet aggregated case statistics.
Returns case counts grouped by time period, optionally filtered
by court, state, or jurisdiction.
Args:
court_id: Filter by court ID.
state: Filter by state name or slug.
jurisdiction: Filter by jurisdiction. Accepts the English
shortcuts ("ordinary", "labor", …) or the stored German
values ("Ordentliche Gerichtsbarkeit", …).
date_after: Count cases from this date (YYYY-MM-DD, default: 1 year ago).
date_before: Count cases up to this date (YYYY-MM-DD, default: today).
group_by: Time grouping: "month" (default) or "year".
Returns an ``{"error": ...}`` payload (instead of silently zero
results) when an unknown court_id, state, jurisdiction, group_by,
or malformed date is supplied — the previous behavior swallowed
bad inputs as ``total: 0`` and was the dangerous failure mode
called out in the MCP audit.
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": "get_case_statistics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | ||
| court_id | No | ||
| group_by | No | month | |
| date_after | No | ||
| date_before | No | ||
| jurisdiction | No |