Skip to main content
Glama
kleinanzeigen-mcp

kleinanzeigen-mcp

by Samxel

search_locations

Read-only

Find location IDs for the location_id filter in Kleinanzeigen searches by name prefix (states, cities, districts); use zip_code for postcode searches.

Instructions

Find location ids for the location_id filter of search_kleinanzeigen by name prefix: states, cities and districts. For a postcode, pass zip_code to the search instead.

Args: query: Start of the name, e.g. "berl". limit: At most 50. Default 10.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered; the description adds that matching is prefix-based over a fixed hierarchy of states/cities/districts and that postcodes are out of scope. It does not say what happens when a prefix matches many places (truncation by limit, ordering, or ambiguity), which is the main remaining behavioral unknown.

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?

The purpose, the sibling hand-off and the postcode exclusion are all front-loaded in the first two sentences, with parameters relegated to a short Args block. No wasted prose, though the Args formatting is slightly heavier than the two-line content warrants.

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 two-parameter read-only lookup with no output schema, the definition covers purpose, routing, the postcode exclusion, and both parameters including an undocumented cap. The only meaningful omission is disambiguating multi-match prefixes, which matters because the agent must pick one location_id.

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 description coverage is 0%, so the description must carry the load, and it does: query is defined as the start of the name with a concrete example ('berl'), and limit gains a hard ceiling of 50 that is not present in the schema. It stops short of explaining what limit truncates or how results are ordered when more than 50 names match.

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 and resource ('Find location ids') plus the exact domain covered ('states, cities and districts') and the mechanism ('by name prefix'). It also names the consuming sibling tool (search_kleinanzeigen) and its location_id filter, so an agent can distinguish it from search_kleinanzeigen itself without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use (resolving a name to a location_id for the search filter) and an explicit when-not with the alternative ('For a postcode, pass zip_code to the search instead'). This is a rare case of a clear routing rule plus an exclusion.

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