get_crimes
Pack: ukpolice · Endpoint: https://gateway.pipeworx.io/ukpolice/mcp
Get street-level crimes near a latitude/longitude for a given month. Returns crime category, location, and outcome status.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
lat | number | yes | Latitude of the location |
lng | number | yes | Longitude of the location |
date | string | no | Month to query in YYYY-MM format (e.g. “2024-01”). Defaults to latest available. |
Example call
Arguments
{
"lat": 51.5074,
"lng": -0.1278
}
curl
curl -X POST https://gateway.pipeworx.io/ukpolice/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_crimes","arguments":{"lat":51.5074,"lng":-0.1278}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_crimes', {
"lat": 51.5074,
"lng": -0.1278
});
More examples
{
"lat": 53.4808,
"lng": -2.2426,
"date": "2024-01"
}
Response shape
Always returns: count, crimes
| Field | Type | Description |
|---|---|---|
count | number | Total number of crimes returned |
crimes | array | Array of street-level crimes |
Full JSON Schema
{
"type": "object",
"properties": {
"count": {
"type": "number",
"description": "Total number of crimes returned"
},
"crimes": {
"type": "array",
"description": "Array of street-level crimes",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Crime ID"
},
"category": {
"type": "string",
"description": "Crime category"
},
"month": {
"type": "string",
"description": "Month of the crime in YYYY-MM format"
},
"street": {
"type": "string",
"description": "Street name where crime occurred"
},
"outcome": {
"type": "string",
"description": "Outcome category or 'Under investigation'"
},
"outcome_date": {
"type": [
"string",
"null"
],
"description": "Date of outcome if available"
}
},
"required": [
"id",
"category",
"month",
"street",
"outcome",
"outcome_date"
]
}
}
},
"required": [
"count",
"crimes"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"ukpolice": {
"url": "https://gateway.pipeworx.io/ukpolice/mcp"
}
}
}
See Getting Started for client-specific install steps.