MCP tools
share_app
Give people, teams or the whole company access to an app.
Same rules as the Share dialog: Owners and admins can always share; Editors only when the app lets Editors share.
Share the lead tracker with [email protected] and the sales team, view only.Parameters
appstringrequiredApp name, address name, URL or id.
withstring[]requiredWho to add, 1 to 50 entries. Each can be:
- an email address:
[email protected] - a person's name:
Priya Shah - a team (group) name:
the sales team,Finance. Uselist_teamsto see the workspace's teams. company(or "everyone", "the whole company") for everyone at the company. See The whole company.- an id:
usr_…orgrp_…
rolestringdefault: viewerviewer can open the app. editor can also deploy and change it.
general_accessstringrestricted (only people added), org (everyone at the company) or link (anyone with the link). Owner only. See General access.
notifybooleandefault: trueEmail the people added.
messagestringA note for the invite email. Up to 1,000 characters.
descriptionstringFor company in a company workspace: the one-line description shown in the company directory. Up to 140 characters. Defaults to the first sentence of the app's own description.
teamstringFor company in a company workspace: the team the app is listed under in the company directory. Up to 40 characters. Defaults to the app's team.
How names are matched
Names and groups are looked up in your workspace. "the sales team" is tried as written, then as "sales team", then as "sales". If any entry matches nobody, or more than one person, nothing is shared. The tool returns the candidates so your AI tool can ask you which one you meant.
The whole company
In a company workspace, everyone at the company gets an app through the company directory. So company (or general_access: "org") submits the app to the directory, with description and team:
- If the workspace has one team, the app is listed under it. If it has none, it is listed under
teamor the app's team, else General. If it has several andteamdoes not name one, nothing is submitted and the tool asks which team (team_required). - Depending on the workspace's policy, the app is listed at once, or an admin approves it first and you get an email with the decision.
general_access: "restricted"on a listed app asks to take it out of the directory, the same asunlist_from_directory.
To pick the description and team yourself, or add a README, use submit_to_directory.
Result
app_idstringaddedobject[]type, id, name, role.invited_emailsnumberskippedobject[]generalstring | nullblocked_reasonstringdirectoryobjectstatus and request_id (set when an admin has to approve).Shared Lead Tracker with Priya Shah (viewer), Sales (viewer). 1 invite email sent.Errors
| Code | When |
|---|---|
ambiguous | A name matched more than one person or group. Nothing was shared. |
guests_not_allowed | An email outside the company, with guests turned off. |
scan_failed | org access while the latest version has blocking issues. |
team_required | company in a workspace with several teams, and team names none of them. Nothing was submitted. |
payment_required | The workspace's 7 free days are over. Sharing needs a plan. |
policy_blocked | link access while public links are off. |
forbidden | You cannot share this app. |