Skip to main content
Glama

Search incidents

search_crimes
Read-onlyIdempotent

Searches crime types and descriptions in one city or all cities and returns matching incidents. Matches come from incident text, which rarely names a neighborhood; get_area_trends covers places.

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": {
      "query": "<query>"
    },
    "name": "search_crimes"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoCity to search, or all for every city.all
limitNoMaximum incidents returned. Defaults to 25.
queryYesSearch text, such as armed robbery or domestic battery.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / city / description
      Previous value: -"City to search. Use 'all' for every city."New value: +"City to search, or all for every city."
    • changedInput schema / properties / limit / description
      Previous value: -"Max results (1-200)."New value: +"Maximum incidents returned. Defaults to 25."
    • changedInput schema / properties / limit / maximum
      Previous value: -200New value: +100
    • changedInput schema / properties / query / description
      Previous value: -"Search text (e.g., 'armed robbery', 'domestic battery')."New value: +"Search text, such as armed robbery or domestic battery."
  2. Changed2 schema fields changed
    • changedInput schema / properties / city / description
      Previous value: -"City to search. Use 'all' for both."New value: +"City to search. Use 'all' for every city."
    • changedInput schema / properties / city / enum
      Previous value: -[
      -  "all",
      -  "chicago",
      -  "milwaukee"
      -]New value: +[
      +  "all",
      +  "chicago",
      +  "milwaukee",
      +  "new york",
      +  "minneapolis",
      +  "denver"
      +]
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the description need not restate safety. It does add behavioral context beyond the annotations: that matching is against incident free text rather than geography, which explains why neighborhood queries underperform. It says nothing about result ordering or what a returned incident looks like.

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, both load-bearing, with the core purpose front-loaded and the routing caveat placed after it. No redundant restatement of the title or the parameter 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?

With no output schema, the description could say more about what a matching incident contains, which is its main remaining gap. Everything an agent needs in order to choose the tool correctly (scope, text-based matching, the get_area_trends alternative) is present and accurate.

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 the schema already documents city, limit and query with defaults, ranges and an enum. The description only echoes the city scope ("one city or all cities") and gives no extra detail about query syntax or matching behavior beyond the schema. Baseline 3 applies.

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?

The description opens with a specific verb and resource ("Searches crime types and descriptions") and states the return ("matching incidents") plus the scope (one city or all cities). It names get_area_trends as a different route, though it does not explicitly distinguish itself from get_city_crimes.

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?

It gives a clear routing rule: match comes from incident text, which rarely names a neighborhood, and get_area_trends covers places. It lacks an explicit "when not to use" for the sibling get_city_crimes or get_crime_stats, so the routing context is clear but not exhaustive.

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