Skip to content
news / mcp-tool-annotations · raw .md
Agents5 min readMapMap engineering
A loose grid of small square tiles, each with a small tab on its top edge, scattered over faint topographic contours; most are drawn as open outlines and a handful are filled solid.

Every MCP tool now says whether it changes anything

Each of the 61 tools on MapMap's hosted MCP server now carries a human title and all four MCP tool annotations, set explicitly rather than left to the defaults. Since 23 November 2026 an assistant can tell from tools/list alone that 50 of the tools only read, which 11 write, and that two of those remove or override something.

Why do annotations matter to an assistant?

Because a host decides how carefully to treat a call before it makes it. MCP lets a server describe each tool beside its schema with a title and four hints: readOnlyHint, destructiveHint, idempotentHint and openWorldHint. A host can run read-only tools without asking, ask before a write, and warn before anything destructive. Without the hints it has to guess from the tool's name, and the spec's defaults assume the worst: a tool with no hints is treated as one that may write and may destroy. Before this change our tools carried none, so planning a route looked to a careful host as risky as deleting something.

Which tools write?

Eleven, and the server says which:

ToolDestructiveRepeating it
start_navigationnoopens another session
check_navigation_progressnoposts another fix
end_navigationyes: drops the session's route and last positionno further effect
submit_optimise_jobnosubmits another job
create_stylenocreates another style
set_palette, set_layer_paint, set_layer_layoutno: each publishes a new immutable style version, and earlier versions stay publishedpublishes another version
report_map_issuenofiles another report
submit_integration_retronosends another retro
set_temporary_closureyes: overrides live routing on those roads for every calleradds another record

set_temporary_closure is an operator tool that only an admin key can use. Every other tool on the server, from route and geocode to the geo_* geometry tools, is marked readOnlyHint: true, destructiveHint: false and idempotentHint: true.

What does each hint mean on our server?

We wrote the rules down once and set every tool against them:

  • readOnlyHint is true when a call changes nothing anywhere: not our stores, not a session, not a queue. A metered read is still a read. Quota is accounting, not an effect the caller asked for.
  • destructiveHint is true only when a call removes or overrides something that existed before it. Publishing a new style version is additive, so the style tools are not destructive.
  • idempotentHint is true when repeating the same call has no further effect. Reads are idempotent; creating a style, a job, a report, a retro or a session makes another one each time.
  • openWorldHint is true when the answer comes from data about the real world that changes outside the caller's control: the road graph, places, elevation, fuel and charging feeds, forecasts, timetables, natural events. It is false when the answer is a function of the arguments alone, such as the geometry tools and the ADR tunnel rules, or when the tool works only on records we hold, such as styles, jobs and usage. On 25 November, 34 of the 61 tools were open-world.

The hints live in one table in the server, one row per tool. Its tests fail if a tool has no title or is missing a hint, if the table and the registered tools disagree, if a read claims to be destructive, or if the set of write tools changes without the test being edited. A new tool cannot ship unlabelled.

What else changed?

Ending an MCP session over HTTP now answers 200. A successful DELETE on the session used to answer 202, which the official Python MCP client does not accept, logging a session termination failure. The spec names no success code for it, and by the time the server answers the session is already closed, so 200 is accurate. A POSTed notification still gets 202, and errors pass through unchanged.

The MCP tool reference now prints an Effect line for every tool, such as "Read-only: changes nothing", generated from the same annotations the server serves.

What do the hints not do?

  • They are hints, not permissions. The MCP spec tells clients not to trust annotations from a server they do not trust, and a host is free to ignore them. What a key may do is still decided by the key, on the gateway.
  • Read-only is not free. A read-only tool can still draw calls from your allowance. Which tools count towards your monthly calls is marked in the MCP documentation.
  • They describe our server only. A wrapper or proxy in front of it can drop or rewrite them.
  • Open-world is about the data, not about safety. An open-world answer can change between two identical calls because the world did; the hint says nothing about whether a call is safe to make.

Try it

The hosted server connects with no key. Open a session, list the tools, and close it:

sh
MCP=https://mcp.mapmap.ai/mcp
ACCEPT='Accept: application/json, text/event-stream'
SID=$(curl -s -D - -o /dev/null "$MCP" -H "$ACCEPT" -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"try","version":"0"}}}' \
  | awk 'tolower($1)=="mcp-session-id:"{print $2}' | tr -d '\r')
curl -s "$MCP" -H "$ACCEPT" -H 'Content-Type: application/json' -H "mcp-session-id: $SID" \
  -d '{"jsonrpc":"2.0","method":"notifications/initialized"}' > /dev/null
curl -s "$MCP" -H "$ACCEPT" -H 'Content-Type: application/json' -H "mcp-session-id: $SID" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' \
  | sed -n 's/^data: //p' \
  | jq -r '.result.tools[] | select(.annotations.readOnlyHint == false) | .name'
curl -s -o /dev/null -w '%{http_code}\n' -X DELETE "$MCP" -H "mcp-session-id: $SID"

On 25 November 2026 it listed the 11 write tools above and the DELETE answered 200. For how many tools the server has and why the count is generated rather than typed, see the MCP tool surface.