Skip to main content
Glama
OpenStreetMap MCP

OpenStreetMap MCP

osm_set_preference

Stores or updates a single OpenStreetMap user preference value for the authenticated account, using a key and string value up to 255 characters; requires write_prefs OAuth scope.

Instructions

Set one preference (value is a string up to 255 chars; a user may have at most 150). Needs the write_prefs OAuth scope (add it to OSM_SCOPES and the OSM app registration).

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": {
      "key": "<key>",
      "value": "<value>"
    },
    "name": "osm_set_preference"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
valueYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.2

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive, open-world write, so the safety profile is covered. The description adds genuinely new behavioral context: a 255-character value bound, a hard cap of 150 preferences per user, and the exact OAuth scope plus configuration steps needed for authorization — exactly the kind of auth/limit detail annotations cannot express.

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 tight sentences with the action and its limits front-loaded in the parenthetical, followed by the auth prerequisite. No filler, though the parenthetical packs three unrelated facts (value length, cap, and the requirement statement sits oddly outside it).

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 a two-required-parameter mutation with no output schema, the definition covers the important operational constraints: scope, value bound, and per-user cap. It omits what the agent arguably needs most — whether setting an existing key overwrites it or errors, and what the tool returns on success.

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 0%, so the description must carry parameter meaning, and it only partly does. The value constraint restates the schema's maxLength of 255, and the useful new fact is the 150-preference per-user limit, but the 'key' parameter is never explained (is it a new key? does it overwrite an existing one?).

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 opens with a specific verb+resource, "Set one preference", which is immediately distinguishable from sibling osm_delete_preference and osm_get_preferences. It stops short of naming an alternative explicitly, so sibling routing is implied rather than stated.

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 gives a real prerequisite for use — the write_prefs OAuth scope must be enabled in OSM_SCOPES and the app registration — which tells the agent whether the call can succeed at all. However, it offers no guidance on when to prefer this over osm_get_preferences or osm_delete_preference, nor what to do when the 150-preference cap is hit.

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