mcp-server

v0.2.0
@sweapio/mcp-server Checked 3 days ago Published 1 month ago

Model Context Protocol server for the Sweap Core API (beta)

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_events Get events

List events with their name, timeframe, state and location. Start here: most other tools need an eventId, which this returns. Contains no personal data. Narrow the result with nameContains, state or a date filter rather than paging through everything.

ParameterTypeDescription
createdAfterstringOnly records created after this ISO 8601 UTC timestamp.
endDateAfterstringOnly events ending at or after this ISO 8601 UTC timestamp.
endDateBeforestringOnly events ending at or before this ISO 8601 UTC timestamp.
eventTagIdstringFilter by event tag UUID.
externalIdstringFilter by exact externalId (case-sensitive).
idstringFilter by event UUID. Prefer get_event_by_id when you already have the id.
namestringFilter by exact event name (case-insensitive).
nameContainsstringFilter by events whose name contains this text (case-insensitive).
pageintegerZero-based page number. The first page is 0. Default 0.
sizeintegerRecords per page, 1-1000. Default 25. Keep this small unless you need every record.
sortBystringField to sort by. Default createdAt.
sortOrderstringSort direction. Default DESC.
startDateAfterstringOnly events starting at or after this ISO 8601 UTC timestamp.
startDateBeforestringOnly events starting at or before this ISO 8601 UTC timestamp.
statestringFilter by lifecycle state. DRAFT is still editable, ACTIVE is live, ARCHIVED has ended.
updatedAfterstringOnly records updated after this ISO 8601 UTC timestamp. Use this for incremental syncs.
visibilityGroupIdstringFilter by visibility group UUID.

get_event_by_id Get event by ID

Get one event in full, including its custom field definitions, location, visibility groups and tags. Use get_events first if you do not have the id. Contains no personal data.

ParameterTypeDescription
id *stringUUID of the event.

get_event_statistics Get event statistics

Aggregate attendance counts per event: guestCount, acceptedCount, declinedCount, noReplyCount, noneCount, checkinCount and attendeeCount. Use this for reporting instead of counting guests yourself - it is one call and returns no personal data. A statistics record shares its id with its event. The counts are precomputed, not live occupancy. Two are easy to confuse: attendeeCount is how many people were present - a guest or named companion once, though each arrival of a guest with unnamed companions counts as one - and does not drop when someone checks out. checkinCount counts CHECK_IN records,…

ParameterTypeDescription
createdAfterstringOnly records created after this ISO 8601 UTC timestamp.
externalIdstringFilter by exact externalId (case-sensitive).
idstringFilter by the statistics record UUID, which equals the event UUID.
maxAcceptedCountintegerOnly events with at most this many acceptances.
maxAttendeeCountintegerOnly events with at most this many attendees.
maxCheckinCountintegerOnly events with at most this many check-ins.
maxDeclinedCountintegerOnly events with at most this many declines.
maxGuestCountintegerOnly events with at most this many guests.
maxNoReplyCountintegerOnly events with at most this many guests who have not replied.
minAcceptedCountintegerOnly events with at least this many acceptances.
minAttendeeCountintegerOnly events with at least this many attendees.
minCheckinCountintegerOnly events with at least this many check-ins.
minDeclinedCountintegerOnly events with at least this many declines.
minGuestCountintegerOnly events with at least this many guests.
minNoReplyCountintegerOnly events with at least this many guests who have not replied.
pageintegerZero-based page number. The first page is 0. Default 0.
sizeintegerRecords per page, 1-1000. Default 25. Keep this small unless you need every record.
sortBystringField to sort by. Default createdAt.
sortOrderstringSort direction. Default DESC.
updatedAfterstringOnly records updated after this ISO 8601 UTC timestamp. Use this for incremental syncs.

get_event_statistic_by_id Get event statistic by ID

Get the attendance counts for one event. The statistics id is the same UUID as the event id, so pass the event's id here. Returns no personal data. Note attendeeCount is how many people were present - a guest who later checked out still counts - while checkinCount counts CHECK_IN records only, excluding CHECK_OUT and companions, and is higher when a guest is scanned in more than once. noneCount is the guests not yet invited, so guestCount = acceptedCount + declinedCount + noReplyCount + noneCount.

ParameterTypeDescription
id *stringUUID of the event whose statistics you want.

get_event_arrivals Get event arrivals

When people arrived at one event: the number of CHECK_IN scans per 15-minute bucket, in the event's own timezone, computed by the server from every check-in record. The bucket size is fixed; for half hours or hours, add up neighbouring buckets. Returns counts only, no guest ids, device names or individual times, so it is available at every data scope. Use it instead of paging through get_checkins for an arrival curve or peak. Buckets with fewer than 5 scans are left out to avoid singling anyone out, so a gap is not zero. Counts are scans, not people: a guest with unnamed companions is scanned…

ParameterTypeDescription
eventId *stringUUID of the event. Get it from get_events.

get_categories Get categories

List the guest categories defined for one event, such as ticket types or attendee groups. Requires an eventId - get it from get_events. Categories are configuration, not personal data; a guest's categoryId points here.

ParameterTypeDescription
eventId *stringUUID of the event whose categories you want. Required.
createdAfterstringOnly records created after this ISO 8601 UTC timestamp.
externalIdstringFilter by exact externalId (case-sensitive).
idstringFilter by category UUID.
namestringFilter by exact category name (case-insensitive).
nameContainsstringFilter by categories whose name contains this text.
pageintegerZero-based page number. The first page is 0. Default 0.
sizeintegerRecords per page, 1-1000. Default 25. Keep this small unless you need every record.
sortBystringField to sort by. Default createdAt.
sortOrderstringSort direction. Default DESC.
updatedAfterstringOnly records updated after this ISO 8601 UTC timestamp. Use this for incremental syncs.

get_category_by_id Get category by ID

Get one guest category by id. Useful to resolve a guest's categoryId into a readable name. Returns no personal data.

ParameterTypeDescription
id *stringUUID of the category.

get_event_tags Get event tags

List the tags used to group and label events. Resolve an event's eventTagIds into names with this, or find a tag's id to filter get_events. Returns no personal data.

ParameterTypeDescription
createdAfterstringOnly records created after this ISO 8601 UTC timestamp.
externalIdstringFilter by exact externalId (case-sensitive).
idstringFilter by tag UUID.
internalbooleanFilter by the internal flag: true returns only internal tags.
namestringFilter by exact tag name (case-insensitive).
nameContainsstringFilter by tags whose name contains this text.
pageintegerZero-based page number. The first page is 0. Default 0.
sizeintegerRecords per page, 1-1000. Default 25. Keep this small unless you need every record.
sortBystringField to sort by. Default createdAt.
sortOrderstringSort direction. Default DESC.
updatedAfterstringOnly records updated after this ISO 8601 UTC timestamp. Use this for incremental syncs.

get_event_tag_by_id Get event tag by ID

Get one event tag by id. Returns no personal data.

ParameterTypeDescription
id *stringUUID of the event tag.

get_visibility_groups Get visibility groups

List visibility groups, which control who inside the organization can see an event. Use this to resolve an event's visibilityGroupIds into names. Returns no personal data.

ParameterTypeDescription
createdAfterstringOnly records created after this ISO 8601 UTC timestamp.
externalIdstringFilter by exact externalId (case-sensitive).
idstringFilter by visibility group UUID.
namestringFilter by exact group name (case-insensitive).
nameContainsstringFilter by groups whose name contains this text.
pageintegerZero-based page number. The first page is 0. Default 0.
sizeintegerRecords per page, 1-1000. Default 25. Keep this small unless you need every record.
sortBystringField to sort by. Default createdAt.
sortOrderstringSort direction. Default DESC.
updatedAfterstringOnly records updated after this ISO 8601 UTC timestamp. Use this for incremental syncs.

get_visibility_group_by_id Get visibility group by ID

Get one visibility group by id. Returns no personal data.

ParameterTypeDescription
id *stringUUID of the visibility group.

get_registration_pages Get registration pages

List event registration pages with their public URL, registration code, guest cap and closing date. Returns page configuration only, no registrant data. Needs the registration_pages_read role, which is not in the default API license - if it fails with error 4031, that role is missing.

ParameterTypeDescription
createdAfterstringOnly records created after this ISO 8601 UTC timestamp.
eventIdstringUUID of the event whose registration pages you want.
externalIdstringFilter by exact externalId (case-sensitive).
idstringFilter by registration page UUID.
namestringFilter by exact page name (case-insensitive).
nameContainsstringFilter by pages whose name contains this text.
pageintegerZero-based page number. The first page is 0. Default 0.
registrationClosedDateAfterstringOnly pages closing at or after this ISO 8601 UTC timestamp.
registrationClosedDateBeforestringOnly pages closing at or before this ISO 8601 UTC timestamp.
sizeintegerRecords per page, 1-1000. Default 25. Keep this small unless you need every record.
sortBystringField to sort by. Default createdAt.
sortOrderstringSort direction. Default DESC.
updatedAfterstringOnly records updated after this ISO 8601 UTC timestamp. Use this for incremental syncs.

get_registration_page_by_id Get registration page by ID

Get one registration page in full, including its publishing details. Returns page configuration only, no registrant data. Needs the registration_pages_read role, which is not in the default API license.

ParameterTypeDescription
id *stringUUID of the registration page.

verify_connection Verify connection

Check that the configured Sweap API credentials work, and report which roles they carry. Use this first when another tool fails with an authentication or permission error, to tell a bad credential apart from a missing role. Takes no arguments and changes nothing.

get_guest_custom_field_definitions Get guest custom field definitions

Get the schema of an event's guest custom fields: each field's id, name, type and available options. Call this before reading or writing a guest's customFields, because those are keyed by field id rather than by name - without these definitions a guest's custom field values are unreadable. Returns event configuration only: no guest values and no personal data, so it is available at every data scope.

ParameterTypeDescription
eventId *stringUUID of the event whose guest field definitions you want.

get_contact_custom_field_definitions Get contact custom field definitions

Get the schema of the address book's contact custom fields: each field's id, name, type and options. Call this before reading or writing a contact's customFields, which are keyed by field id. Returns account-level configuration only: no contact values and no personal data, so it is available at every data scope.