docs(mcp): list the place history, activity and tag tools

This commit is contained in:
Maurice
2026-11-29 21:16:49 +01:00
parent c944ef6de5
commit 2653f0cb07
3 changed files with 34 additions and 4 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ Most of what follows is an addon an admin switches on or off. Lists, Costs, Docu
- **Your own model**: an API key for Anthropic, OpenAI, Gemini or OpenRouter, a ChatGPT plan, or any OpenAI-compatible endpoint, set for the instance or per user
- **You stay in charge**: reads run at once, every change waits as a card to apply or discard and can be undone for 15 minutes. Nothing leaves before you agree to the provider, and a file's text only with your consent
- **Attachments**: drop a booking confirmation, a GPX file or a photo into the chat, and the assistant offers what to do with it
- **MCP server** (off by default): OAuth 2.1 with mandatory PKCE and dynamic client registration, 451 tools, 30 resources and 4 prompts, 35 scopes in 17 groups ticked on the consent screen, and every call in the audit log
- **MCP server** (off by default): OAuth 2.1 with mandatory PKCE and dynamic client registration, 455 tools, 30 resources and 4 prompts, 35 scopes in 17 groups ticked on the consent screen, and every call in the audit log
- **Addon-aware**: twelve addon gates decide which tools a session sees, and flipping one re-registers live sessions
</td>
+11 -2
View File
@@ -108,7 +108,7 @@ Requires `collections:read` or `collections:write` scope.
| `list_collections` | List the saved-place collections the user owns or has accepted a share for, plus any pending incoming invites. |
| `get_collection` | Get one collection with its members, labels, and all saved places, including the average rating and each member's vote. |
| `list_collection_places` | Page through one list's saved places in the list's own order, up to 500 at a time (100 by default), as compact rows: id, name, status and label ids, plus address, coordinates, Google place id, website and phone where set. Filter by `status`, by `labelId` or with `unlabeled: true`. Each page names the list's labels, the total the filter matches and a `next_cursor` to continue with, so labelling the places of a page while paging through the unlabelled ones skips none. |
| `list_all_places` | Page through every place you have: the saved places of every list you can open and the places of every trip you can open (tours, tracks and road trip stops of the drive left out), by name or last changed first. A saved place and a trip place are one entry only when the saved place came from that trip place and both agree (the same provider id, or the same name at the same spot), or when you put them together as an own place. Each entry has a key (`trip:<place id>`, `list:<saved place id>`, or `own:<id>` for an own place) and an `identity_id` (the own place's id, else null), and lists its origins (trip or list) with whether you may change it there; no notes. Filter by text, category, kind, list, trip or status; `total`, `counts` and a `next_cursor` come with each page. Needs `collections:read` and read access to trips. |
| `list_all_places` | Page through every place you have: the saved places of every list you can open and the places of every trip you can open (tours, tracks and road trip stops of the drive left out), by name or last changed first. A saved place and a trip place are one entry only when the saved place came from that trip place and both agree (the same provider id, or the same name at the same spot), or when you put them together as an own place. Each entry has a key (`trip:<place id>`, `list:<saved place id>`, or `own:<id>` for an own place) and an `identity_id` (the own place's id, else null), and lists its origins (trip or list) with whether you may change it there; no notes. Each entry also carries your own personal tags on it. Filter by text, category, kind, list, trip, status or personal tags (`tag_ids`); `total`, `counts` and a `next_cursor` come with each page. Needs `collections:read` and read access to trips. |
| `get_library_place` | One entry of `list_all_places` in full, opened from a trip place or a saved place: for each origin what it keeps on its own (its facts, notes, rating, a list's labels, a trip's planned days and whether a stay or booking uses it). Needs `collections:read` and read access to trips. |
| `link_library_places` | Put trip places and saved places together as one place of your own in All places (one entry, key `own:<id>`), named and placed like the first one listed, or join an own place by `identity_id`. Only your own view changes: no trip place or saved place is renamed, moved or deleted. Needs `collections:write` and read access to trips. |
| `unlink_library_place` | Take one trip place or saved place out of the own place it is part of again, also one in a trip or list you can no longer open. Needs `collections:write` and read access to trips. |
@@ -116,10 +116,19 @@ Requires `collections:read` or `collections:write` scope.
| `dismiss_library_duplicate` | Turn a duplicate suggestion down so it is not suggested again. Needs `collections:write` and read access to trips. |
| `merge_library_places` | Merge two entries of All places into one own place that keeps the leading entry's name and position; every trip place and saved place stays where it is. Refused while either side holds a place you can no longer open. Answers a `merge_id`. Needs `collections:write` and read access to trips. |
| `undo_library_merge` | Take a merge back by its `merge_id`: both entries are as they were before it, an own place the merge made for an entry that was none goes again. Needs `collections:write` and read access to trips. |
| `set_library_place_tags` | Set which of your personal tags (`list_tags`, `create_tag`) one entry of All places carries, by its key; an empty list takes them all off. The tags stay private: nothing in a trip or list changes and no one else sees them. Needs `collections:write` and read access to trips. |
| `tag_library_places` | Put personal tags on several entries of All places at once and take others off them, by their keys. The tags stay private: nothing in a trip or list changes and no one else sees them. Needs `collections:write` and read access to trips. |
| `list_trip_collections` | The lists linked to a trip that you can open (lists closed to you are left out), with your role, the place count and whether you may link or unlink. Needs `collections:read` and read access to trips. |
| `get_trip_collection_places` | The saved places with a position of every linked list you can open, for the trip map, each saying whether the trip already has it. Needs `collections:read` and read access to trips. |
| `link_collection_to_trip` | Link a list you can open to a trip. Gives no one access to the list. Needs `places:write`, `collections:read` and the permission to edit the trip's places. |
| `unlink_collection_from_trip` | Unlink a list from a trip; the list stays as it is. Works also for a list you cannot open. Needs `places:write`, `collections:read` and the permission to edit the trip's places. |
| `get_library_place_media` | The pictures of one entry of All places (from its trip places and saved places), the photos of journey entries made from its trip places in journeys you can open, and the trip files attached to its trip places in trips you can open, each with its trip, list or journey. Needs `collections:read`. |
| `get_library_place_history` | What changed in the details of one entry of All places (name, address, position, category, description, notes, website, phone, picture, opening hours, list status), newest first and paged: each change with the trip or list it was made in, the old and the new value, who made it (or that TREK filled it in itself) and when. Only the trips and lists of the entry you can open count; a value that was cleared takes its earlier changes along. A saved place moved to another list shows the changes made in the list it is in now, and tours keep no history. Needs `collections:read` and read access to trips. |
| `get_library_place_activities` | The bookings and tours of one entry of All places over the trips and lists of it you can open, each once, with the trip place or saved place it belongs to, and the origins of the entry with whether you may link more there. Needs `collections:read`, `reservations:read` and read access to trips. |
| `list_saved_place_activities` | The tours kept in a list that one of its saved places is linked to, and whether you may link more (a role other than viewer, and Tours on). A place moved in from another list brings none of that list's tours along. Needs `collections:read`. |
| `list_saved_place_activity_candidates` | The tours kept in the list not linked to the saved place yet. Needs `collections:read`. |
| `link_saved_place_tour` | Link a tour kept in the same list to a saved place. Changes neither. Needs `collections:write`, a list role other than viewer and the Tours addon. |
| `unlink_saved_place_tour` | Take that link off again; the tour stays in the list. Needs `collections:write`, a list role other than viewer and the Tours addon. |
| `available_collection_users` | List users who can still be invited to a collection (excludes current members and guests). |
| `find_place_in_collections` | Answer whether a place is already on one of your lists, across the whole library in one call, naming each list and the status the place has there. Identify the place by `google_place_id` / `google_ftid` from `search_place` or by `lat` + `lng`; a name alone is never matched. |
| `get_collection_items` | Read saved places and labels by their own ids across every list you can see, without loading whole lists: each place with its status, labels, rating and notes, and the lists they sit in with their colour, size, labels, members (names and roles only) and whether you may delete places from them. Saved place ids are not trip place ids. Ids you cannot see are left out. |
@@ -134,7 +143,7 @@ Requires `collections:read` or `collections:write` scope.
| `set_collection_place_status_from_trip` | Set a status on every saved copy of the given trip places, in every list they are on, for marking places visited after a day out. Ids are trip place ids. Lists you may only read are skipped. Returns how many saved places changed and how many of the trip places were found in at least one list. |
| `rate_collection_place` | Set or clear the current user's 1-5 star rating on a saved place. Every member rates independently; pass `null` to remove the vote. |
| `delete_collection_place` | Remove a saved place from its collection. Requires delete permission on the list. |
| `copy_collection_places_to_trip` | Copy one or more saved places into a trip, ratings included. A saved place's notes and tags stay in the list unless asked for: `include_notes: true` copies the notes, `tag_ids` names the tags to bring, each becoming a tag of the trip (a trip tag of the same name is reused). Requires edit access to the target trip. |
| `copy_collection_places_to_trip` | Copy one or more saved places into a trip, ratings included. A saved place's notes and tags stay in the list unless asked for: `include_notes: true` copies the notes, `tag_ids` names the tags to bring, each becoming a tag of the trip (a trip tag of the same name is reused). Your personal tags stay private the same way: `personal_tag_ids` names the ones to share, each put on every copied place as a tag of the trip, which you and your personal tag can change apart from then on. Requires edit access to the target trip. |
| `reorder_collection_places` | Put a list's saved places in a new order, the one every member sees. Pass the place ids first to last; places left out follow in the order they had. Needs edit rights on the list. |
| `create_collection_label` | Create a custom per-collection label (name plus optional hex colour) for grouping and filtering places. |
| `update_collection_label` | Rename or recolour a collection label, or change its sort order. |
+22 -1
View File
@@ -74,6 +74,27 @@ Requires `places:read` or `places:write` scope.
| `search_place` | Search for a place by name or address, the way the full search in the app does: TREK's own place index and OpenStreetMap together, and Google or Amap only when both are empty. Returns `osm_id` (and `google_place_id` / `google_ftid` when Google answered) for use in `create_place`. Takes an optional `locationBias` to rank results around the trip's destination, and an optional `provider: 'google'` that sends this one search to Google Places alone, the same as the **Search Google instead** line under a result list in the app; it is ignored unless Google holds the keyed slot: an instance without a Google key, or one whose admin picked Amap or OpenStreetMap as the places provider, answers from the index and OpenStreetMap as usual. With the admin switch **Search with Google only** on (see [Places-and-Search](Places-and-Search#with-a-google-maps-api-key)), every call goes to Google whatever is passed, and the index and OpenStreetMap are never asked, so no result carries an `osm_id`. |
| `search_places_via_plugins` | Search the place indexes installed plugins provide, alongside `search_place` rather than instead of it. Results have the shape `search_place` returns plus a `rating` and the `pluginId` that found them; only these results can carry a rating. Empty when no plugin offers a search index. Requires `places:read`. |
### Place visits
Requires `places:read` scope. Visits are never entered: they are read from your trips. A place counts as visited on a dated day up to today (UTC) it is planned on, in a trip you own or are a member of, when the stop names no one or names you among who takes part. A day without a date counts nothing, and each place counts once per day. Losing access to a trip takes its visits with it. A list's status ("visited"), the bucket list and the Atlas are not visits and stay as they are.
| Tool | Description |
|---|---|
| `list_place_visits` | Your visits, newest day first, of one trip or of all, paged, each with its day, time, trip, trip place, day and who it counts for. |
| `get_place_visit_history` | Your visits at one place of All places (from a trip place or a saved place), with `visit_count` and `last_visit`; a day counts once however many trips or lists hold the place. |
| `list_my_visited_trip_places` | The trip's places you visited, at the trip place or at the same place on your other trips. |
### Place activities
The bookings and tours of a trip that one of its places is about. Reading needs `places:read` and `reservations:read`, linking and unlinking `places:write` and `reservations:read` plus the permission to edit the trip's places. A booking that names the place, is booked against a stay at it or is tied to a plan entry of it, and a tour with a station standing for it, belong to the place by themselves (`implicit_via`) and cannot be unlinked here. Tours count only while the trip has Tours on. A link changes neither the booking nor the tour.
| Tool | Description |
|---|---|
| `list_place_activities` | The bookings and tours of a trip place: the ones linked to it and the ones that belong to it by themselves, each with its type, the trip it lives in, its title, time or day, the ids to open it and whether you may unlink it. |
| `list_place_activity_candidates` | The bookings and tours of the trip not related to the place yet. |
| `link_place_activity` | Link a booking (`reservation_id`) or a tour (`tour_id`) of the same trip to the place, exactly one of the two. |
| `unlink_place_activity` | Take that link off again; the booking or tour stays as it is. |
### Day Planning
Requires `trips:read` or `trips:write` scope.
@@ -182,7 +203,7 @@ Requires `places:read` or `places:write` scope.
| Tool | Description |
|---|---|
| `list_tags` | List all personal tags belonging to the current user. A trip's own tags are not among them. |
| `create_tag` | Create a new personal tag (user-scoped label for places) with optional hex color. |
| `create_tag` | Create a personal tag (user-scoped label for places) with optional hex color. A name stands once per person, whatever its case: a name you have already returns that tag unchanged and makes nothing new. |
| `update_tag` | Update the name or color of an existing personal tag. |
| `delete_tag` | Delete a personal tag (removes it from all attached places). |
| `list_trip_tags` | List the tags a trip owns, the same list for every member of the trip. |