Skip to main content
Glama

nearby

Read-only

Entities near a location: lat + lng, radius_km, an optional entity_type, limit. Each carries source_tier. Metered: see CHARGING in the server instructions; quote first with billing_quote.

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": {
      "lat": "<lat>",
      "lng": "<lng>"
    },
    "name": "nearby"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesLatitude in decimal degrees, -90 to 90 (WGS84). Required.
lngYesLongitude in decimal degrees, -180 to 180 (WGS84). Required.
limitNoMaximum rows to return. Up to 100. Default 20.
fieldsNoOnly these keys in each row (plus id). Omit for all.
radius_kmNoSearch radius in km. Default 100.
entity_typeNoEntity kind: deposit | infrastructure | company | project. Optional filter; default all four.
include_country_centroidsNoAlso return country-centre placeholder pins (entities known only by country). Default false.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • removedInput schema / properties / entity_type / default
      Removed value: -null
    • removedInput schema / properties / entity_type / title
      Removed value: -"Entity Type"
    • addedInput schema / properties / fields
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Only these keys in each row (plus id). Omit for all."
      +}
    • removedInput schema / properties / include_country_centroids / title
      Removed value: -"Include Country Centroids"
    • removedInput schema / properties / lat / title
      Removed value: -"Lat"
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • removedInput schema / properties / lng / title
      Removed value: -"Lng"
    • removedInput schema / properties / radius_km / title
      Removed value: -"Radius Km"
    • removedInput schema / title
      Removed value: -"nearbyArguments"
    • removedOutput schema / title
      Removed value: -"nearbyDictOutput"
  2. Changed8 schema fields changed
    • addedInput schema / properties / entity_type / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / entity_type / description
      Added value: +"Entity kind: deposit | infrastructure | company | project. Optional filter; default all four."
    • removedInput schema / properties / entity_type / type
      Removed value: -"string"
    • addedInput schema / properties / include_country_centroids / description
      Added value: +"Also return country-centre placeholder pins (entities known only by country). Default false."
    • addedInput schema / properties / lat / description
      Added value: +"Latitude in decimal degrees, -90 to 90 (WGS84). Required."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum rows to return. Up to 100. Default 20."
    • addedInput schema / properties / lng / description
      Added value: +"Longitude in decimal degrees, -180 to 180 (WGS84). Required."
    • addedInput schema / properties / radius_km / description
      Added value: +"Search radius in km. Default 100."
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "title": "nearbyDictOutput",
      +  "type": "object"
      +}
  4. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds context the annotations cannot: the call is metered/billed and must be quoted via billing_quote beforehand, and results carry a source_tier. That is meaningful behavioral disclosure beyond structured fields.

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?

Two compact sentences, front-loaded with what the tool returns, then the billing prerequisite. No filler. The telegraphic style is slightly abbreviated but every clause carries information.

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?

An output schema exists, so return shape need not be explained, and the billing gate plus source_tier are called out. For a read-only spatial query with fully described parameters, the description covers what an agent needs, though a pointer to when to prefer a sibling tool is missing.

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 coverage is 100%, so all seven parameters are already documented, including defaults for radius_km, limit, and include_country_centroids. The description only restates names (lat, lng, radius_km, entity_type, limit) without adding format or interaction semantics. Baseline 3 is appropriate.

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 states the resource precisely: entities near a lat/lng within radius_km, with optional entity_type and limit, and notes each row carries source_tier. That is a clear, specific spatial-query purpose. It does not distinguish itself from nearby siblings like place_index or look_at, which keeps it from a 5.

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

Usage Guidelines3/5

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

The one real guideline is procedural: this tool is metered, so quote first with billing_quote. That is a valuable precondition. However, there is no guidance on when to choose this over place_index, look_at, or map_viewport, so usage selection is only implied.

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