# Members tools

[All tool areas](/docs/tools.md). Each tool acts within your access.

## Members

### get_grant_options

List what you may give someone access to, for the invite form: the roles and the places (the whole organization, or a location) mayGrant allows you, exactly as invite_member would accept them. A location Manager is offered their own locations and the roles up to their own, never Owner, Admin, or Everywhere. Changes nothing.

Reads · Members of an organization · Needs members:read

No input.

#### Output

- `roles` — array; required. 
  - `roles[]` — object; optional. 
    - `roles[].role` — string; required.  Allowed: "owner", "admin", "finance", "manager", "front\_desk", "host", "viewer", "developer", "venue\_partner"
    - `roles[].label` — string; required. As people read it: Front desk
- `scopes` — array; required. 
  - `scopes[]` — one of: object, object; optional. 
    - `scopes[] — object option 1` — object; optional. 
      - `scopes[] — object option 1.kind` — string; required.  Value: "organization"
    - `scopes[] — object option 2` — object; optional. 
      - `scopes[] — object option 2.kind` — string; required.  Value: "location"
      - `scopes[] — object option 2.locationId` — string; required. 
      - `scopes[] — object option 2.name` — string; required. 

### invite_member

Invite someone by email to a role at a scope. Someone with no organization on Lokl joins by signing in with that address within 14 days only when all their open, unexpired invitations come from one organization, then sets up an authenticator; otherwise they choose which to accept or decline, as someone already working with another organization does. Limited to 50 open at once, and 100 emails a day for the organization and 30 for you, resends included. The preview says who, what they'll be able to do, and where; applying emails them. You can give only what you hold there yourself, and only an owner gives Owner. Someone already a member is refused: change their grants. Returns a preview to confirm; undo revokes it if it hasn't been accepted.

Changes · Members of an organization · Needs members:write

#### Input

- `email` — string; required. Where to send it; only that address can accept it maxLength: 254
- `role` — string; required. owner, admin, finance, manager, front_desk, host, viewer, developer, or venue_partner Allowed: "owner", "admin", "finance", "manager", "front\_desk", "host", "viewer", "developer", "venue\_partner"
- `scope` — string; required. Where it applies: the whole organization, or one of these Allowed: "organization", "entity", "location", "product"
- `scopeId` — string; optional. The entity, location, or product (ent_…, loc_…, prd_…). Left out for the organization
- `locationId` — string; optional. With a product: only at this location
- `financials` — boolean; optional. Whether it shows what orders cost and revenue default: true

#### Output

- `role` — string; required.  Allowed: "owner", "admin", "finance", "manager", "front\_desk", "host", "viewer", "developer", "venue\_partner"
- `scope` — string; required.  Allowed: "organization", "entity", "location", "product"
- `scopeId` — string or null; required. 
- `locationId` — string or null; required. For a product grant at one location
- `scopeName` — string; required. 
- `financials` — boolean; required. 
- `id` — string; required. 
- `email` — string; required. 
- `invitedAt` — string; required.  format: "date-time"
- `invitedByName` — string or null; required. 
- `expiresAt` — string; required.  format: "date-time"
- `expired` — boolean; required. Past its date: signing in no longer accepts it. resend_invitation renews it
- `status` — string; required.  Allowed: "open", "accepted", "revoked"

### list_members

List the people who work here and the invitations still open: name, email, what each holds and where, whether they've set up an authenticator, and when they joined or were invited. Someone narrower sees only people holding a grant inside what they're covered for, and only those grants.

Reads · Members of an organization · Needs members:read

No input.

#### Output

- `members` — array; required. 
  - `members[]` — object; optional. 
    - `members[].id` — string; required. 
    - `members[].userId` — string; required. 
    - `members[].name` — string; required. 
    - `members[].email` — string; required. 
    - `members[].hasAuthenticator` — boolean; required. 
    - `members[].joinedAt` — string; required.  format: "date-time"
    - `members[].grants` — array; required. 
      - `members[].grants[]` — object; optional. 
        - `members[].grants[].role` — string; required.  Allowed: "owner", "admin", "finance", "manager", "front\_desk", "host", "viewer", "developer", "venue\_partner"
        - `members[].grants[].scope` — string; required.  Allowed: "organization", "entity", "location", "product"
        - `members[].grants[].scopeId` — string or null; required. 
        - `members[].grants[].locationId` — string or null; required. For a product grant at one location
        - `members[].grants[].scopeName` — string; required. 
        - `members[].grants[].financials` — boolean; required. 
- `invitations` — array; required. 
  - `invitations[]` — object; optional. 
    - `invitations[].role` — string; required.  Allowed: "owner", "admin", "finance", "manager", "front\_desk", "host", "viewer", "developer", "venue\_partner"
    - `invitations[].scope` — string; required.  Allowed: "organization", "entity", "location", "product"
    - `invitations[].scopeId` — string or null; required. 
    - `invitations[].locationId` — string or null; required. For a product grant at one location
    - `invitations[].scopeName` — string; required. 
    - `invitations[].financials` — boolean; required. 
    - `invitations[].id` — string; required. 
    - `invitations[].email` — string; required. 
    - `invitations[].invitedAt` — string; required.  format: "date-time"
    - `invitations[].invitedByName` — string or null; required. 
    - `invitations[].expiresAt` — string; required.  format: "date-time"
    - `invitations[].expired` — boolean; required. Past its date: signing in no longer accepts it. resend_invitation renews it
    - `invitations[].status` — string; required.  Allowed: "open", "accepted", "revoked"

### offboard_member

Remove someone from this organization at once: their grants here, all their sessions, their API keys here, MCP clients connected here, invitations to them, and invitations they sent that are still open. Their sessions go everywhere, since a session is per person, so they'd sign in again for any other organization they belong to; their access there stays. Nobody offboards themselves, and the last owner can't be offboarded. It can't be undone: to bring someone back, invite them again. Returns a preview to confirm.

Changes · Members of an organization · Needs members:write

#### Input

- `memberId` — string; required. The member's id, from list_members

#### Output

- `id` — string; required. 
- `email` — string; required. 
- `name` — string; required. 
- `grants` — array; required. 
  - `grants[]` — object; optional. 
    - `grants[].role` — string; required.  Allowed: "owner", "admin", "finance", "manager", "front\_desk", "host", "viewer", "developer", "venue\_partner"
    - `grants[].scope` — string; required.  Allowed: "organization", "entity", "location", "product"
    - `grants[].scopeId` — string or null; required. 
    - `grants[].locationId` — string or null; required. For a product grant at one location
    - `grants[].scopeName` — string; required. 
    - `grants[].financials` — boolean; required. 
- `removedAt` — string; required.  format: "date-time"
- `sessionsRevoked` — number; required. 
- `apiKeysRevoked` — number; required. 
- `oauthClientsRevoked` — number; required. 
- `invitationsRevoked` — number; required. 

### preview_member_access

Show what a role at a scope can and can't do, in plain words by area, with its limits and the locations it reaches, before anyone is invited. Changes nothing. invite_member's preview includes the same answer.

Reads · Members of an organization · Needs members:read

#### Input

- `role` — string; required. owner, admin, finance, manager, front_desk, host, viewer, developer, or venue_partner Allowed: "owner", "admin", "finance", "manager", "front\_desk", "host", "viewer", "developer", "venue\_partner"
- `scope` — string; required. Where it applies: the whole organization, or one of these Allowed: "organization", "entity", "location", "product"
- `scopeId` — string; optional. The entity, location, or product (ent_…, loc_…, prd_…). Left out for the organization
- `locationId` — string; optional. With a product: only at this location
- `financials` — boolean; optional.  default: true

#### Output

- `role` — string; required.  Allowed: "owner", "admin", "finance", "manager", "front\_desk", "host", "viewer", "developer", "venue\_partner"
- `roleLabel` — string; required. 
- `scope` — string; required.  Allowed: "organization", "entity", "location", "product"
- `scopeId` — string or null; required. 
- `locationId` — string or null; required. 
- `scopeName` — string; required. 
- `financials` — boolean; required. 
- `areas` — array; required. What this grant can and can't do, by area
  - `areas[]` — object; optional. 
    - `areas[].area` — string; required. 
    - `areas[].can` — array; required. 
      - `areas[].can[]` — string; optional. 
    - `areas[].cannot` — array; required. 
      - `areas[].cannot[]` — string; optional. 
- `limits` — array; required. Limits on what it can do: refund caps, hidden amounts or contacts
  - `limits[]` — string; optional. 
- `locations` — array; required. The locations it reaches
  - `locations[]` — object; optional. 
    - `locations[].id` — string; required. 
    - `locations[].name` — string; required. 

### resend_invitation

Email an invitation again, with a new 14 days from now, also for one that has expired. It takes what inviting takes, since it gives the same access again, counts towards the same limits, and you become who it's from. Returns a preview to confirm.

Changes · Members of an organization · Needs members:write

#### Input

- `invitationId` — string; required. The invitation's id, from list_members

#### Output

- `role` — string; required.  Allowed: "owner", "admin", "finance", "manager", "front\_desk", "host", "viewer", "developer", "venue\_partner"
- `scope` — string; required.  Allowed: "organization", "entity", "location", "product"
- `scopeId` — string or null; required. 
- `locationId` — string or null; required. For a product grant at one location
- `scopeName` — string; required. 
- `financials` — boolean; required. 
- `id` — string; required. 
- `email` — string; required. 
- `invitedAt` — string; required.  format: "date-time"
- `invitedByName` — string or null; required. 
- `expiresAt` — string; required.  format: "date-time"
- `expired` — boolean; required. Past its date: signing in no longer accepts it. resend_invitation renews it
- `status` — string; required.  Allowed: "open", "accepted", "revoked"

### revoke_invitation

Revoke an invitation that hasn't been accepted: signing in no longer gives them anything. It takes what inviting takes, so you can't revoke one above what you could give yourself. Returns a preview to confirm.

Changes · Members of an organization · Needs members:write

#### Input

- `invitationId` — string; required. The invitation's id, from list_members

#### Output

- `role` — string; required.  Allowed: "owner", "admin", "finance", "manager", "front\_desk", "host", "viewer", "developer", "venue\_partner"
- `scope` — string; required.  Allowed: "organization", "entity", "location", "product"
- `scopeId` — string or null; required. 
- `locationId` — string or null; required. For a product grant at one location
- `scopeName` — string; required. 
- `financials` — boolean; required. 
- `id` — string; required. 
- `email` — string; required. 
- `invitedAt` — string; required.  format: "date-time"
- `invitedByName` — string or null; required. 
- `expiresAt` — string; required.  format: "date-time"
- `expired` — boolean; required. Past its date: signing in no longer accepts it. resend_invitation renews it
- `status` — string; required.  Allowed: "open", "accepted", "revoked"

### update_member_grants

Change what a member holds, by giving the full list they should hold from now on; the preview shows what's added and taken away. Takes effect on their sessions, keys, and MCP connections at once. You must be able to manage everything they hold now and everything in the list, nobody changes their own, and the last owner can't be demoted. Returns a preview to confirm; undo restores what they held unless it's changed since.

Changes · Members of an organization · Needs members:write

#### Input

- `memberId` — string; required. The member's id, from list_members
- `grants` — array; required. Everything they should hold from now on. To take everything away, use offboard_member minItems: 1; maxItems: 50
  - `grants[]` — object; optional. 
    - `grants[].role` — string; required. owner, admin, finance, manager, front_desk, host, viewer, developer, or venue_partner Allowed: "owner", "admin", "finance", "manager", "front\_desk", "host", "viewer", "developer", "venue\_partner"
    - `grants[].scope` — string; required. Where it applies: the whole organization, or one of these Allowed: "organization", "entity", "location", "product"
    - `grants[].scopeId` — string; optional. The entity, location, or product (ent_…, loc_…, prd_…). Left out for the organization
    - `grants[].locationId` — string; optional. With a product: only at this location
    - `grants[].financials` — boolean; optional. Whether it shows what orders cost and revenue default: true

#### Output

- `id` — string; required. 
- `email` — string; required. 
- `name` — string; required. 
- `grants` — array; required. 
  - `grants[]` — object; optional. 
    - `grants[].role` — string; required.  Allowed: "owner", "admin", "finance", "manager", "front\_desk", "host", "viewer", "developer", "venue\_partner"
    - `grants[].scope` — string; required.  Allowed: "organization", "entity", "location", "product"
    - `grants[].scopeId` — string or null; required. 
    - `grants[].locationId` — string or null; required. For a product grant at one location
    - `grants[].scopeName` — string; required. 
    - `grants[].financials` — boolean; required. 
