Skip to main content
Glama

Search UK Street-Level Crimes

ukcrime_search_crimes
Read-onlyIdempotent

Search street-level crimes recorded in one month, or with month_from a range of up to 12 months, inside an area — a point with a 1-mile radius, a polygon, a snapped location_id from an earlier result, or a police neighbourhood — or list the crimes a force could not place on the map (area 'force_unplaced'). Returns the total, counts by category and by latest police outcome, the busiest map points, each month's total for a range, and a page of crimes, each with the persistent_id that ukcrime_get_crime_outcomes takes when it has one. outcome (a latest police outcome name, as by_outcome shows it) and street_name_contains narrow the counts and the page together. For the police outcomes data.police.uk published for a month, whenever the crime was recorded, use ukcrime_search_outcomes. Locations are anonymised map points, not crime sites. data.police.uk can refuse an area holding more than about 10,000 crimes, whatever the category — then search smaller polygons.

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_crimes"
  }
}

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), 'neighbourhood' (force and neighbourhood_id), or 'force_unplaced' (force alone: the crimes that force could not place on the map; they have no location, so street_name_contains is rejected with it). An area field the chosen area does not use is rejected.
forceNoForce 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. For area 'neighbourhood' (with neighbourhood_id) and 'force_unplaced' (alone), where 'btp' (British Transport Police) is also accepted.
limitNoRequested crimes on this page, 1–10,000; applied cap is at most 200. Default 25.
monthNoMonth as YYYY-MM, or the last month of the range with month_from. 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.
outcomeNoLatest police outcome to keep, matched whole against the names by_outcome shows, such as 'Offender given a caution', or '(not recorded)' for crimes with none (anti-social behaviour never has one) — ignoring case, with runs of spaces, underscores and hyphens read alike. Crime records carry no outcome code, so a code such as 'cautioned' matches nothing; ukcrime_search_outcomes takes codes. Narrows the counts and the page together; a value nothing matches returns zero, and the notice lists the names 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.
categoryNoCrime category slug such as 'burglary', or its display name such as 'Violence and sexual offences'; case-insensitive, and spaces, underscores and hyphens match each other ('vehicle_crime' finds 'vehicle-crime'). Omitted: every category (all-crime). ukcrime_list_reference topic 'categories' lists them.
month_fromNoFirst month of a range, YYYY-MM, searched through month — up to 12 months, with a total for each in by_month. Omitted: month alone.
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, or the last month of the range, YYYY-MM.
shownNoRows on this page.
totalNoCrimes matched in the area over the month or range: of the category searched, then of outcome and street_name_contains when given.
crimesNoThis page of matched crimes: oldest month first over a range, then by category, then location_id, then id.
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.
by_monthNoCrimes matched in each month of the range, oldest first, after outcome and street_name_contains; their totals sum to total. Present only when month_from was given.
categoryNoThe crime category searched.
data_noteNoWhat these records can and cannot say; read it first.
truncatedNoTrue when more rows remain after this page.
by_outcomeNoMatched crimes by latest police outcome name, most first — the values outcome matches; anti-social behaviour is always '(not recorded)'.
month_fromNoFirst month of the range searched, YYYY-MM; present only when month_from was given.
attributionNoOpen Government Licence attribution.
by_categoryNoMatched crimes by category slug, most first.
next_offsetNoPass as offset for the next page; absent on the last page.
top_locationsNoUp to 10 map points holding the most matched crimes, after outcome and street_name_contains. Absent for area 'force_unplaced'.
unfiltered_totalNoCrimes of the category searched in the area over the month or range, before outcome and street_name_contains; present only when either was given.
street_name_containsNoThe street_name_contains value as sent; present only when it was given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • changedInput schema / properties / area / description
      Previous value: -"Area to search: 'point' (lat and lng; a 1-mile radius), 'polygon' (polygon), 'location' (location_id), 'neighbourhood' (force and neighbourhood_id), or 'force_unplaced' (force alone: the crimes that force could not place on the map). An area field the chosen area does not use is rejected."New value: +"Area to search: 'point' (lat and lng; a 1-mile radius), 'polygon' (polygon), 'location' (location_id), 'neighbourhood' (force and neighbourhood_id), or 'force_unplaced' (force alone: the crimes that force could not place on the map; they have no location, so street_name_contains is rejected with it). An area field the chosen area does not use is rejected."
    • addedInput schema / properties / outcome
      Added value: +{
      +  "description": "Latest police outcome to keep, matched whole against the names by_outcome shows, such as 'Offender given a caution', or '(not recorded)' for crimes with none (anti-social behaviour never has one) — ignoring case, with runs of spaces, underscores and hyphens read alike. Crime records carry no outcome code, so a code such as 'cautioned' matches nothing; ukcrime_search_outcomes takes codes. Narrows the counts and the page together; a value nothing matches returns zero, and the notice lists the names 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"
      +}
    • changedOutput schema / properties / by_month / description
      Previous value: -"Crimes matched in each month of the range, oldest first; their totals sum to total. Present only when month_from was given."New value: +"Crimes matched in each month of the range, oldest first, after outcome and street_name_contains; their totals sum to total. Present only when month_from was given."
    • changedOutput schema / properties / by_outcome / description
      Previous value: -"Matched crimes by latest police outcome, most first; anti-social behaviour is always '(not recorded)'."New value: +"Matched crimes by latest police outcome name, most first — the values outcome matches; anti-social behaviour is always '(not recorded)'."
    • changedOutput schema / properties / crimes / items / 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."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous 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 or month_from is after the latest published month. `month_out_of_range`: month or month_from is before the 36-month window. `invalid_month_range`: month_from is after month, or the range spans more than 12 months. `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' on area 'neighbourhood'. `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 is too large to answer: data.police.uk can refuse one holding more than about 10,000 crimes. `range_too_large`: the range's months hold more records than one call keeps for a range. `range_incomplete`: the months of the range could not all be fetched within the time one call allows. `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, a field it does not use is present, or street_name_contains is sent with area 'force_unplaced'. `month_not_published`: month or month_from is after the latest published month. `month_out_of_range`: month or month_from is before the 36-month window. `invalid_month_range`: month_from is after month, or the range spans more than 12 months. `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' on area 'neighbourhood'. `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 is too large to answer: data.police.uk can refuse one holding more than about 10,000 crimes. `range_too_large`: the range's months hold more records than one call keeps for a range. `range_incomplete`: the months of the range could not all be fetched within the time one call allows. `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."
    • addedOutput schema / properties / outcome
      Added value: +{
      +  "description": "The outcome value as sent; present only when it was given.",
      +  "type": "string"
      +}
    • 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 / top_locations / description
      Previous value: -"Up to 10 map points holding the most matched crimes. Absent for area 'force_unplaced'."New value: +"Up to 10 map points holding the most matched crimes, after outcome and street_name_contains. Absent for area 'force_unplaced'."
    • changedOutput schema / properties / total / description
      Previous value: -"Crimes matched in the area over the month or range."New value: +"Crimes matched in the area over the month or range: of the category searched, then of outcome and street_name_contains when given."
    • addedOutput schema / properties / unfiltered_total
      Added value: +{
      +  "description": "Crimes of the category searched in the area over the month or range, before outcome and street_name_contains; present only when either was given.",
      +  "type": "number"
      +}
  2. Changed5 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Crimes on this page, 1–200. Default 25."New value: +"Requested crimes on this page, 1–10,000; applied cap is at most 200. Default 25."
    • 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 / 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 or month_from is after the latest published month. `month_out_of_range`: month or month_from is before the 36-month window. `invalid_month_range`: month_from is after month, or the range spans more than 12 months. `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' on area 'neighbourhood'. `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 is too large to answer: data.police.uk can refuse one holding more than about 10,000 crimes. `range_too_large`: the range's months hold more records than one call keeps for a range. `range_incomplete`: the months of the range could not all be fetched within the time one call allows. `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 or month_from is after the latest published month. `month_out_of_range`: month or month_from is before the 36-month window. `invalid_month_range`: month_from is after month, or the range spans more than 12 months. `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' on area 'neighbourhood'. `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 is too large to answer: data.police.uk can refuse one holding more than about 10,000 crimes. `range_too_large`: the range's months hold more records than one call keeps for a range. `range_incomplete`: the months of the range could not all be fetched within the time one call allows. `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",
      -  "invalid_month_range",
      -  "unknown_category",
      -  "unknown_force",
      -  "unknown_neighbourhood",
      -  "unknown_location",
      -  "area_too_large",
      -  "range_too_large",
      -  "range_incomplete",
      -  "upstream_unavailable",
      -  "rate_limited",
      -  "pacer_shed",
      -  "retry_deadline_exceeded"
      -]New value: +[
      +  "ambiguous_neighbourhood",
      +  "invalid_area",
      +  "month_not_published",
      +  "month_out_of_range",
      +  "invalid_month_range",
      +  "unknown_category",
      +  "unknown_force",
      +  "unknown_neighbourhood",
      +  "unknown_location",
      +  "area_too_large",
      +  "range_too_large",
      +  "range_incomplete",
      +  "upstream_unavailable",
      +  "rate_limited",
      +  "pacer_shed",
      +  "retry_deadline_exceeded"
      +]
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations supply readOnly/openWorld/idempotent, and the description goes beyond them with real behavioral context: area-field rejection, street_name_contains being rejected for 'force_unplaced', outcome values matching nothing returning zero with the notice listing present names, anonymised map points, and the ~10,000-crime refusal limit with the workaround. The only gap is that it does not describe pagination beyond the offset/next_offset chaining already in the schema.

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?

Purpose and area enumeration are front-loaded and nearly every clause carries information. The single dense paragraph is long for readability, and a few clauses (e.g. outcome-code caveat) repeat schema text, but there is no filler.

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 14-parameter, open-world search tool, it covers scoping, filtering interactions, result shape, downstream identifier chaining, upstream API limits, and error handling. Return values are partly summarised even though an output schema exists, so nothing essential is 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 would be 3; the description still earns credit for cross-parameter semantics the schema states only per-field, such as outcome and street_name_contains narrowing the counts and the page together and the persistent_id link into ukcrime_get_crime_outcomes. It adds little syntax detail beyond the schema, which is acceptable given full coverage.

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 (search street-level crimes) plus the scoping alternatives (one month or a month_from range up to 12 months, and the five area types including 'force_unplaced'). It explicitly distinguishes itself from ukcrime_search_outcomes for outcome-dataset queries, so an agent can route without opening either 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 the alternative explicitly ('For the police outcomes data ... use ukcrime_search_outcomes'), gives the precondition that selects it, and covers the special 'force_unplaced' case and the point/polygon/location/neighbourhood choice per area. It also explains when a failure should trigger a smaller search ('search smaller polygons').

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.