Skip to main content
Glama

Get Crimes

get_crimes
Read-onlyIdempotent

Get street-level crimes reported near a latitude/longitude in England, Wales or Northern Ireland, from the official police open data. Returns each crime's category, street, month and outcome status, plus the month the figures are actually for. Answers "what crime was reported near " and "how much burglary is there around these coordinates". Omit date for the latest published month, the feed runs about two months in arrears, and a month that has not been published yet is reported as such rather than as an absence of crime.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "lat": 51.5074,
      "lng": -0.1278
    },
    "name": "get_crimes"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesLatitude of the location
lngYesLongitude of the location
dateNoMonth in YYYY-MM form, e.g. "2026-05". Omit for the latest published month. Data lags roughly two months; if the requested month is not published yet, the most recent available month is returned and labelled.

Output Schema

NameRequiredDescriptionDefault
countYesTotal number of crimes returned
crimesYesArray of street-level crimes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / date / description
      Previous value: -"Month to query in YYYY-MM format (e.g. \"2024-01\"). Defaults to latest available."New value: +"Month in YYYY-MM form, e.g. \"2026-05\". Omit for the latest published month. Data lags roughly two months; if the requested month is not published yet, the most recent available month is returned and labelled."
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "count": {
      +      "description": "Total number of crimes returned",
      +      "type": "number"
      +    },
      +    "crimes": {
      +      "description": "Array of street-level crimes",
      +      "items": {
      +        "properties": {
      +          "category": {
      +            "description": "Crime category",
      +            "type": "string"
      +          },
      +          "id": {
      +            "description": "Crime ID",
      +            "type": "number"
      +          },
      +          "month": {
      +            "description": "Month of the crime in YYYY-MM format",
      +            "type": "string"
      +          },
      +          "outcome": {
      +            "description": "Outcome category or 'Under investigation'",
      +            "type": "string"
      +          },
      +          "outcome_date": {
      +            "description": "Date of outcome if available",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "street": {
      +            "description": "Street name where crime occurred",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "category",
      +          "month",
      +          "street",
      +          "outcome",
      +          "outcome_date"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "count",
      +    "crimes"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "lat": 51.5074,
      +    "lng": -0.1278
      +  },
      +  {
      +    "date": "2024-01",
      +    "lat": 53.4808,
      +    "lng": -2.2426
      +  }
      +]
  4. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, so the bar is lower. The description still adds real value beyond them: the feed runs about two months in arrears, and a not-yet-published month is explicitly flagged rather than returned as an empty result — a meaningful anti-misinterpretation detail. It stops short of covering error handling or rate limits.

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?

Three sentences, front-loaded with purpose and scope before the freshness caveat, with no filler. It is dense but each sentence carries distinct information; the only mild redundancy is repeating the month-lag behavior already in the schema.

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?

An output schema exists, so return values need not be explained, yet the description still summarizes the key fields and the returned-month label. Combined with geographic scope and freshness caveats, an agent has everything needed to call this correctly for a three-parameter, low-complexity tool.

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

Parameters3/5

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

Schema description coverage is 100% and the schema already explains lat, lng and the YYYY-MM `date` with the two-month lag and fallback labeling. The description restates the omit-`date`-for-latest behavior, so it adds emphasis but little meaning beyond the structured fields. Baseline 3 applies.

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 (street-level crimes) plus a precise geographic scope (England, Wales, Northern Ireland) and data source (official police open data). It also names the concrete question shapes it answers, so an agent can match an intent to this tool without ambiguity.

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

Usage Guidelines4/5

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

Gives clear contextual guidance: use it for "what crime was reported near <place>" and "how much burglary around these coordinates", and omit `date` for the latest month. It does not explicitly route away from related tools (e.g. outcome-specific or force-specific siblings), so there is context but no exclusions or named alternatives.

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.