get_force_details
Get detailed information about a UK police force by supplying its unique ID. Access contact details, website, and more.
Instructions
Retrieve details for a specific police force
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force_id | Yes | The unique identifier for the force |
Implementation Reference
- src/index.ts:116-125 (schema)Tool schema definition for 'get_force_details' with input schema requiring a 'force_id' string parameter.
name: 'get_force_details', description: 'Retrieve details for a specific police force', inputSchema: { type: 'object', properties: { force_id: { type: 'string', description: 'The unique identifier for the force' } }, required: ['force_id'] } }, - src/index.ts:354-358 (handler)Handler function 'getForceDetails' that extracts the force_id from args and calls the police.uk API endpoint 'forces/{force_id}'.
async function getForceDetails(args: any) { const { force_id } = args; const endpoint = `forces/${force_id}`; return await makeApiRequest(endpoint) || {}; } - src/index.ts:447-469 (registration)Registration of 'get_force_details' mapped to the 'getForceDetails' handler function in the toolFunctions object.
const toolFunctions = { get_street_level_crimes: getStreetLevelCrimes, get_street_level_outcomes: getStreetLevelOutcomes, get_crimes_at_location: getCrimesAtLocation, get_crimes_no_location: getCrimesNoLocation, get_crime_categories: getCrimeCategories, get_last_updated: getLastUpdated, get_outcomes_for_crime: getOutcomesForCrime, get_list_of_forces: getListOfForces, get_force_details: getForceDetails, get_senior_officers: getSeniorOfficers, get_neighbourhoods: getNeighbourhoods, get_neighbourhood_details: getNeighbourhoodDetails, get_neighbourhood_boundary: getNeighbourhoodBoundary, get_neighbourhood_team: getNeighbourhoodTeam, get_neighbourhood_events: getNeighbourhoodEvents, get_neighbourhood_priorities: getNeighbourhoodPriorities, locate_neighbourhood: locateNeighbourhood, get_stop_searches_by_area: getStopSearchesByArea, get_stop_searches_by_location: getStopSearchesByLocation, get_stop_searches_no_location: getStopSearchesNoLocation, get_stop_searches_by_force: getStopSearchesByForce };