Skip to main content
Glama

City incidents

get_city_crimes
Read-onlyIdempotent

Returns one page of individual incidents in a city, filtered by crime type, location type, dates, text, and an optional lat/lon box. Supports limit/offset pagination. A window longer than 45 days needs a geographic filter: the box, place, or location_descriptions. Chicago's portal withholds about the last seven days. New York publishes complaints after a quarter closes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_city_crimes"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoCity to query.chicago
limitNoMaximum incidents on this page. Defaults to 25.
placeNoAddress text, such as a street name, matched against location, block, and community area. Neighborhood boundaries come from the lat/lon box.
offsetNoNumber of incidents to skip. Defaults to 0. pagination.next_offset in the result is the next page, or null when there are no more.
lat_maxNoNorth edge of the box.
lat_minNoSouth edge of the box.
lon_maxNoEast edge of the box.
lon_minNoWest edge of the box.
end_dateNoEnd date, YYYY-MM-DD. Defaults to the newest incident.
start_dateNoStart date, YYYY-MM-DD. Defaults to 30 days before the newest incident.
search_textNoText matched against crime type and description.
primary_typesNoCrime types to include, such as THEFT or BATTERY. Defaults to all types.
location_descriptionsNoLocation types to include, such as STREET or RESIDENCE. Defaults to all.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changed
    • changedInput schema / properties / end_date / description
      Previous value: -"End date in YYYY-MM-DD format."New value: +"End date, YYYY-MM-DD. Defaults to the newest incident."
    • changedInput schema / properties / lat_max / description
      Previous value: -"North edge. Required geographic filter for a long window."New value: +"North edge of the box."
    • changedInput schema / properties / lat_min / description
      Previous value: -"South edge. Required geographic filter for a long window."New value: +"South edge of the box."
    • changedInput schema / properties / limit / default
      Previous value: -50New value: +25
    • changedInput schema / properties / limit / description
      Previous value: -"Max records to return (1-500)."New value: +"Maximum incidents on this page. Defaults to 25."
    • changedInput schema / properties / limit / maximum
      Previous value: -500New value: +100
    • changedInput schema / properties / location_descriptions / description
      Previous value: -"Filter by location descriptions (e.g., ['STREET', 'RESIDENCE']). Omit for all."New value: +"Location types to include, such as STREET or RESIDENCE. Defaults to all."
    • changedInput schema / properties / lon_max / description
      Previous value: -"East edge. Required geographic filter for a long window."New value: +"East edge of the box."
    • changedInput schema / properties / lon_min / description
      Previous value: -"West edge. Required geographic filter for a long window."New value: +"West edge of the box."
    • changedInput schema / properties / offset / description
      Previous value: -"Records to skip for pagination."New value: +"Number of incidents to skip. Defaults to 0. pagination.next_offset in the result is the next page, or null when there are no more."
    • changedInput schema / properties / place / description
      Previous value: -"Address text, such as a street name, matched against location, block, and community area. This is not a neighborhood boundary. Harbor View and other neighborhood names need the lat/lon box, or get_area_trends."New value: +"Address text, such as a street name, matched against location, block, and community area. Neighborhood boundaries come from the lat/lon box."
    • changedInput schema / properties / primary_types / description
      Previous value: -"Filter by crime types (e.g., ['THEFT', 'BATTERY', 'NARCOTICS']). Omit for all types."New value: +"Crime types to include, such as THEFT or BATTERY. Defaults to all types."
    • changedInput schema / properties / search_text / description
      Previous value: -"Text search across primary_type and description fields."New value: +"Text matched against crime type and description."
    • changedInput schema / properties / start_date / description
      Previous value: -"Start date in YYYY-MM-DD format."New value: +"Start date, YYYY-MM-DD. Defaults to 30 days before the newest incident."
  2. Changed5 schema fields changed
    • changedInput schema / properties / lat_max / description
      Previous value: -"North edge of a resolve_place box."New value: +"North edge. Required geographic filter for a long window."
    • changedInput schema / properties / lat_min / description
      Previous value: -"South edge of a resolve_place box."New value: +"South edge. Required geographic filter for a long window."
    • changedInput schema / properties / lon_max / description
      Previous value: -"East edge of a resolve_place box."New value: +"East edge. Required geographic filter for a long window."
    • changedInput schema / properties / lon_min / description
      Previous value: -"West edge of a resolve_place box."New value: +"West edge. Required geographic filter for a long window."
    • changedInput schema / properties / place / description
      Previous value: -"Neighborhood or street text from resolve_place. Matched against location, block, and community area."New value: +"Address text, such as a street name, matched against location, block, and community area. This is not a neighborhood boundary. Harbor View and other neighborhood names need the lat/lon box, or get_area_trends."
  3. Changed6 schema fields changed
    • changedInput schema / properties / city / enum
      Previous value: -[
      -  "chicago",
      -  "milwaukee"
      -]New value: +[
      +  "chicago",
      +  "milwaukee",
      +  "new york",
      +  "minneapolis",
      +  "denver"
      +]
    • addedInput schema / properties / lat_max
      Added value: +{
      +  "description": "North edge of a resolve_place box.",
      +  "type": "number"
      +}
    • addedInput schema / properties / lat_min
      Added value: +{
      +  "description": "South edge of a resolve_place box.",
      +  "type": "number"
      +}
    • addedInput schema / properties / lon_max
      Added value: +{
      +  "description": "East edge of a resolve_place box.",
      +  "type": "number"
      +}
    • addedInput schema / properties / lon_min
      Added value: +{
      +  "description": "West edge of a resolve_place box.",
      +  "type": "number"
      +}
    • addedInput schema / properties / place
      Added value: +{
      +  "description": "Neighborhood or street text from resolve_place. Matched against location, block, and community area.",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description is free to add the harder-won operational detail, and it does: per-source publication delays for Chicago (~7 days) and New York (quarterly lag). Combined with the 45-day geo-filter constraint and pagination behavior, this tells the agent what data it will and will not see, which is exactly the invisible failure mode that matters here.

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?

Four sentences, front-loaded with the core action, then constraints, then paging, then source-specific caveats, with no filler. The one mild redundancy is restating the filter list already in the schema, but it functions as an efficient orientation sentence.

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

Completeness4/5

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

For a 13-parameter, all-optional read tool with no output schema, the definition covers the decisions an agent must make: which city, how to page, when a geo filter becomes mandatory, and why recent data may be absent. It could go one step further on how to construct a usable lat/lon box or what happens when a window exceeds 45 days with no geo filter (error vs. truncation).

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 baseline is 3; the description earns above that by disclosing the cross-parameter constraint (long date windows demand a lat/lon box, place, or location_descriptions) that no individual schema field states, and by tying limit/offset to a concrete workflow. It still leaves lat/lon box construction and search_text matching nuance to the schema.

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

Purpose4/5

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

Opens with a specific verb and resource ("Returns one page of individual incidents in a city") and enumerates the filter dimensions, so an agent can immediately tell it is a per-incident retrieval tool rather than an aggregate one. It does not name or contrast any sibling (e.g., get_crime_stats, search_crimes), so the distinction is inferable but not explicit.

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 actionable preconditions rather than just a purpose: queries spanning more than 45 days require a geographic filter (box, place, or location_descriptions), which directly steers argument selection. It stops short of saying when to prefer this over search_crimes or get_crime_stats, so no explicit exclusions.

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.

Resources