Skip to main content
The SnackBase MCP server provides 15 tools covering all major SnackBase operations. Each tool supports multiple actions for CRUD operations and queries.

Tool Overview


Collections

Tool Name: snackbase_collections Manage collection schemas and their structure.

Actions

list

List all collections in the current account.

list_names

Get a simplified list of collection names.

get

Get details of a specific collection by ID.

create

Create a new collection with defined fields.

update

Update an existing collection’s schema.

delete

Delete a collection and all its records.

Records

Tool Name: snackbase_records CRUD operations on collection records.

Actions

list

List records from a collection with filtering and pagination.

get

Get a single record by ID.

create

Create a new record.

update

Full update of a record (replaces all fields).

patch

Partial update of a record (only updates specified fields).

delete

Delete a record.

Collection Rules

Tool Name: snackbase_collection_rules Configure access control rules for collections.

Actions

get

Get access rules for a collection.

update

Update access rules for a collection.

validate

Validate a rule expression.

test

Test a rule with sample context.

Users

Tool Name: snackbase_users Manage user accounts and authentication.

Actions

list

List users with filtering and pagination.

get

Get a specific user by ID.

create

Create a new user.

update

Update user details.

delete

Deactivate a user.

set_password

Set a user’s password (admin operation).

verify_email

Manually verify a user’s email.

Groups

Tool Name: snackbase_groups Manage groups for team-based access control.

Actions

list

List all groups.

get

Get group details.

create

Create a new group.

update

Update group details.

delete

Delete a group.

add_member

Add a user to a group.

remove_member

Remove a user from a group.

Roles

Tool Name: snackbase_roles Manage roles for role-based access control.

Actions

list

List all roles.

get

Get role details.

create

Create a new role.

update

Update role details.

delete

Delete a role.

Accounts

Tool Name: snackbase_accounts Manage multi-tenant accounts.

Actions

list

List all accounts.

get

Get account details.

create

Create a new account.

update

Update account details.

delete

Delete an account.

get_users

Get all users in an account.

Invitations

Tool Name: snackbase_invitations Manage user invitations.

Actions

list

List all invitations.

create

Create a new invitation.

resend

Resend a pending invitation.

cancel

Cancel a pending invitation.

API Keys

Tool Name: snackbase_api_keys Manage API keys for programmatic access.

Actions

list

List all API keys.

create

Create a new API key.

revoke

Revoke an API key.

Admin

Tool Name: snackbase_admin Admin operations for configurations and providers.

Actions

get_stats

Get admin statistics.

get_recent

Get recent configurations.

list_system

List system-level configurations.

list_account

List account-level configurations.

get_values

Get configuration values.

update_values

Update configuration values.

create

Create a new configuration.

list_providers

List available providers.

test_connection

Test a provider connection.

Dashboard

Tool Name: snackbase_dashboard Get dashboard statistics and metrics.

Actions

get_stats

Get dashboard statistics.
Returns:
  • Total accounts
  • Total users
  • Total collections
  • Total records
  • Recent activity
  • System health

Audit Logs

Tool Name: snackbase_audit_logs Query and export audit logs.

Actions

list

List audit log entries.

get

Get a specific audit log entry.

export

Export audit logs.

Email Templates

Tool Name: snackbase_email_templates Manage email templates.

Actions

list

List email templates.

get

Get email template details.

update

Update email template.

render

Render template with variables.

send_test

Send a test email.

list_logs

List email send logs.

Macros

Tool Name: snackbase_macros Manage SQL macros for complex queries.

Actions

list

List all macros.

get

Get macro details.

create

Create a new macro.

update

Update macro.

delete

Delete macro.

test

Test macro with parameters.

Migrations

Tool Name: snackbase_migrations Query migration status and history.

Actions

list

List all migrations.

get_current

Get current migration version.

get_history

Get migration history.
The MCP server provides read-only access to migrations. To apply migrations, use the SnackBase CLI: snackbase migrate up

Response Format

All MCP tools return responses in this format:
The text field contains a JSON string with the tool’s response data.

Error Handling

Errors are returned in the same format with an error message:
Common errors:
  • 400 - Bad request (invalid parameters)
  • 401 - Unauthorized (invalid API key)
  • 403 - Forbidden (insufficient permissions)
  • 404 - Not found
  • 422 - Validation error (invalid data)
  • 500+ - Server error

Next Steps