get_neighbourhood_boundary
Retrieve boundary coordinates for a UK neighbourhood by providing a force ID and neighbourhood ID, enabling mapping and analysis of local police areas.
Instructions
Retrieve the boundary coordinates for a specific neighbourhood
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force_id | Yes | The unique identifier for the force | |
| neighbourhood_id | Yes | The unique identifier for the neighbourhood |
Implementation Reference
- src/index.ts:160-171 (schema)Schema definition for the 'get_neighbourhood_boundary' tool, defining input parameters (force_id, neighbourhood_id) and that both are required.
{ name: 'get_neighbourhood_boundary', description: 'Retrieve the boundary coordinates for a specific neighbourhood', inputSchema: { type: 'object', properties: { force_id: { type: 'string', description: 'The unique identifier for the force' }, neighbourhood_id: { type: 'string', description: 'The unique identifier for the neighbourhood' } }, required: ['force_id', 'neighbourhood_id'] } }, - src/index.ts:378-382 (handler)Handler function for 'get_neighbourhood_boundary'. Calls the UK Police API endpoint '{force_id}/{neighbourhood_id}/boundary' and returns boundary coordinates (array).
async function getNeighbourhoodBoundary(args: any) { const { force_id, neighbourhood_id } = args; const endpoint = `${force_id}/${neighbourhood_id}/boundary`; return await makeApiRequest(endpoint) || []; } - src/index.ts:460-460 (registration)Registration/mapping of the tool name 'get_neighbourhood_boundary' to its handler function 'getNeighbourhoodBoundary' in the toolFunctions map.
get_neighbourhood_boundary: getNeighbourhoodBoundary,