Skip to main content
Glama

Pois Near

pois_near
Read-onlyIdempotent

Find OpenStreetMap points of interest (shops, amenities, businesses) near a location. Give a location either as latitude+longitude OR as a place name via "place" (e.g. place: "Göttingen, Germany" — auto-geocoded). For the category, pass a plain-English term ("bike rental", "pharmacy", "restaurant", "gas station", "ev charger", "hotel", "atm") or an exact OSM tag ("amenity=cafe", "shop=bakery"). Answers "find bike rental shops in ", "pharmacies near me", "restaurants around this point". Returns matching places with names, tags, and coordinates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagYesCategory: a plain term like "bike rental", "pharmacy", "restaurant", "ev charger", or an exact OSM tag like "amenity=cafe", "shop=bakery", "tourism=museum".
limitNoMax results (1-500, default 100)
placeNoPlace name to search near, e.g. "Göttingen, Germany" or "downtown Portland OR". Auto-geocoded to coordinates. Provide this OR latitude+longitude.
latitudeNoCenter latitude (provide with longitude, OR use place)
radius_mNoSearch radius in metres (1-10000, default 1000)
longitudeNoCenter longitude (provide with latitude, OR use place)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagYesOSM tag filter used
countYesNumber of POIs found
centerYesSearch center coordinates
elementsYesArray of POI elements
radius_mYesSearch radius in metres

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / latitude / description
      Previous value: -"Center latitude"New value: +"Center latitude (provide with longitude, OR use place)"
    • changedInput schema / properties / longitude / description
      Previous value: -"Center longitude"New value: +"Center longitude (provide with latitude, OR use place)"
    • addedInput schema / properties / place
      Added value: +{
      +  "description": "Place name to search near, e.g. \"Göttingen, Germany\" or \"downtown Portland OR\". Auto-geocoded to coordinates. Provide this OR latitude+longitude.",
      +  "type": "string"
      +}
    • changedInput schema / properties / tag / description
      Previous value: -"OSM tag filter (e.g., \"amenity=cafe\", \"shop\", \"tourism=museum\")"New value: +"Category: a plain term like \"bike rental\", \"pharmacy\", \"restaurant\", \"ev charger\", or an exact OSM tag like \"amenity=cafe\", \"shop=bakery\", \"tourism=museum\"."
    • changedInput schema / required
      Previous value: -[
      -  "latitude",
      -  "longitude",
      -  "tag"
      -]New value: +[
      +  "tag"
      +]
  2. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "latitude": 48.8566,
      +    "longitude": 2.3522,
      +    "radius_m": 500,
      +    "tag": "amenity=cafe"
      +  },
      +  {
      +    "latitude": 51.5074,
      +    "limit": 50,
      +    "longitude": -0.1278,
      +    "radius_m": 2000,
      +    "tag": "shop=bakery"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "center": {
      +      "description": "Search center coordinates",
      +      "properties": {
      +        "latitude": {
      +          "description": "Center latitude",
      +          "type": "number"
      +        },
      +        "longitude": {
      +          "description": "Center longitude",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "latitude",
      +        "longitude"
      +      ],
      +      "type": "object"
      +    },
      +    "count": {
      +      "description": "Number of POIs found",
      +      "type": "number"
      +    },
      +    "elements": {
      +      "description": "Array of POI elements",
      +      "items": {
      +        "properties": {
      +          "id": {
      +            "description": "OSM element ID",
      +            "type": "number"
      +          },
      +          "latitude": {
      +            "description": "Latitude coordinate or null if unavailable",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "longitude": {
      +            "description": "Longitude coordinate or null if unavailable",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "name": {
      +            "description": "OSM name tag value or null",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "osm_url": {
      +            "description": "Direct link to element on OpenStreetMap",
      +            "type": "string"
      +          },
      +          "tags": {
      +            "description": "All OSM tags as key-value pairs",
      +            "type": "object"
      +          },
      +          "type": {
      +            "description": "OSM element type",
      +            "enum": [
      +              "node",
      +              "way",
      +              "relation"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "type",
      +          "id",
      +          "osm_url",
      +          "latitude",
      +          "longitude",
      +          "name",
      +          "tags"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "radius_m": {
      +      "description": "Search radius in metres",
      +      "type": "number"
      +    },
      +    "tag": {
      +      "description": "OSM tag filter used",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "center",
      +    "radius_m",
      +    "tag",
      +    "count",
      +    "elements"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare the tool as read-only, open-world, and idempotent. The description adds meaningful behavioral details such as auto-geocoding for place names, accepting plain-English terms or exact OSM tags, and returning names, tags, and coordinates. It does not contradict annotations and provides useful context beyond the safety hints.

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?

The description is concise, front-loaded with the primary purpose, and every sentence adds useful information. It includes examples and parameter clarifications without extraneous words, making it highly efficient and easy to scan.

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

Completeness5/5

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

Given the presence of an output schema (not shown but indicated), strong annotations, and a detailed description covering input modes, category handling, sample queries, and return values, the description is sufficiently complete for an agent to select and invoke the tool correctly in most scenarios.

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?

Although the schema already describes all parameters with 100% coverage, the description enriches the semantics by explaining the 'place' parameter's auto-geocoding behavior and the 'tag' parameter's flexibility (plain term vs. exact OSM tag). This adds value beyond the schema descriptions.

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 clearly states the tool's function: finding OpenStreetMap points of interest near a location, and lists example categories (shops, amenities, businesses). It also specifies how to specify location and category, and even includes sample queries that demonstrate its exact purpose, effectively distinguishing it from siblings like 'places_in_bbox' by focusing on 'near a location' rather than bounding boxes.

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 description provides explicit guidance on when to use the tool ('Answers "find bike rental shops in <city>"') and how to provide inputs (location via lat/lon or place name). While it does not explicitly mention alternatives or exclusions, the context and examples make the intended usage clear and practical.

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.