Skip to main content
Glama

Nearby

nearby
Read-onlyIdempotent

List French business establishments within a radius (0.05-50 km) of a lat/lon coordinate. Optionally filter by APE/NAF sector code. Returns SIREN, denomination, addresses, and sector codes for each nearby unit.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "latitude": 48.8566,
      "longitude": 2.3522
    },
    "name": "nearby"
  }
}

Input Schema

NameRequiredDescriptionDefault
apeNoFilter to a specific APE/NAF code
pageNo1-based page (default 1)
latitudeYesLatitude (WGS84)
per_pageNoPage size, 1-25 (default 10)
longitudeYesLongitude (WGS84)
radius_kmNoSearch radius in km, 0.05-50 (default 1)

Output Schema

NameRequiredDescriptionDefault
pageNoCurrent page number
resultsNoArray of nearby establishments
per_pageNoResults per page
total_resultsNoTotal number of nearby establishments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "latitude": 48.8566,
      +    "longitude": 2.3522
      +  },
      +  {
      +    "ape": "4711Z",
      +    "latitude": 43.2965,
      +    "longitude": 5.3698,
      +    "radius_km": 5
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "page": {
      +      "description": "Current page number",
      +      "type": "number"
      +    },
      +    "per_page": {
      +      "description": "Results per page",
      +      "type": "number"
      +    },
      +    "results": {
      +      "description": "Array of nearby establishments",
      +      "items": {
      +        "properties": {
      +          "address": {
      +            "description": "Establishment address",
      +            "type": "string"
      +          },
      +          "ape": {
      +            "description": "APE/NAF activity code",
      +            "type": "string"
      +          },
      +          "city": {
      +            "description": "City name",
      +            "type": "string"
      +          },
      +          "denomination": {
      +            "description": "Establishment or unit name",
      +            "type": "string"
      +          },
      +          "distance_km": {
      +            "description": "Distance from search center in km",
      +            "type": "number"
      +          },
      +          "enseigne": {
      +            "description": "Trading name",
      +            "type": "string"
      +          },
      +          "etat_administratif": {
      +            "description": "Status (A=active, R=closed)",
      +            "type": "string"
      +          },
      +          "latitude": {
      +            "description": "WGS84 latitude",
      +            "type": "number"
      +          },
      +          "longitude": {
      +            "description": "WGS84 longitude",
      +            "type": "number"
      +          },
      +          "postal_code": {
      +            "description": "5-digit postal code",
      +            "type": "string"
      +          },
      +          "siren": {
      +            "description": "9-digit SIREN of parent unit",
      +            "type": "string"
      +          },
      +          "siret": {
      +            "description": "14-digit SIRET identifier",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "total_results": {
      +      "description": "Total number of nearby establishments",
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered. The description adds the useful radius bounds and the shape of returned records, but says nothing about result caps, pagination limits, or cost for wide radii, which matter for an open-world query.

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?

Three sentences, front-loaded with the core operation and free of filler. The closing sentence on return fields is partly redundant given an output schema exists, but it is short enough not to hurt readability.

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 a full output schema, rich annotations, and 100% schema coverage, the description needs only to convey scope and filtering, which it does. The remaining gap is operational: no mention of pagination behavior or maximum result sets for an open-world spatial query.

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 all six parameters including page, per_page and radius_km defaults are already documented. The description restates the radius range and the APE/NAF filter but adds no format, unit, or matching semantics beyond the schema. 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 gives a specific verb and resource ("List French business establishments") plus a precise scope (radius around a lat/lon coordinate) and the optional sector filter. An agent can tell this is a geospatial proximity lookup rather than a name-based search. It stops short of naming a sibling such as entreprises_fr_search to sharpen the boundary.

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?

There is no when-to-use or when-not-to-use guidance and no alternative tool is named. The only directional hint is "optionally filter by APE/NAF sector code," which is a parameter note rather than a selection rule. An agent must infer on its own when a proximity search beats a registry search.

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.