Skip to main content
Glama
dwain-barnes

MCP Server Police UK

by dwain-barnes

get_stop_searches_by_location

Fetch stop and search incidents by location ID. Optionally specify a month (YYYY-MM) to filter results. Useful for analyzing police stop and search activity at a given location.

Instructions

Retrieve stop and searches at a specific location by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
location_idYesThe ID of the location
dateNoSpecific month (YYYY-MM)

Implementation Reference

  • Handler function that executes the get_stop_searches_by_location tool logic. Takes location_id (required) and date (optional), makes API request to 'stops-at-location' endpoint.
    async function getStopSearchesByLocation(args: any) {
      const { location_id, date } = args;
      const params: Record<string, any> = { location_id };
      if (date) params.date = date;
      return await makeApiRequest('stops-at-location', params) || [];
    }
  • Schema definition for get_stop_searches_by_location, describing the tool with input parameters: location_id (number, required) and date (string, optional).
      name: 'get_stop_searches_by_location',
      description: 'Retrieve stop and searches at a specific location by ID',
      inputSchema: {
        type: 'object',
        properties: {
          location_id: { type: 'number', description: 'The ID of the location' },
          date: { type: 'string', description: 'Specific month (YYYY-MM)' }
        },
        required: ['location_id']
      }
    },
  • src/index.ts:466-466 (registration)
    Registration/mapping of the tool name 'get_stop_searches_by_location' to the handler function getStopSearchesByLocation in the toolFunctions map.
    get_stop_searches_by_location: getStopSearchesByLocation,
Behavior3/5

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

No annotations are provided, so the description must convey behavior. It indicates a read operation ('Retrieve') but omits any details about response format, pagination, or side effects. This is minimally acceptable for a simple retrieval tool.

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?

A single sentence of 11 words that is front-loaded with the action and resource. No unnecessary words, but could be slightly more informative without losing conciseness.

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

Completeness3/5

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

Given the tool's simplicity (2 parameters, no output schema), the description is adequate but does not explain return structure or behavior for optional parameters. It meets basic needs but lacks depth.

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?

The input schema has 100% description coverage for both parameters, so the baseline is 3. The description adds no additional meaning beyond the schema; it only confirms the purpose of location_id via 'by ID'.

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?

The description specifies the verb 'Retrieve' and the resource 'stop and searches' with the qualifier 'at a specific location by ID', clearly distinguishing it from sibling tools like get_stop_searches_by_area or get_stop_searches_no_location.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives. It does not mention that it requires a location ID and that the date parameter is optional, nor does it direct users to sibling tools for other query types.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dwain-barnes/police-uk-api-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server