Metabase MCP Server for Cloudflare Workers
78 tools available in the Metabase MCP server. Each tool can be called by AI assistants to perform specific actions.
metabase_list_segmentsList all segments in Metabase.
Segments are saved filter sets that can be reused in questions.
Args:
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}metabase_get_userGet details of a specific user by ID.
Args:
{
"type": "object",
"required": [
"userId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"userId": {
"type": "number",
"description": "User ID"
}
}
}metabase_get_current_userGet the currently authenticated user.
Args:
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}metabase_favorite_cardAdd or remove a card from favorites.
Args:
{
"type": "object",
"required": [
"cardId",
"favorite"
],
"properties": {
"cardId": {
"type": "number",
"description": "Card ID"
},
"favorite": {
"type": "boolean",
"description": "true to favorite, false to unfavorite"
}
}
}metabase_remove_card_from_dashboardRemove a card from a dashboard.
Args:
{
"type": "object",
"required": [
"dashboardId",
"dashcardId"
],
"properties": {
"dashcardId": {
"type": "number",
"description": "Dashboard card ID"
},
"dashboardId": {
"type": "number",
"description": "Dashboard ID"
}
}
}metabase_get_segmentGet details of a specific segment.
Args:
{
"type": "object",
"required": [
"segmentId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"segmentId": {
"type": "number",
"description": "Segment ID"
}
}
}metabase_run_cardExecute a card's query and return the results.
Args:
{
"type": "object",
"required": [
"cardId"
],
"properties": {
"cardId": {
"type": "number",
"description": "Card ID to run"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"parameters": {
"type": "object",
"description": "Query parameters"
}
}
}metabase_delete_alertDelete an alert.
Args:
{
"type": "object",
"required": [
"alertId"
],
"properties": {
"alertId": {
"type": "number",
"description": "Alert ID"
}
}
}metabase_unsubscribe_from_alertUnsubscribe the current user from an alert.
Args:
{
"type": "object",
"required": [
"alertId"
],
"properties": {
"alertId": {
"type": "number",
"description": "Alert ID"
}
}
}metabase_update_cardUpdate an existing card (question).
Args:
{
"type": "object",
"required": [
"cardId"
],
"properties": {
"name": {
"type": "string",
"description": "New name"
},
"cardId": {
"type": "number",
"description": "Card ID to update"
},
"archived": {
"type": "boolean",
"description": "Archive/unarchive"
},
"description": {
"type": "string",
"description": "New description"
},
"collectionId": {
"type": "number",
"description": "Move to collection"
}
}
}metabase_list_alertsList all alerts in Metabase.
Alerts notify users when query results meet certain conditions.
Args:
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Include archived"
}
}
}metabase_get_alerts_for_cardGet all alerts set up for a specific card (question).
Args:
{
"type": "object",
"required": [
"cardId"
],
"properties": {
"cardId": {
"type": "number",
"description": "Card ID"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}metabase_create_alertCreate a new alert for a card.
Args:
{
"type": "object",
"required": [
"cardId",
"alertCondition",
"scheduleType"
],
"properties": {
"cardId": {
"type": "number",
"description": "Card ID"
},
"recipients": {
"type": "array",
"items": {
"type": "number"
},
"description": "User IDs"
},
"channelType": {
"enum": [
"email",
"slack"
],
"type": "string",
"default": "email",
"description": "Channel"
},
"scheduleDay": {
"type": "string",
"description": "Day of week"
},
"scheduleHour": {
"type": "number",
"description": "Hour (0-23)"
},
"scheduleType": {
"enum": [
"hourly",
"daily",
"weekly"
],
"type": "string",
"description": "Schedule"
},
"alertAboveGoal": {
"type": "boolean",
"description": "Alert above goal"
},
"alertCondition": {
"enum": [
"rows",
"goal"
],
"type": "string",
"description": "Alert condition"
},
"alertFirstOnly": {
"type": "boolean",
"default": false,
"description": "Alert first time only"
}
}
}metabase_update_alertUpdate an existing alert.
Args:
{
"type": "object",
"required": [
"alertId"
],
"properties": {
"alertId": {
"type": "number",
"description": "Alert ID"
},
"archived": {
"type": "boolean",
"description": "Archive"
},
"alertAboveGoal": {
"type": "boolean",
"description": "Above goal"
},
"alertCondition": {
"enum": [
"rows",
"goal"
],
"type": "string",
"description": "Alert condition"
},
"alertFirstOnly": {
"type": "boolean",
"description": "First time only"
}
}
}metabase_list_cardsList all saved questions (cards) in Metabase.
Returns a list of cards with their IDs, names, display types, and collection info.
Args:
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Include archived cards"
},
"collectionId": {
"type": "number",
"description": "Filter by collection ID"
}
}
}metabase_get_cardGet details of a specific card (question) by ID.
Returns the full card definition including query, visualization settings, and metadata.
Args:
{
"type": "object",
"required": [
"cardId"
],
"properties": {
"cardId": {
"type": "number",
"description": "Card ID"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}metabase_create_cardCreate a new card (saved question) in Metabase.
Args:
{
"type": "object",
"required": [
"name",
"databaseId"
],
"properties": {
"name": {
"type": "string",
"description": "Card name"
},
"queryType": {
"enum": [
"query",
"native"
],
"type": "string",
"default": "query",
"description": "Query type"
},
"databaseId": {
"type": "number",
"description": "Database ID"
},
"description": {
"type": "string",
"default": "table') .describe('Visualization type",
"description": "Card description"
},
"nativeQuery": {
"type": "string",
"description": "SQL query for native type"
},
"sourceTable": {
"type": "number",
"description": "Source table ID for MBQL query"
},
"collectionId": {
"type": "number",
"description": "Collection ID"
}
}
}metabase_delete_cardDelete (archive) a card. Cards are not permanently deleted but moved to trash.
Args:
{
"type": "object",
"required": [
"cardId"
],
"properties": {
"cardId": {
"type": "number",
"description": "Card ID to delete"
}
}
}metabase_list_collectionsList all collections in Metabase.
Collections are folders that organize dashboards, questions, and other items.
Args:
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Include archived collections"
}
}
}metabase_get_collectionGet details of a specific collection by ID.
Use 'root' as the ID to get the root collection.
Args:
{
"type": "object",
"required": [
"collectionId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"collectionId": {
"type": "string",
"description": "Collection ID or \"root\""
}
}
}metabase_create_collectionCreate a new collection in Metabase.
Args:
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Collection name"
},
"color": {
"type": "string",
"description": "Collection color (hex)"
},
"parentId": {
"type": "string",
"description": "Parent collection"
},
"description": {
"type": "string",
"description": "Collection description"
}
}
}metabase_update_collectionUpdate an existing collection.
Args:
{
"type": "object",
"required": [
"collectionId"
],
"properties": {
"name": {
"type": "string",
"description": "New name"
},
"color": {
"type": "string",
"description": "New color"
},
"archived": {
"type": "boolean",
"description": "Archive/unarchive"
},
"parentId": {
"type": "string",
"description": "Move to parent"
},
"description": {
"type": "string",
"description": "New description"
},
"collectionId": {
"type": "number",
"description": "Collection ID to update"
}
}
}metabase_get_collection_itemsGet items (cards, dashboards, etc.) in a collection.
Args:
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Include archived items"
},
"collectionId": {
"type": "string",
"description": "Collection ID or \"root\""
}
}
}metabase_get_collection_treeGet the collection hierarchy as a tree structure.
Returns all collections organized in their parent-child relationships.
Args:
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}metabase_list_dashboardsList all dashboards in Metabase.
Returns a list of dashboards with their IDs, names, and collection info.
Args:
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Include archived dashboards"
}
}
}metabase_get_dashboardGet details of a specific dashboard by ID.
Returns the full dashboard definition including cards, parameters, and layout.
Args:
{
"type": "object",
"required": [
"dashboardId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"dashboardId": {
"type": "number",
"description": "Dashboard ID"
}
}
}metabase_create_dashboardCreate a new dashboard in Metabase.
Args:
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Dashboard name"
},
"description": {
"type": "string",
"description": "Dashboard description"
},
"collectionId": {
"type": "number",
"description": "Collection ID"
}
}
}metabase_update_dashboardUpdate an existing dashboard.
Args:
{
"type": "object",
"required": [
"dashboardId"
],
"properties": {
"name": {
"type": "string",
"description": "New name"
},
"archived": {
"type": "boolean",
"description": "Archive/unarchive"
},
"dashboardId": {
"type": "number",
"description": "Dashboard ID to update"
},
"description": {
"type": "string",
"description": "New description"
},
"collectionId": {
"type": "number",
"description": "Move to collection"
}
}
}metabase_delete_dashboardDelete a dashboard.
Args:
{
"type": "object",
"required": [
"dashboardId"
],
"properties": {
"dashboardId": {
"type": "number",
"description": "Dashboard ID to delete"
}
}
}metabase_add_card_to_dashboardAdd a saved question (card) to a dashboard.
Args:
{
"type": "object",
"required": [
"dashboardId",
"cardId"
],
"properties": {
"col": {
"type": "number",
"default": 0,
"description": "Column position"
},
"row": {
"type": "number",
"default": 0,
"description": "Row position"
},
"sizeX": {
"type": "number",
"default": 4,
"description": "Width in grid units"
},
"sizeY": {
"type": "number",
"default": 4,
"description": "Height in grid units"
},
"cardId": {
"type": "number",
"description": "Card ID to add"
},
"dashboardId": {
"type": "number",
"description": "Dashboard ID"
}
}
}metabase_copy_dashboardCreate a copy of a dashboard.
Args:
{
"type": "object",
"required": [
"dashboardId"
],
"properties": {
"name": {
"type": "string",
"description": "Name for the copy"
},
"dashboardId": {
"type": "number",
"description": "Dashboard ID to copy"
},
"collectionId": {
"type": "number",
"description": "Target collection"
}
}
}metabase_favorite_dashboardAdd or remove a dashboard from favorites.
Args:
{
"type": "object",
"required": [
"dashboardId",
"favorite"
],
"properties": {
"favorite": {
"type": "boolean",
"description": "true to favorite, false to unfavorite"
},
"dashboardId": {
"type": "number",
"description": "Dashboard ID"
}
}
}metabase_list_databasesList all databases connected to Metabase.
Args:
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"includeTables": {
"type": "boolean",
"default": false,
"description": "Include tables"
}
}
}metabase_get_databaseGet details of a specific database by ID.
Args:
{
"type": "object",
"required": [
"databaseId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"databaseId": {
"type": "number",
"description": "Database ID"
}
}
}metabase_get_database_metadataGet full metadata for a database including all tables and fields.
This is useful for understanding the schema before writing queries.
Args:
{
"type": "object",
"required": [
"databaseId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"databaseId": {
"type": "number",
"description": "Database ID"
}
}
}metabase_sync_databaseTrigger a sync of a database's metadata.
This refreshes Metabase's understanding of the database schema.
Args:
{
"type": "object",
"required": [
"databaseId"
],
"properties": {
"databaseId": {
"type": "number",
"description": "Database ID"
}
}
}metabase_sync_database_schemaForce a full schema sync of a database.
This is more thorough than a regular sync and requires admin privileges.
Args:
{
"type": "object",
"required": [
"databaseId"
],
"properties": {
"databaseId": {
"type": "number",
"description": "Database ID"
}
}
}metabase_rescan_database_field_valuesRescan field values for a database.
This updates the cached list of values for filter dropdowns.
Args:
{
"type": "object",
"required": [
"databaseId"
],
"properties": {
"databaseId": {
"type": "number",
"description": "Database ID"
}
}
}metabase_discard_database_field_valuesDiscard cached field values for a database.
Args:
{
"type": "object",
"required": [
"databaseId"
],
"properties": {
"databaseId": {
"type": "number",
"description": "Database ID"
}
}
}metabase_get_database_schemasGet all schemas in a database.
Args:
{
"type": "object",
"required": [
"databaseId"
],
"properties": {
"databaseId": {
"type": "number",
"description": "Database ID"
}
}
}metabase_get_database_tablesGet all tables in a database, optionally filtered by schema.
Args:
{
"type": "object",
"required": [
"databaseId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"schema": {
"type": "string",
"description": "Schema name filter"
},
"databaseId": {
"type": "number",
"description": "Database ID"
}
}
}metabase_list_permissions_groupsList all permission groups in Metabase.
Permission groups control access to databases, tables, and features.
Args:
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}metabase_get_permissions_groupGet details of a specific permission group.
Args:
{
"type": "object",
"required": [
"groupId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"groupId": {
"type": "number",
"description": "Permission group ID"
}
}
}metabase_create_permissions_groupCreate a new permission group.
Requires admin privileges.
Args:
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Group name"
}
}
}metabase_delete_permissions_groupDelete a permission group.
Requires admin privileges. Cannot delete built-in groups.
Args:
{
"type": "object",
"required": [
"groupId"
],
"properties": {
"groupId": {
"type": "number",
"description": "Permission group ID"
}
}
}metabase_get_permissions_graphGet the full permissions graph.
Shows all database and table permissions for all groups. Requires admin privileges.
Args:
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}metabase_get_permissions_membershipGet all user-group memberships.
Shows which users belong to which groups. Requires admin privileges.
{
"type": "object",
"properties": {}
}metabase_add_user_to_groupAdd a user to a permission group.
Requires admin privileges.
Args:
{
"type": "object",
"required": [
"groupId",
"userId"
],
"properties": {
"userId": {
"type": "number",
"description": "User ID"
},
"groupId": {
"type": "number",
"description": "Permission group ID"
}
}
}metabase_remove_user_from_groupRemove a user from a permission group.
Requires admin privileges.
Args:
{
"type": "object",
"required": [
"membershipId"
],
"properties": {
"membershipId": {
"type": "number",
"description": "Membership ID"
}
}
}metabase_run_native_queryExecute a native SQL query against a database.
This runs the query directly and returns the results. Use this for ad-hoc analysis.
Args:
{
"type": "object",
"required": [
"databaseId",
"query"
],
"properties": {
"query": {
"type": "string",
"description": "SQL query"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"databaseId": {
"type": "number",
"description": "Database ID"
}
}
}metabase_run_queryExecute a structured query (MBQL) against a database.
MBQL is Metabase's query language for building queries without SQL.
Args:
{
"type": "object",
"required": [
"databaseId",
"sourceTable"
],
"properties": {
"limit": {
"type": "number",
"description": "Maximum rows"
},
"fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "Field references to select"
},
"filter": {
"type": "array",
"items": {
"type": "string"
},
"description": "Filter conditions"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"orderBy": {
"type": "array",
"items": {
"type": "string"
},
"description": "Sort order"
},
"breakout": {
"type": "array",
"items": {
"type": "string"
},
"description": "Grouping fields"
},
"databaseId": {
"type": "number",
"description": "Database ID"
},
"aggregation": {
"type": "array",
"items": {
"type": "string"
},
"description": "Aggregation"
},
"sourceTable": {
"type": "number",
"description": "Source table ID"
}
}
}metabase_searchSearch across all Metabase content.
Searches cards, dashboards, collections, tables, and more.
Args:
{
"type": "object",
"properties": {
"limit": {
"type": "number",
"default": 20,
"description": "Maximum results"
},
"query": {
"type": "string",
"description": "Search query"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"archived": {
"type": "boolean",
"default": false,
"description": "Include archived"
},
"databaseId": {
"type": "number",
"description": "Filter by database"
}
}
}metabase_list_settingsList all Metabase settings.
Returns all configurable settings with their current values. Requires admin privileges for most settings.
Args:
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}metabase_get_settingGet a specific Metabase setting value.
Args:
{
"type": "object",
"required": [
"key"
],
"properties": {
"key": {
"type": "string",
"description": "Setting key"
}
}
}metabase_update_settingUpdate a Metabase setting.
Requires admin privileges.
Args:
{
"type": "object",
"required": [
"key",
"value"
],
"properties": {
"key": {
"type": "string",
"description": "Setting key"
},
"value": {
"description": "New value"
}
}
}metabase_get_recent_activityGet recent activity across Metabase.
Shows recent user actions like creating cards, viewing dashboards, etc.
Args:
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}metabase_get_recent_viewsGet the current user's recently viewed items.
Returns up to 10 most recently viewed cards and dashboards.
Args:
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}metabase_create_segmentCreate a new segment.
Requires admin privileges.
Args:
{
"type": "object",
"required": [
"name",
"tableId",
"filter"
],
"properties": {
"name": {
"type": "string",
"description": "Segment name"
},
"filter": {
"type": "array",
"items": {
"type": "string"
},
"description": "Filter in MBQL format"
},
"tableId": {
"type": "number",
"description": "Table ID"
},
"description": {
"type": "string",
"description": "Description"
}
}
}metabase_update_segmentUpdate an existing segment.
Args:
{
"type": "object",
"required": [
"segmentId"
],
"properties": {
"name": {
"type": "string",
"description": "New name"
},
"filter": {
"type": "array",
"items": {
"type": "string"
},
"description": "New filter"
},
"archived": {
"type": "boolean",
"description": "Archive"
},
"segmentId": {
"type": "number",
"description": "Segment ID"
},
"description": {
"type": "string",
"description": "New description"
}
}
}metabase_delete_segmentDelete a segment.
Args:
{
"type": "object",
"required": [
"segmentId"
],
"properties": {
"segmentId": {
"type": "number",
"description": "Segment ID"
}
}
}metabase_list_metricsList all metrics in Metabase.
Metrics are saved aggregations that can be reused in questions.
Args:
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}metabase_get_metricGet details of a specific metric.
Args:
{
"type": "object",
"required": [
"metricId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"metricId": {
"type": "number",
"description": "Metric ID"
}
}
}metabase_create_metricCreate a new metric.
Requires admin privileges.
Args:
{
"type": "object",
"required": [
"name",
"tableId",
"aggregation"
],
"properties": {
"name": {
"type": "string",
"description": "Metric name"
},
"filter": {
"type": "array",
"items": {
"type": "string"
},
"description": "Filter in MBQL"
},
"tableId": {
"type": "number",
"description": "Table ID"
},
"aggregation": {
"type": "array",
"items": {
"type": "string"
},
"description": "Aggregation in MBQL"
},
"description": {
"type": "string",
"description": "Description"
}
}
}metabase_update_metricUpdate an existing metric.
Args:
{
"type": "object",
"required": [
"metricId"
],
"properties": {
"name": {
"type": "string",
"description": "New name"
},
"filter": {
"type": "array",
"items": {
"type": "string"
},
"description": "New filter"
},
"archived": {
"type": "boolean",
"description": "Archive"
},
"metricId": {
"type": "number",
"description": "Metric ID"
},
"aggregation": {
"type": "array",
"items": {
"type": "string"
},
"description": "New aggregation"
},
"description": {
"type": "string",
"description": "New description"
}
}
}metabase_delete_metricDelete a metric.
Args:
{
"type": "object",
"required": [
"metricId"
],
"properties": {
"metricId": {
"type": "number",
"description": "Metric ID"
}
}
}metabase_list_tablesList all tables, optionally filtered by database.
Args:
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"databaseId": {
"type": "number",
"description": "Filter by database"
}
}
}metabase_get_tableGet details of a specific table by ID.
Args:
{
"type": "object",
"required": [
"tableId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"tableId": {
"type": "number",
"description": "Table ID"
}
}
}metabase_get_table_metadataGet full metadata for a table including all fields.
Args:
{
"type": "object",
"required": [
"tableId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"tableId": {
"type": "number",
"description": "Table ID"
}
}
}metabase_update_tableUpdate table display settings.
Args:
{
"type": "object",
"required": [
"tableId"
],
"properties": {
"tableId": {
"type": "number",
"description": "Table ID"
},
"description": {
"type": "string",
"description": "Description"
},
"displayName": {
"type": "string",
"description": "Display name"
},
"visibilityType": {
"type": "string",
"description": "Visibility type"
}
}
}metabase_get_fieldGet details of a specific field by ID.
Args:
{
"type": "object",
"required": [
"fieldId"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"fieldId": {
"type": "number",
"description": "Field ID"
}
}
}metabase_update_fieldUpdate field metadata and settings.
Args:
{
"type": "object",
"required": [
"fieldId"
],
"properties": {
"fieldId": {
"type": "number",
"description": "Field ID"
},
"description": {
"type": "string",
"description": "Description"
},
"displayName": {
"type": "string",
"description": "Display name"
},
"semanticType": {
"type": "string",
"description": "Semantic type"
},
"hasFieldValues": {
"enum": [
"none",
"list",
"search"
],
"type": "string",
"description": "Field values mode"
}
}
}metabase_get_field_valuesGet distinct values for a field.
Useful for understanding data distribution and for filter dropdowns.
Args:
{
"type": "object",
"required": [
"fieldId"
],
"properties": {
"fieldId": {
"type": "number",
"description": "Field ID"
}
}
}metabase_rescan_field_valuesRescan values for a specific field.
Args:
{
"type": "object",
"required": [
"fieldId"
],
"properties": {
"fieldId": {
"type": "number",
"description": "Field ID"
}
}
}metabase_list_usersList all users in Metabase.
Args:
{
"type": "object",
"properties": {
"limit": {
"type": "number",
"default": 20,
"description": "Maximum users"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
},
"offset": {
"type": "number",
"default": 0,
"description": "Pagination offset"
}
}
}metabase_create_userCreate a new user in Metabase.
Requires admin privileges.
Args:
{
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"description": "Email address"
},
"groupIds": {
"type": "array",
"items": {
"type": "number"
},
"description": "Permission group IDs"
},
"lastName": {
"type": "string",
"description": "Last name"
},
"password": {
"type": "string",
"description": "Initial password"
},
"firstName": {
"type": "string",
"description": "First name"
}
}
}metabase_update_userUpdate an existing user.
Args:
{
"type": "object",
"required": [
"userId"
],
"properties": {
"email": {
"type": "string",
"description": "Email"
},
"locale": {
"type": "string",
"description": "Locale"
},
"userId": {
"type": "number",
"description": "User ID"
},
"groupIds": {
"type": "array",
"items": {
"type": "number"
},
"description": "Permission groups"
},
"lastName": {
"type": "string",
"description": "Last name"
},
"firstName": {
"type": "string",
"description": "First name"
},
"isSuperuser": {
"type": "boolean",
"description": "Admin status"
}
}
}metabase_deactivate_userDeactivate a user account.
The user will be unable to log in but their data is preserved.
Args:
{
"type": "object",
"required": [
"userId"
],
"properties": {
"userId": {
"type": "number",
"description": "User ID"
}
}
}metabase_reactivate_userReactivate a deactivated user account.
Args:
{
"type": "object",
"required": [
"userId"
],
"properties": {
"userId": {
"type": "number",
"description": "User ID"
}
}
}