Skip to main content
Glama
OpenStreetMap MCP

OpenStreetMap MCP

osm_login

Starts OAuth 2.0 login with PKCE, returns a browser approval URL, and captures the token automatically so you can authenticate before editing map data or writing notes.

Instructions

Start OAuth 2.0 login (authorization code + PKCE). Returns a URL the user must open in a browser and approve; the token is then captured automatically by a temporary local listener (5 minute window). Afterwards call osm_whoami to confirm. Needed before any editing or note-writing tool.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "osm_login"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

The annotations only declare it as non-read-only and open-world; the description carries the real behavioral burden by explaining that a URL is returned, human browser approval is required, and the token is captured by a temporary local listener with a 5-minute window. That timeout and the out-of-band user interaction are exactly the operational facts an agent needs and cannot infer from the annotations or empty schema.

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?

Three tight sentences, front-loaded with the protocol, then the return/mechanism, then the prerequisite and follow-up. Every clause carries actionable information with no filler.

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?

With no parameters and no output schema, the description still covers what the call returns (a URL), how completion happens (local listener, 5-minute window), and what to do next (osm_whoami). Nothing an agent needs in order to invoke and sequence this tool is missing.

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?

There are zero parameters, so the baseline is 4 and there is no parameter meaning to add. The description correctly avoids inventing inputs and instead explains the flow around the call.

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 names a specific verb and resource ('Start OAuth 2.0 login') and pins down the exact flow (authorization code + PKCE), which distinguishes it immediately from osm_logout and osm_whoami in the sibling list. An agent knows precisely what the call initiates without opening any 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?

It gives an explicit prerequisite ('Needed before any editing or note-writing tool') and a prescribed follow-up ('Afterwards call osm_whoami to confirm'), which is strong routing guidance. The only gap is that it never says what to do if a session already exists, so an agent cannot tell whether re-login is safe or necessary.

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