mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 00:20:07 +00:00
docs(mcp): list the place history, activity and tag tools
This commit is contained in:
+11
-2
@@ -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. |
|
||||
|
||||
Reference in New Issue
Block a user