Skip to main content
Glama

Find Public Transport Stops

overpass.search.transit
Read-onlyIdempotent

Find public transport infrastructure within a geographic bounding box. Supports bus stops, railway stations, subway/metro stations, tram stops, and ferry terminals. Returns stop name, transport type, coordinates, network/operator name, route reference, and wheelchair accessibility. Filter by transport type or fetch all transit infrastructure in the area. Data sourced from OpenStreetMap via Overpass API — especially comprehensive for European cities. Useful for trip planning, accessibility analysis, and finding the nearest metro or train station.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of results to return (1–50, default 20).
lat_maxYesNorthern boundary latitude of the search bounding box.
lat_minYesSouthern boundary latitude of the search bounding box.
lon_maxYesEastern boundary longitude of the search bounding box.
lon_minYesWestern boundary longitude of the search bounding box.
transport_typeNoType of public transport to find: "bus" (bus stops), "train" (railway stations), "subway" (metro stations), "tram" (tram stops), "ferry" (ferry terminals), "all" (all types, default).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds meaningful behavioral context: data provenance (OpenStreetMap via Overpass API), geographic coverage emphasis (European cities), and the exact set of returned attributes. It does not discuss rate limits or bounding-box limits, but the schema and annotations already carry most of that burden.

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 description is four sentences and front-loads the primary purpose first, followed by supported types, return content, and data source context. The use-case sentence at the end is slightly generic but still relevant. It is compact and free of filler, though it could trim the final sentence without losing much.

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?

Given the output schema, the 100% parameter coverage, and the safety annotations, the description is nearly complete for an agent to invoke the tool correctly. It covers what the tool does, what it returns, how to filter, and the data's geographic emphasis. The only notable omission is explicit guidance on result ordering or pagination, but the limit parameter and output schema mitigate that gap.

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%, and every parameter is already well-documented with ranges and defaults. The description reinforces the transport_type parameter by listing the accepted types and saying 'Filter by transport type or fetch all transit infrastructure,' which adds a small amount of semantic color but does not carry a heavy load beyond the schema.

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 opens with a specific verb and resource: 'Find public transport infrastructure within a geographic bounding box.' It enumerates concrete stop types, return fields, and the filtering option, making it immediately distinguishable from sibling tools like overpass.search.amenities or overpass.search.named. An agent can confidently infer what this tool does without opening the schema.

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 gives clear context for when the tool is appropriate, citing trip planning, accessibility analysis, and locating nearby metro/train stations. It also notes the OSM/Overpass source and strong European coverage, which hints at suitability. However, it does not explicitly name alternatives or state when NOT to use it, so it stops short of full exclusionary guidance.

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.