Skip to main content
Glama
OpenStreetMap MCP

OpenStreetMap MCP

osm_get_preferences

Read-only

Reads the authenticated user's OpenStreetMap preferences, returning all free-form key/value strings or the value for one key; requires the read_prefs OAuth scope.

Instructions

Read the authenticated user's OSM preferences: all of them, or one by key. These are free-form key/value strings that editors store per account. Needs the read_prefs OAuth scope.

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_get_preferences"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.2

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already mark this read-only and open-world, but the description adds substantive context the annotations cannot: the values are free-form per-account strings written by editors, and the call requires the read_prefs OAuth scope. That auth requirement is exactly the kind of behavioral fact an agent needs before calling.

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 short sentences, front-loaded with the verb and resource, then the data shape, then the auth requirement. No filler or restated name/title text.

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?

For a one-parameter read tool with read-only annotations, the description covers what is returned (free-form key/value strings), the two modes, and the scope requirement. Only minor details like not-found behavior or output format specifics are absent, and no output schema exists to cover them.

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?

Schema coverage is 0%, so the description carries the burden, and it does: the single 'key' parameter is identified as selecting one preference by name, with omission meaning 'return all'. The only gap is that the free-form key syntax and the maxLength/empty-string constraints in the schema are not echoed.

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 ('Read the authenticated user's OSM preferences') plus the scope ('all of them, or one by key'), so the operation is unambiguous. The read verb also implicitly separates it from the sibling osm_delete_preference, though no sibling is named explicitly.

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 states the two usage modes (fetch everything vs. fetch one by key) and a prerequisite ('Needs the read_prefs OAuth scope'), which is real context. It stops short of saying when to prefer this over alternatives or what happens in edge cases such as an unknown key.

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