Skip to main content
Glama

Search UK Police Outcomes

ukcrime_search_outcomes
Read-onlyIdempotent

List the police outcomes data.police.uk published for one month inside an area — a point with a 1-mile radius, a polygon, a location_id, or a neighbourhood — for crimes recorded that month or any earlier one. Returns the total, counts by crime category, outcome and the month each crime was recorded, and a page of outcomes, each with its crime and persistent_id. category, outcome and street_name_contains narrow the counts and the page together, so filtering one field and reading another's breakdown gives a cross-tab. An outcome's own month can differ from the month searched, and a crime's earlier steps can be missing here: ukcrime_get_crime_outcomes gives one crime's full sequence, and ukcrime_search_crimes the latest outcome of the crimes recorded in a month. Court results are not published; the result says when a force publishes no outcomes.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "area": "<area>"
    },
    "name": "ukcrime_search_outcomes"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoLatitude, WGS84 decimal degrees, for area 'point'.
lngNoLongitude, WGS84 decimal degrees, for area 'point'.
areaYesArea to search: 'point' (lat and lng; a 1-mile radius), 'polygon' (polygon), 'location' (location_id), or 'neighbourhood' (force and neighbourhood_id). An area field the chosen area does not use is rejected.
forceNoFor area 'neighbourhood', with neighbourhood_id: a force id such as 'leicestershire', or its name such as 'Leicestershire Police' (ukcrime_list_reference topic 'forces' lists both); case-insensitive, spaces, underscores and hyphens match each other, '&' matches 'and', and a trailing 'Police', 'Police Service' or 'Constabulary' is optional.
limitNoRequested outcomes on this page, 1–10,000; applied cap is at most 200. Default 20.
monthNoMonth as YYYY-MM. Omitted: the latest published month, echoed as month in the result.
offsetNoRows to skip before this page; pass next_offset from the previous result. Default 0.
outcomeNoPolice outcome to keep: a code such as 'cautioned' or a name such as 'Offender given a caution', as by_outcome lists them, matched whole, ignoring case, with runs of spaces, underscores and hyphens read alike. Narrows the counts and the page together; a value nothing matches returns zero, and the notice lists the codes present.
polygonNoFor area 'polygon': 3–2,500 vertices as { lat, lng } objects, or the string 'lat,lng:lat,lng:…'. The ring closes itself (the last vertex joins the first). [lng, lat] pairs are not accepted.
categoryNoCount only outcomes for crimes in this category: a slug such as 'burglary' or a display name such as 'Violence and sexual offences'; case-insensitive, and spaces, underscores and hyphens match each other ('vehicle_crime' finds 'vehicle-crime'). Omitted or 'all-crime': every category. ukcrime_list_reference topic 'categories' lists them.
location_idNoFor area 'location': location.location_id from an earlier result — one anonymised map point.
neighbourhood_idNoFor area 'neighbourhood', with force: a neighbourhood id from ukcrime_list_reference topic 'neighbourhoods', or from ukcrime_find_neighbourhood for a point. Exact spelling first; after a miss, a unique case-insensitive catalog match is retried.
street_name_containsNoWords that must all appear in a record's street name, in any order, part of a word included ('Granby St' finds Granby Street) — case, accents and punctuation ignored, and the 'On or near' every street name starts with dropped from both sides, so the value needs a word besides it. A record with no location never matches. Narrows the counts and the page together; when the matches span several street names, the notice names them.

Output Schema

NameRequiredDescriptionDefault
capNoPage limit applied.
areaNoThe area as the server searched it.
errorNoPresent when the call failed. Absent on success.
monthNoThe month searched, YYYY-MM; it selects data.police.uk's outcome data published for that month, and each outcome carries its own month.
shownNoRows on this page.
totalNoOutcomes matched after category, outcome and street_name_contains.
noticeNoDefaulted month, coverage gaps, why a result is empty, and how to page on.
outcomeNoThe outcome value as sent; present only when it was given.
categoryNoThe crime category counted; absent when every category was (no category, or 'all-crime').
outcomesNoThis page of matched outcomes, sorted by the crime's month, newest first, then crime id.
data_noteNoWhat these records can and cannot say; read it first.
truncatedNoTrue when more rows remain after this page.
by_outcomeNoMatched outcomes by outcome, most first.
attributionNoOpen Government Licence attribution.
by_categoryNoMatched outcomes by crime category, most first, then category in code-unit order.
next_offsetNoPass as offset for the next page; absent on the last page.
by_crime_monthNoMatched outcomes by the month their crime was recorded, newest first.
unfiltered_totalNoOutcomes in the area for the month searched, before category, outcome and street_name_contains.
street_name_containsNoThe street_name_contains value as sent; present only when it was given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / outcome
      Added value: +{
      +  "description": "Police outcome to keep: a code such as 'cautioned' or a name such as 'Offender given a caution', as by_outcome lists them, matched whole, ignoring case, with runs of spaces, underscores and hyphens read alike. Narrows the counts and the page together; a value nothing matches returns zero, and the notice lists the codes present.",
      +  "maxLength": 100,
      +  "type": "string"
      +}
    • addedInput schema / properties / street_name_contains
      Added value: +{
      +  "description": "Words that must all appear in a record's street name, in any order, part of a word included ('Granby St' finds Granby Street) — case, accents and punctuation ignored, and the 'On or near' every street name starts with dropped from both sides, so the value needs a word besides it. A record with no location never matches. Narrows the counts and the page together; when the matches span several street names, the notice names them.",
      +  "maxLength": 100,
      +  "type": "string"
      +}
    • addedOutput schema / properties / outcome
      Added value: +{
      +  "description": "The outcome value as sent; present only when it was given.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / outcomes / items / properties / crime / properties / location / properties / street_name / description
      Previous value: -"Street as published: \"On or near …\"."New value: +"Street as published: \"On or near …\", or a bare \"On or near \" with no street after it, as Northern Ireland publishes some."
    • addedOutput schema / properties / street_name_contains
      Added value: +{
      +  "description": "The street_name_contains value as sent; present only when it was given.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / total / description
      Previous value: -"Outcomes matched, after the category filter."New value: +"Outcomes matched after category, outcome and street_name_contains."
    • changedOutput schema / properties / unfiltered_total / description
      Previous value: -"Outcomes in the area for the month searched, before the category filter."New value: +"Outcomes in the area for the month searched, before category, outcome and street_name_contains."
  2. Changed3 schema fields changed
    • changedOutput schema / properties / month / description
      Previous value: -"The month searched — when the outcomes were recorded — YYYY-MM."New value: +"The month searched, YYYY-MM; it selects data.police.uk's outcome data published for that month, and each outcome carries its own month."
    • changedOutput schema / properties / outcomes / items / properties / month / description
      Previous value: -"Month recorded, YYYY-MM."New value: +"Month police recorded this outcome, YYYY-MM; can differ from the month searched."
    • changedOutput schema / properties / unfiltered_total / description
      Previous value: -"Outcomes recorded in the area and month before the category filter."New value: +"Outcomes in the area for the month searched, before the category filter."
  3. Changed7 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Outcomes on this page, 1–200. Default 20."New value: +"Requested outcomes on this page, 1–10,000; applied cap is at most 200. Default 20."
    • changedInput schema / properties / limit / maximum
      Previous value: -200New value: +10000
    • changedInput schema / properties / neighbourhood_id / description
      Previous value: -"For area 'neighbourhood', with force: a neighbourhood id from ukcrime_list_reference topic 'neighbourhoods', or from ukcrime_find_neighbourhood for a point. Case-sensitive; only trimmed."New value: +"For area 'neighbourhood', with force: a neighbourhood id from ukcrime_list_reference topic 'neighbourhoods', or from ukcrime_find_neighbourhood for a point. Exact spelling first; after a miss, a unique case-insensitive catalog match is retried."
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "error"
      -      ]
      -    },
      -    "required": [
      -      "month",
      -      "area",
      -      "total",
      -      "unfiltered_total",
      -      "by_outcome",
      -      "by_crime_month",
      -      "outcomes",
      -      "attribution",
      -      "data_note",
      -      "truncated",
      -      "shown",
      -      "cap"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "error"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "month",
      +      "area",
      +      "total",
      +      "by_category",
      +      "unfiltered_total",
      +      "by_outcome",
      +      "by_crime_month",
      +      "outcomes",
      +      "attribution",
      +      "data_note",
      +      "truncated",
      +      "shown",
      +      "cap"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / by_category
      Added value: +{
      +  "description": "Matched outcomes by crime category, most first, then category in code-unit order.",
      +  "items": {
      +    "additionalProperties": false,
      +    "description": "A value and its count.",
      +    "properties": {
      +      "count": {
      +        "description": "Matched records.",
      +        "type": "number"
      +      },
      +      "value": {
      +        "description": "As published; '(not recorded)' when absent.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "value",
      +      "count"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `invalid_area`: the area's required fields are missing, or a field it does not use is present. `month_not_published`: month is after the latest published month. `month_out_of_range`: month is before the 36-month window. `unknown_category`: category matches no category slug or name. `unknown_force`: force matches no listed force id or name, or more than one, or is 'btp' (British Transport Police has no neighbourhoods). `unknown_neighbourhood`: the force has no neighbourhood with this id (ids are case-sensitive). `unknown_location`: data.police.uk holds no map point with this location_id. `area_too_large`: the area holds more than 10,000 outcomes, which data.police.uk refuses to answer. `upstream_unavailable`: data.police.uk is not answering. `rate_limited`: data.police.uk is rate-limiting this server for longer than this call can wait. `pacer_shed`: too many requests to data.police.uk are already queued in this server. `retry_deadline_exceeded`: data.police.uk did not answer within the time one call allows. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `ambiguous_neighbourhood`: an exact neighbourhood request misses and more than one catalog id matches without case. `invalid_area`: the area's required fields are missing, or a field it does not use is present. `month_not_published`: month is after the latest published month. `month_out_of_range`: month is before the 36-month window. `unknown_category`: category matches no category slug or name. `unknown_force`: force matches no listed force id or name, or more than one, or is 'btp' (British Transport Police has no neighbourhoods). `unknown_neighbourhood`: the exact neighbourhood request and any unique case-insensitive catalog match miss. `unknown_location`: data.police.uk holds no map point with this location_id. `area_too_large`: the area holds more than 10,000 outcomes, which data.police.uk refuses to answer. `upstream_unavailable`: data.police.uk is not answering. `rate_limited`: data.police.uk is rate-limiting this server for longer than this call can wait. `pacer_shed`: too many requests to data.police.uk are already queued in this server. `retry_deadline_exceeded`: data.police.uk did not answer within the time one call allows. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "invalid_area",
      -  "month_not_published",
      -  "month_out_of_range",
      -  "unknown_category",
      -  "unknown_force",
      -  "unknown_neighbourhood",
      -  "unknown_location",
      -  "area_too_large",
      -  "upstream_unavailable",
      -  "rate_limited",
      -  "pacer_shed",
      -  "retry_deadline_exceeded"
      -]New value: +[
      +  "ambiguous_neighbourhood",
      +  "invalid_area",
      +  "month_not_published",
      +  "month_out_of_range",
      +  "unknown_category",
      +  "unknown_force",
      +  "unknown_neighbourhood",
      +  "unknown_location",
      +  "area_too_large",
      +  "upstream_unavailable",
      +  "rate_limited",
      +  "pacer_shed",
      +  "retry_deadline_exceeded"
      +]
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only cover read-only/idempotent/open-world; the description adds genuinely non-obvious behavior: an outcome's own month can differ from the month searched, a crime's earlier steps can be missing, court results never appear, and the result carries a notice when a force publishes nothing. It also explains that the three filters narrow counts and page together, producing a cross-tab.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the verb and scope, and nearly every clause carries information (month variance, missing prior steps, cross-tab behavior). The trade-off is a single dense block that is harder to scan than a short structured list would be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter tool with an output schema, the description still covers what comes back (total, category/outcome/month counts, a page of outcomes with crime and persistent_id) and the edge cases an agent would otherwise hit blind. Nothing essential to correct invocation appears missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds interaction semantics the schema cannot express: category, outcome and street_name_contains constrain the counts and the page simultaneously, so filtering one field and reading another's breakdown yields a cross-tab. The area-vs-field rejection rule and the limit cap are also echoed outside the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('List the police outcomes data.police.uk published') plus the precise scope (one month, inside an area defined four ways). It also explicitly distinguishes itself from ukcrime_get_crime_outcomes and ukcrime_search_crimes, so an agent can route without opening a sibling schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Names both alternatives and the exact condition that selects each: ukcrime_get_crime_outcomes for one crime's full sequence, ukcrime_search_crimes for the latest outcome of crimes recorded in a month. It also flags the exclusion that court results are not published and that a force may publish none.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.