Tool Overview
| Tool | Actions | Description |
|---|---|---|
snackbase_collections | list, list_names, get, create, update, delete, export, import | Manage collection schemas |
snackbase_records | list, get, create, update, patch, delete | CRUD operations on records |
snackbase_collection_rules | get, update, validate, test | Configure access control |
snackbase_users | list, get, create, update, delete, set_password, verify_email | User management |
snackbase_groups | list, get, create, update, delete, add_member, remove_member | Group management |
snackbase_roles | list, get, create, update, delete | Role-based access control |
snackbase_accounts | list, get, create, update, delete, get_users | Multi-tenant accounts |
snackbase_invitations | list, create, resend, cancel | User invitations |
snackbase_api_keys | list, create, revoke | API key management |
snackbase_admin | get_stats, get_recent, list_system, list_account, get_values, update_values, create, list_providers, test_connection | Admin operations |
snackbase_dashboard | get_stats | Dashboard metrics |
snackbase_audit_logs | list, get, export | Audit log access |
snackbase_email_templates | list, get, update, render, send_test, list_logs | Email management |
snackbase_macros | list, get, create, update, delete, test | SQL macro operations |
snackbase_migrations | list, get_current, get_history | Migration status |
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.
- 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 upResponse Format
All MCP tools return responses in this format:Error Handling
Errors are returned in the same format with an error message:400- Bad request (invalid parameters)401- Unauthorized (invalid API key)403- Forbidden (insufficient permissions)404- Not found422- Validation error (invalid data)500+- Server error
Next Steps
- Integration Guide - Use these tools with AI assistants
- Configuration - Set up the MCP server