Skip to main content
Glama
OSM Edit MCP Server

OSM Edit MCP Server

by skywinder

review_bus_return_trip

Read-onlyIdempotent

Compare confirmed outward bus stops with an observed return journey to spot differences in OSM ways, junctions, and matched endpoints. Review return stop candidates, ambiguity, and gaps before editing.

Instructions

Compare confirmed outward stops with a separately observed return journey. Supply return_match as the data from suggest_bus_route_ways for an actual return GPX selection or surveyed waypoints in return travel order. Optional outward_match from the outward trip adds differences in OSM ways, junctions and matched endpoints. Return visits follow the return trace, with boarding side, ambiguity and exclusions. Pairs use geographic distance even when local names differ. Review every candidate. The editing API receives the outward node IDs. Only return corridor bounding boxes are sent to the stop provider. This read-only comparison never establishes service.

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": {
      "outward_stop_ids": "<outward_stop_ids>",
      "return_match": "<return_match>"
    },
    "name": "review_bus_return_trip"
  }
}

Input Schema

NameRequiredDescriptionDefault
providerNoauto
driving_sideNoright
return_matchYes
outward_matchNo
pair_radius_mNo
outward_stop_idsYes
corridor_radius_mNo
excluded_return_node_idsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

B3.3/5.0
Behavior4/5

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

The annotations already establish that this is read-only, open-world, idempotent, and non-destructive. The description adds useful behavioral context by explaining matching logic, that the editing API receives outward node IDs, that only return corridor bounding boxes go to the stop provider, and that the comparison never establishes service.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded and there is little obvious filler, but the description is a dense block of sentences with some cryptic phrasing such as 'Return visits follow the return trace, with boarding side, ambiguity and exclusions.' It would be clearer and more scannable if the matching behavior and parameter guidance were structured separately.

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

Completeness3/5

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

For an eight-parameter comparison tool with an output schema and rich annotations, the description covers the core comparison and external data flow reasonably well. It remains incomplete for several optional parameters and some matching details, so an agent could call it with required inputs but may not use the options correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/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 compensate, but it only meaningfully explains return_match and outward_match while leaving provider, driving_side, pair_radius_m, corridor_radius_m, and excluded_return_node_ids largely or entirely unexplained. It hints at outward node IDs, boarding side, and exclusions, but does not map those clearly to the named parameters.

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 a specific action: comparing confirmed outward stops with a separately observed return journey, and ties return_match to data from suggest_bus_route_ways. It is clearly not a generic bus-route tool, though the output-oriented phrase 'Review every candidate' is somewhat vague.

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?

It explains the expected inputs and sequencing with suggest_bus_route_ways, including that return_match should be actual return GPX data or surveyed waypoints in travel order. However, it does not explicitly say when to use this tool versus alternatives such as preview_bus_route or compare_track_selections, nor when not to use it.

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