/** * @fileoverview FBI CDE summarized offense data tool. * Returns monthly offense rates and counts from the /cde/summarized/ endpoint. * Replaces the decommissioned UCR /estimates/ endpoint. * @module mcp-server/tools/definitions/get-crime-estimates.tool */ import { z } from '@cyanheads/mcp-ts-core'; import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors'; export declare const fbiGetCrimeEstimates: import("@cyanheads/mcp-ts-core").ToolDefinition, unknown>; ori: z.ZodPreprocess, unknown>; from_year: z.ZodNumber; from_month: z.ZodDefault; to_year: z.ZodNumber; to_month: z.ZodDefault; scope: z.ZodEnum<{ agency: "agency"; national: "national"; state: "state"; }>; offense: z.ZodEnum<{ "aggravated-assault": "aggravated-assault"; arson: "arson"; burglary: "burglary"; homicide: "homicide"; larceny: "larceny"; "motor-vehicle-theft": "motor-vehicle-theft"; "property-crime": "property-crime"; rape: "rape"; robbery: "robbery"; "violent-crime": "violent-crime"; }>; include_comparisons: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ scope: z.ZodString; offense: z.ZodString; entity_name: z.ZodString; state_abbr: z.ZodOptional; ori: z.ZodOptional; from: z.ZodString; to: z.ZodString; months: z.ZodArray>; clearance_rate_per_100k: z.ZodOptional>; actual_count: z.ZodOptional>; clearance_count: z.ZodOptional>; population: z.ZodNullable; participated_population: z.ZodNullable; population_coverage_percent: z.ZodNullable; }, z.core.$strip>>; total_months: z.ZodNumber; data_last_updated: z.ZodOptional; max_data_date: z.ZodOptional; comparisons: z.ZodOptional; clearance_rate_per_100k: z.ZodNullable; population: z.ZodNullable; participated_population: z.ZodNullable; population_coverage_percent: z.ZodNullable; }, z.core.$strip>>; }, z.core.$strip>>>; }, z.core.$strip>, readonly [{ readonly reason: "invalid_date_range"; readonly code: JsonRpcErrorCode.ValidationError; readonly when: "The complete starting year/month is later than the ending year/month."; readonly recovery: "Correct from_year/from_month and to_year/to_month so the start is no later than the end."; readonly thrownBy: "service"; }, { readonly reason: "scope_param_incompatible"; readonly code: JsonRpcErrorCode.ValidationError; readonly when: "Identifiers are supplied for a scope that does not apply them, or include_comparisons is true for national scope."; readonly recovery: "For national scope omit state_abbr, ori and include_comparisons; for state provide only state_abbr; for agency provide only ori."; }, { readonly reason: "scope_param_missing"; readonly code: JsonRpcErrorCode.ValidationError; readonly when: "scope is \"state\" but state_abbr is missing, or scope is \"agency\" but ori is missing."; readonly recovery: "Provide state_abbr for state scope, or ori (9-character ORI code) for agency scope."; readonly thrownBy: "service"; }, { readonly reason: "year_out_of_range"; readonly code: JsonRpcErrorCode.ValidationError; readonly when: "from_year or to_year is after the current UTC year."; readonly recovery: "Use from_year and to_year from 1985 through the current year; current-year months past the latest data return null values."; readonly thrownBy: "service"; }, { readonly reason: "no_data"; readonly code: JsonRpcErrorCode.NotFound; readonly when: "No data was returned for the requested offense and date range."; readonly recovery: "Verify state_abbr, or look up the ori with fbi_search_agencies, for the selected scope first; then check offense and date availability or broaden the date range."; }], undefined>; //# sourceMappingURL=get-crime-estimates.tool.d.ts.map