Skip to main content
Glama

Get trip sharing

trip_sharing_get
Read-onlyIdempotent

Read who can see the user's own trips, one trip (trip_id) or every trip they own (paged). For each trip it reports the three sharing mechanisms separately: people with per-trip access (access edit/view/invited/none, where invited means an invitation awaits acceptance and can still be revoked; invitation status pending/accepted/declined/expired, level view/edit, and traveler role), whether a public view link is active, and the trip's own friend-sharing switches (hidden from friends, plans shared with friends; per trip, not account settings). Pass friend_user_id (from friends_list) to also get that friend's exact state on each trip: per-trip access, invitation, and whether they see the trip summary or full plan through friend sharing (planVisibleVia: friend_grant = the user shares plans with this friend on every trip, trip_grant = this trip shares plans with all friends, or both). Use this before trip_sharing_set and to report sharing status. Only the trip owner can read this. Revoked invitations are deleted, so they are not listed. Never show IDs to the user.

Input Schema

NameRequiredDescriptionDefault
pageNo1-based page when trip_id is omitted. Default 1.
trip_idNoOptional trip ID. Omit to page through every trip the user owns.
page_sizeNoTrips per page (max 50). Default 25.
upcoming_onlyNoOnly trips that have not ended yet. Default false.
friend_user_idNoOptional friend user_id from friends_list. Adds that friend's access on each trip.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered structurally. The description adds real behavioral context on top: owner-only authorization, the fact that revoked invitations are deleted and therefore absent from results, and an output-presentation rule (never show IDs). Missing details on pagination metadata or response shape keep it from the top band, but the added context exceeds annotation restatement.

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?

Purpose and scope are front-loaded in the opening sentence, and nearly every clause carries semantics an agent needs (invitation states, link activity, per-trip vs account switches). The middle section is heavily parenthetical and nested, which costs readability but the density is largely justified by the tool's complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and five optional parameters, the description must carry the return-value burden, and it does: it enumerates the three sharing mechanisms, invitation states, the public-link flag, friend-sharing switches, and the planVisibleVia values. Authorisation and data-lifecycle caveats are also present.

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 100%, so the baseline is 3; the description still adds meaning by noting trip_id omission triggers paging across all owned trips and by explaining that friend_user_id (sourced from friends_list) unlocks per-friend state including the derived planVisibleVia semantics. That is genuine value beyond the schema text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence gives a specific verb (read) plus resource (trip sharing) and immediately scopes the two modes: single trip via trip_id or all owned trips via paging. It is distinguishable from trip_sharing_set, which is named as the mutation counterpart.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

States clearly when to call it ("before trip_sharing_set and to report sharing status") and names the prerequisite source for friend_user_id (friends_list). It also flags the owner-only restriction, though it offers no explicit when-not or alternative read path.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources