get_outcomes

Pack: ukpolice · Endpoint: https://gateway.pipeworx.io/ukpolice/mcp

Get outcomes for crimes at a location for a given month. Returns outcome category and date for each crime.

Parameters

NameTypeRequiredDescription
latnumberyesLatitude of the location
lngnumberyesLongitude of the location
datestringnoMonth 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_outcomes","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_outcomes', {
  "lat": 51.5074,
  "lng": -0.1278
});

More examples

{
  "lat": 52.6369,
  "lng": -1.1398,
  "date": "2023-12"
}

Response shape

Always returns: count, outcomes

FieldTypeDescription
countnumberTotal number of outcomes returned
outcomesarrayArray of crime outcomes at location
Full JSON Schema
{
  "type": "object",
  "properties": {
    "count": {
      "type": "number",
      "description": "Total number of outcomes returned"
    },
    "outcomes": {
      "type": "array",
      "description": "Array of crime outcomes at location",
      "items": {
        "type": "object",
        "properties": {
          "crime_id": {
            "type": "number",
            "description": "Associated crime ID"
          },
          "crime_category": {
            "type": "string",
            "description": "Crime category"
          },
          "crime_month": {
            "type": "string",
            "description": "Month of the crime in YYYY-MM format"
          },
          "outcome": {
            "type": "string",
            "description": "Outcome category name"
          },
          "outcome_date": {
            "type": "string",
            "description": "Date of outcome"
          }
        },
        "required": [
          "crime_id",
          "crime_category",
          "crime_month",
          "outcome",
          "outcome_date"
        ]
      }
    }
  },
  "required": [
    "count",
    "outcomes"
  ]
}

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.

Regenerated from source · build May 9, 2026