Skip to main content
Glama

Citywide crime stats

get_crime_stats
Read-onlyIdempotent

Returns citywide counts, the date range, top crime types, and top location types for one city or all cities. The figures cover whole cities; get_area_trends covers a neighborhood.

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

Input Schema

NameRequiredDescriptionDefault
cityNoCity to summarize, or all for every city side by side.all
top_nNoNumber of crime types and location types to list. Defaults to 10.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / city / description
      Previous value: -"City to get stats for. Use 'all' for cross-city comparison."New value: +"City to summarize, or all for every city side by side."
    • changedInput schema / properties / top_n / description
      Previous value: -"Number of top items to return."New value: +"Number of crime types and location types to list. Defaults to 10."
  2. Changed1 schema field changed
    • changedInput schema / properties / city / enum
      Previous value: -[
      -  "all",
      -  "chicago",
      -  "milwaukee"
      -]New value: +[
      +  "all",
      +  "chicago",
      +  "milwaukee",
      +  "new york",
      +  "minneapolis",
      +  "denver"
      +]
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description adds value beyond that by stating exactly what the response contains and that the aggregation is citywide rather than per-neighborhood — real behavioral context. It stops short of noting the underlying data window or any cost/rate characteristics.

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

Conciseness5/5

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

Two sentences, the payload is front-loaded, and the second sentence exists purely to steer the agent away from a sibling. Zero filler.

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?

With no output schema, the description carries the return-value burden and discharges it well by naming the four result groups. The remaining ambiguity is the time window the stats cover — 'the date range' is returned but its extent when no date parameters exist is never implied.

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%, so both parameters are already documented, including the enum and the default of 10. The description only restates that results can be for one city or all; it never mentions top_n or that it caps both the crime-type and location-type lists, so it adds no meaning beyond 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?

Names a specific verb and resource ('Returns citywide counts') and enumerates the payload: counts, date range, top crime types, top location types, per city or all cities. An agent can tell it apart from get_area_trends from the text alone.

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?

'The figures cover whole cities; get_area_trends covers a neighborhood' gives an explicit boundary plus the sibling to use instead. It does not address when to prefer get_city_crimes or search_crimes, so the routing is clear for only one of three similar siblings.

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