Skip to main content
Glama

Area crime trends

get_area_trends
Read-onlyIdempotent

Summarizes incidents inside a neighborhood or rough area: counts by crime type compared with the city, counts by month, the noon-to-midnight share, top streets, and a few notable incidents. Takes a place name, such as Harbor View in Milwaukee, or a lat/lon box, and covers up to 450 days in one call.

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": {
      "city": "<city>"
    },
    "name": "get_area_trends"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityYesCity the area is in.
daysNoDays ending at the newest incident in the city. Defaults to 90. 400 days is about 14 months.
placeNoNeighborhood or rough area, such as Harbor View or Logan Square. Optional when all four box edges are given.
lat_maxNoNorth edge of the box.
lat_minNoSouth edge of the box.
lon_maxNoEast edge of the box.
lon_minNoWest edge of the box.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / days / description
      Previous value: -"Days ending at the newest incident in the city. Default 90. Use 400 for about 14 months."New value: +"Days ending at the newest incident in the city. Defaults to 90. 400 days is about 14 months."
    • changedInput schema / properties / lat_max / description
      Previous value: -"North edge of the box. Geographic filter."New value: +"North edge of the box."
    • changedInput schema / properties / lat_min / description
      Previous value: -"South edge of the box. Geographic filter."New value: +"South edge of the box."
    • changedInput schema / properties / lon_max / description
      Previous value: -"East edge of the box. Geographic filter."New value: +"East edge of the box."
    • changedInput schema / properties / lon_min / description
      Previous value: -"West edge of the box. Geographic filter."New value: +"West edge of the box."
    • changedInput schema / properties / place / description
      Previous value: -"Neighborhood or rough area, such as Harbor View or Logan Square. Omit if you pass a box."New value: +"Neighborhood or rough area, such as Harbor View or Logan Square. Optional when all four box edges are given."
  2. Added

TDQS

A4.1/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, closed-world behavior, so the safety profile is covered. The description adds valuable context beyond that: the outputs it computes, the city comparison, and the 450-day cap in one call. It stops short of describing response structure or how sparse areas are handled when no incidents are found.

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?

Two sentences, front-loaded with the summary content and followed by invocation guidance. The output enumeration is dense but each item earns its place; minor compression could tighten the comma-separated list.

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 7-parameter aggregation tool with no output schema, the description covers what is returned, the area-specification modes, and the time limit. Remaining gaps are minor: it does not say how a place name is resolved against a box or what an empty area returns.

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, but the description adds real meaning: the place/box duality ('Takes a place name... or a lat/lon box'), a concrete place example tied to a city, and the day window relative to the newest incident. These clarify how the optional place and box parameters interact beyond the schema's terse 'Optional when all four box edges are given'.

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 ('Summarizes incidents') with a clear scope ('inside a neighborhood or rough area') and enumerates the exact outputs (counts by crime type vs city, monthly counts, noon-to-midnight share, top streets, notable incidents). This area-level aggregation scope separates it from city-level siblings like get_city_crimes and get_crime_stats.

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

Usage Guidelines3/5

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

Explains the two ways to specify an area (place name or lat/lon box) and the day horizon, which implicitly tells the agent when this tool is the right fit. However it never states when NOT to use it or explicitly points to an alternative such as search_crimes for individual incidents, leaving routing partly to inference.

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