fabric-dw-mcp-cli
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| assign_workspace_to_capacityB | Assign a workspace to a Fabric capacity. Args: workspace: Workspace name or GUID. capacity_id: UUID of the capacity to assign the workspace to. |
| list_capacitiesA | List all Fabric capacities the caller has access to. Requires the |
| list_workspacesA | List all Fabric workspaces the caller has access to. When a workspace allowlist is configured (via |
| get_workspaceB | Return details for a single workspace (name or GUID). |
| set_workspace_collationA | Set the default Data Warehouse collation for a workspace. Args: workspace: Workspace name or GUID. collation: Collation to apply. Fabric Data Warehouse supports a fixed set of collations. Supported values include: |
| list_warehousesA | List all warehouses and SQL analytics endpoints in a workspace. Args:
workspace: Workspace name or GUID. Optional when all_workspaces
is |
| get_warehouseC | Return details for a single warehouse (name or GUID). |
| create_warehouseA | Create a new Warehouse in a workspace. Args: workspace: Workspace name or GUID. name: Display name for the new warehouse. collation: Optional default collation for the new warehouse. Fabric Data Warehouse supports a fixed set of collations. Supported values include: |
| rename_warehouseB | Rename a Warehouse (and optionally update its description). |
| delete_warehouseC | Delete a Warehouse. |
| takeover_warehouseC | Take ownership of a Warehouse. |
| list_sql_endpointsA | List all SQL analytics endpoints in a workspace. Args:
workspace: Workspace name or GUID. Optional when all_workspaces
is |
| get_sql_endpointA | Return details for a single SQL analytics endpoint (name or GUID). |
| refresh_sql_endpoint_metadataA | Refresh metadata for a SQL analytics endpoint (sync from the underlying Lakehouse). This is a long-running operation (LRO) that is polled to completion. Returns a list of per-table sync results. Args:
workspace: Workspace name or GUID.
endpoint: SQL analytics endpoint name or GUID.
recreate_tables: When |
| list_item_permissionsA | Return principals with access to a Warehouse or SQL Analytics Endpoint item. Uses the Fabric admin API. Accepts both Data Warehouses and SQL Analytics Endpoints -- the item kind is resolved automatically from its GUID. Requires Fabric Administrator role (admin API). See https://learn.microsoft.com/en-us/fabric/admin/microsoft-fabric-admin for details. Args: workspace: Workspace name or GUID. item: Warehouse or SQL endpoint name or GUID. |
| list_sql_permissionsA | List T-SQL database permissions from sys.database_permissions. Reads from sys.database_permissions joined to sys.database_principals. Returns DATABASE, SCHEMA, and OBJECT class securables with readable names. Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
principal: Filter by principal name (optional).
schema: Filter by schema name -- returns SCHEMA class rows for this
schema (optional).
object_name: Filter by qualified object name |
| list_database_principalsA | List database principals from sys.database_principals. Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
principal_type: Filter by type -- |
| my_permissionsA | Return permissions for the current connection via sys.fn_my_permissions. Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
scope: Scope string -- |
| grant_permissionA | Grant permissions on a securable to a principal. Executes Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
permissions: Comma-separated permission tokens (e.g. |
| deny_permissionA | Deny permissions on a securable to a principal. Executes Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
permissions: Comma-separated permission tokens (e.g. |
| revoke_permissionA | Revoke permissions on a securable from a principal. Executes Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
permissions: Comma-separated permission tokens (e.g. |
| list_security_policiesA | List row-level security policies from sys.security_policies. Returns all security policies and their predicates for the target Data Warehouse or SQL Analytics Endpoint. Args: workspace: Workspace name or GUID. item: Warehouse or SQL endpoint name or GUID. |
| create_security_policyA | Create a row-level security policy. Executes
Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
policy_name: Qualified policy name ( |
| add_security_predicateA | Add a FILTER predicate to an existing row-level security policy. Executes Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
policy_name: Qualified policy name ( |
| drop_security_predicateB | Drop the FILTER predicate from an existing row-level security policy. Executes Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
policy_name: Qualified policy name ( |
| set_security_policy_stateA | Enable or disable a row-level security policy. Executes Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
policy_name: Qualified policy name ( |
| drop_security_policyA | Drop a row-level security policy. Executes Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
policy_name: Qualified policy name ( |
| list_masked_columnsA | List columns with dynamic data masking from sys.masked_columns. Returns all masked columns on the target Data Warehouse or SQL Analytics Endpoint. Filter by table_schema and/or table_name to narrow results. Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
table_schema: Optional schema filter (case-insensitive). Pass |
| set_column_maskA | Apply or replace a dynamic data mask on a column. Executes Blocked by Supported mask function types:
Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
table_schema: Schema name of the target table.
table_name: Name of the target table.
column_name: Name of the column to mask.
fn_type: Mask function type -- |
| drop_column_maskA | Remove a dynamic data mask from a column. Executes Args: workspace: Workspace name or GUID. item: Warehouse or SQL endpoint name or GUID. table_schema: Schema name of the target table. table_name: Name of the target table. column_name: Name of the column whose mask to remove. |
| get_audit_settingsA | Fetch the current SQL audit settings for a warehouse or SQL analytics endpoint. Args: workspace: Workspace name or GUID. warehouse: Warehouse or SQL analytics endpoint name or GUID. |
| enable_auditA | Enable SQL auditing on a warehouse or SQL analytics endpoint. CAUTION: The pre-flight GET used to round-trip the existing action-group list is eventually consistent and may lag a recent PATCH by several minutes. If the action-group list was changed within that window, this call may silently revert it. Space audit writes at least a few minutes apart. Args: workspace: Workspace name or GUID. warehouse: Warehouse or SQL analytics endpoint name or GUID. retention_days: Log retention in days (0-3650; 0 = unlimited). Default 0. |
| disable_auditA | Disable SQL auditing on a warehouse or SQL analytics endpoint. CAUTION: Each audit write reads current settings via an eventually-consistent GET that may lag a recent PATCH by several minutes. Two audit writes issued within that window can cause the second to silently revert the first. Space audit writes at least a few minutes apart. Args: workspace: Workspace name or GUID. warehouse: Warehouse or SQL analytics endpoint name or GUID. |
| set_audit_action_groupsA | Replace the audited action groups for a warehouse or SQL analytics endpoint. Only replaces the action groups. Does not toggle the audit enabled or disabled state; if auditing was Disabled before the call it remains Disabled afterwards. CAUTION: Each audit write reads current settings via an eventually-consistent GET that may lag a recent PATCH by several minutes. The retention period read from that GET is round-tripped; if retention was changed within the lag window, this call may silently revert it. Space audit writes at least a few minutes apart. Args: workspace: Workspace name or GUID. warehouse: Warehouse or SQL analytics endpoint name or GUID. action_groups: List of audit action group names. |
| add_audit_groupA | Add a single audit action group without overwriting the others. Idempotent -- if the group is already present the current settings are returned unchanged. Auditing must already be enabled. CAUTION: changes take effect immediately on the live audit policy. CAUTION: Each audit write reads current settings via an eventually-consistent GET that may lag a recent PATCH by several minutes. Two audit writes issued within that window can cause the second to silently revert the first. Space audit writes at least a few minutes apart. Args:
workspace: Workspace name or GUID.
warehouse: Warehouse or SQL analytics endpoint name or GUID.
group: Action group name, e.g. |
| remove_audit_groupA | Remove a single audit action group without overwriting the others. Idempotent -- if the group is not present the current settings are returned unchanged. Auditing must already be enabled. CAUTION: changes take effect immediately on the live audit policy. CAUTION: Each audit write reads current settings via an eventually-consistent GET that may lag a recent PATCH by several minutes. Two audit writes issued within that window can cause the second to silently revert the first. Space audit writes at least a few minutes apart. Args:
workspace: Workspace name or GUID.
warehouse: Warehouse or SQL analytics endpoint name or GUID.
group: Action group name, e.g. |
| set_audit_retentionA | Update the audit log retention period without changing the audit enabled/disabled state. Audit must already be enabled; if disabled, enable it first with CAUTION: The pre-flight GET used to round-trip the existing action-group list is eventually consistent and may lag a recent PATCH by several minutes. If the action-group list was changed within that window, this call may silently revert it. Space audit writes at least a few minutes apart. Args: workspace: Workspace name or GUID. warehouse: Warehouse or SQL analytics endpoint name or GUID. days: Retention period in days (1-3650). The API enforces its own upper bound. |
| list_running_queriesA | Return all currently-executing queries on a warehouse or SQL Analytics Endpoint. Args: workspace: Workspace name or GUID. item: Warehouse or SQL Analytics Endpoint name or GUID. |
| list_connectionsB | Return all active SQL connections on a warehouse or SQL Analytics Endpoint. Args: workspace: Workspace name or GUID. item: Warehouse or SQL Analytics Endpoint name or GUID. |
| kill_sessionA | Terminate a session on a warehouse by session_id. Args: workspace: Workspace name or GUID. item: Warehouse or SQL Analytics Endpoint name or GUID. session_id: Session ID to terminate (must be a positive integer). |
| list_request_historyA | Return completed SQL requests from queryinsights.exec_requests_history. Args: workspace: Workspace name or GUID. item: Warehouse or SQL Analytics Endpoint name or GUID. limit: Maximum rows to return (1-10000, default 100). since: Optional ISO-8601 lower bound on submit_time. until: Optional ISO-8601 upper bound on submit_time. |
| list_session_historyA | Return completed sessions from queryinsights.exec_sessions_history. Args: workspace: Workspace name or GUID. item: Warehouse or SQL Analytics Endpoint name or GUID. limit: Maximum rows to return (1-10000, default 100). since: Optional ISO-8601 lower bound on session_start_time. until: Optional ISO-8601 upper bound on session_start_time. |
| list_frequent_queriesA | Return frequently-run queries from queryinsights.frequently_run_queries. Args: workspace: Workspace name or GUID. item: Warehouse or SQL Analytics Endpoint name or GUID. limit: Maximum rows to return (1-10000, default 100). since: Optional ISO-8601 lower bound on last_run_start_time. until: Optional ISO-8601 upper bound on last_run_start_time. |
| list_locksA | Return active lock rows from sys.dm_tran_locks joined with sys.dm_exec_requests. Args: workspace: Workspace name or GUID. item: Warehouse or SQL Analytics Endpoint name or GUID. limit: Maximum rows to return (1-10000, default 100). waiting_only: When True, restrict to locks with request_status WAIT or CONVERT. blocked_only: When True, show only blocked sessions (victims). The blocker's session_id appears in blocking_session_id. include_database: When True, include DATABASE-scoped lock rows (excluded by default). |
| list_long_running_queriesB | Return long-running queries from queryinsights.long_running_queries. Args: workspace: Workspace name or GUID. item: Warehouse or SQL Analytics Endpoint name or GUID. limit: Maximum rows to return (1-10000, default 100). since: Optional ISO-8601 lower bound on last_run_start_time. until: Optional ISO-8601 upper bound on last_run_start_time. |
| execute_sqlA | Execute an arbitrary SQL statement or batch against a warehouse or SQL Analytics Endpoint. Prefer dedicated tools for common operations: use read_table or read_view to fetch rows, count_table_rows or count_view_rows to count, list_tables, list_views, list_schemas to discover objects, get_table_columns or get_view_columns to inspect schemas, and delete_table, rename_table, or clear_table to mutate. Dedicated tools return structured, typed results with no dialect pitfalls or batch-truncation surprises. WARNING: this tool executes arbitrary SQL against the target. DDL (DROP,
ALTER, TRUNCATE) and DML (DELETE, UPDATE) are permitted unless
Supports both Warehouse and SQL Analytics Endpoint items. Multi-statement
batches are allowed; only the last result set is returned. DDL/DML
statements that produce no result set return
For large tables, add a TOP clause or WHERE predicate to the query rather
than relying solely on Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL Analytics Endpoint name or GUID.
query: SQL statement or batch to execute.
max_rows: Maximum rows to return (1-10000, default 1000). When the
result set is larger the response includes Returns:
A dict with keys |
| get_query_planA | Capture the estimated SHOWPLAN_XML execution plan for a SQL query without executing it. This tool does NOT execute the query — it only retrieves the estimated execution
plan as SHOWPLAN_XML. Because no data is modified, this tool is permitted even
under The plan XML uses the standard namespace
Since the query is not executed, DDL/DML query text is safe to plan without modifying any data. Supports both Warehouse and SQL Analytics Endpoint items. Format options:
Artifact formats (SVG/HTML/DOT) are CLI-only. They write files to disk and
are only available via Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL Analytics Endpoint name or GUID.
query: SQL statement to generate an estimated execution plan for.
format: Output format — one of Returns: A dict whose shape depends on format: |
| list_snapshotsB | Return all snapshots belonging to a warehouse. |
| create_snapshotA | Create a new warehouse snapshot. Args: workspace: Workspace name or GUID. warehouse: Warehouse name or GUID. name: Display name for the new snapshot. description: Optional description. snapshot_dt: Optional ISO-8601 datetime string for the snapshot point-in-time. Naive datetimes (no timezone offset) are interpreted as UTC. |
| rename_snapshotD | Rename a warehouse snapshot. |
| delete_snapshotC | Delete a warehouse snapshot. |
| roll_snapshot_timestampA | Roll a snapshot's timestamp forward (or reset to current). Args: workspace: Workspace name or GUID. warehouse: Parent warehouse name or GUID (used for the SQL connection). snapshot_name: The snapshot database name to roll. new_dt: Optional ISO-8601 datetime string; defaults to CURRENT_TIMESTAMP. Naive datetimes (no timezone offset) are interpreted as UTC. |
| list_restore_pointsB | Return all restore points for a warehouse. |
| get_restore_pointA | Return a single restore point by ID. Args:
workspace: Workspace name or GUID.
warehouse: Warehouse name or GUID.
restore_point_id: The restore point ID string (e.g. |
| create_restore_pointB | Create a restore point for a warehouse at the current timestamp. Args: workspace: Workspace name or GUID. warehouse: Warehouse name or GUID. name: Optional display name (max 128 chars). description: Optional description (max 512 chars). |
| update_restore_pointA | Rename and/or update the description of a restore point. At least one of name or description must be provided. Args: workspace: Workspace name or GUID. warehouse: Warehouse name or GUID. restore_point_id: The restore point ID string. name: New display name (max 128 chars). description: New description (max 512 chars). |
| delete_restore_pointA | Delete a user-defined restore point. System-created restore points cannot be deleted. Args: workspace: Workspace name or GUID. warehouse: Warehouse name or GUID. restore_point_id: The restore point ID string. |
| restore_warehouse_in_place | Restore a warehouse in-place to a restore point. WARNING: This is a destructive, long-running operation. The warehouse will be unavailable for approximately 10 minutes while the restore completes. Args: workspace: Workspace name or GUID. warehouse: Warehouse name or GUID. restore_point_id: The restore point ID string to restore to. |
| list_views | List SQL views on a warehouse or SQL Analytics Endpoint. Args: workspace: Workspace name or GUID. item: Warehouse or SQL endpoint name or GUID. schema: When provided, only views in this schema are returned. |
| read_view | Return up to count rows from a view as JSON-serialisable columns + rows. Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
qualified_name: Dot-separated qualified view name, e.g. |
| count_view_rows | Return the total row count of a view via Works on both Fabric Data Warehouses and SQL Analytics Endpoints. Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
qualified_name: Dot-separated qualified view name, e.g. |
| get_view_columns | Return column metadata for a SQL view via Works on both Fabric Data Warehouses and SQL Analytics Endpoints. Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
qualified_name: Dot-separated qualified view name, e.g. |
| get_viewB | Fetch the full definition of a view (schema.view). Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
qualified_name: Dot-separated qualified view name, e.g. |
| create_viewA | Create a new SQL view. CAUTION:
Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
qualified_name: Dot-separated qualified view name, e.g. |
| update_viewA | Redefine a SQL view via CREATE OR ALTER VIEW. CAUTION:
Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
qualified_name: Dot-separated qualified view name, e.g. |
| drop_viewA | Drop a SQL view. Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
qualified_name: Dot-separated qualified view name, e.g. |
| rename_viewA | Rename a SQL view via sp_rename. Works on both Data Warehouses and SQL Analytics Endpoints. The new name must be a bare (unqualified) identifier — Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
qualified_name: Current dot-separated qualified view name,
e.g. |
| transfer_viewA | Move a SQL view to another schema via Works on both Data Warehouses and SQL Analytics Endpoints — no DW-only guard is applied. CAUTION: Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
qualified_name: Current dot-separated qualified view name,
e.g. |
| list_proceduresA | List stored procedures on a warehouse or SQL Analytics Endpoint. Stored procedures are supported on both Fabric Data Warehouses and SQL Analytics Endpoints. Args: workspace: Workspace name or GUID. item: Warehouse or SQL endpoint name or GUID. schema: When provided, only procedures in this schema are returned. |
| get_procedureA | Fetch the full definition of a stored procedure (schema.proc). Stored procedures are supported on both Fabric Data Warehouses and SQL Analytics Endpoints. Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
qualified_name: Dot-separated qualified procedure name, e.g. |
| create_procedure | Create a new stored procedure. Stored procedures are supported on both Fabric Data Warehouses and SQL Analytics Endpoints. CAUTION: Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
qualified_name: Dot-separated qualified procedure name, e.g. |
| update_procedure | Redefine a stored procedure via CREATE OR ALTER PROCEDURE. Stored procedures are supported on both Fabric Data Warehouses and SQL Analytics Endpoints. CAUTION: Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
qualified_name: Dot-separated qualified procedure name, e.g. |
| drop_procedure | Drop a stored procedure. Stored procedures are supported on both Fabric Data Warehouses and SQL Analytics Endpoints. Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
qualified_name: Dot-separated qualified procedure name, e.g. |
| transfer_procedure | Move a stored procedure to another schema via Stored procedures are supported on both Fabric Data Warehouses and
SQL Analytics Endpoints; unlike CAUTION: Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
qualified_name: Current dot-separated qualified procedure name,
e.g. |
| list_functionsA | List T-SQL user-defined functions on a warehouse or SQL Analytics Endpoint. Scalar UDFs (FN) and inline TVFs (IF) are preview features on Fabric DW as of mid-2026. Function DDL is supported on both Data Warehouses and SQL Analytics Endpoints. Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL Analytics Endpoint name or GUID.
schema: When provided, only functions in this schema are returned.
kind: Filter by function kind — |
| get_functionA | Fetch the full definition of a T-SQL user-defined function (schema.fn). Returns the function definition (from Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL Analytics Endpoint name or GUID.
qualified_name: Dot-separated qualified function name, e.g. |
| create_functionA | Create a new T-SQL user-defined function. Scalar UDFs and inline TVFs are preview features on Fabric DW as of mid-2026. Function DDL is supported on both Data Warehouses and SQL Analytics Endpoints. CAUTION: The body should include the parameter list, RETURNS clause, and function body
(everything that follows Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL Analytics Endpoint name or GUID.
qualified_name: Dot-separated qualified function name, e.g. |
| update_functionA | Redefine a T-SQL user-defined function via CREATE OR ALTER FUNCTION. Note: ALTER FUNCTION cannot change the function kind (e.g. scalar to inline TVF). The body must be compatible with the original function's kind. Scalar UDFs and inline TVFs are preview features on Fabric DW as of mid-2026. Function DDL is supported on both Data Warehouses and SQL Analytics Endpoints. CAUTION: Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL Analytics Endpoint name or GUID.
qualified_name: Dot-separated qualified function name, e.g. |
| transfer_functionA | Move a T-SQL user-defined function to another schema via ALTER SCHEMA TRANSFER. Function DDL is supported on both Data Warehouses and SQL Analytics Endpoints -- unlike table transfer, no endpoint guard applies here. CAUTION: Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL Analytics Endpoint name or GUID.
qualified_name: Current dot-separated qualified function name, e.g.
|
| drop_function | Drop a T-SQL user-defined function. Function DDL is supported on both Data Warehouses and SQL Analytics Endpoints. Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL Analytics Endpoint name or GUID.
qualified_name: Dot-separated qualified function name, e.g. |
| list_schemasA | List user-defined SQL schemas on a warehouse or SQL Analytics Endpoint. System schemas ( Listing schemas is a read-only operation and works on both Fabric Data Warehouses and SQL Analytics Endpoints. Args: workspace: Workspace name or GUID. item: Warehouse or SQL Analytics Endpoint name or GUID. |
| create_schemaA | Create a new SQL schema on a warehouse or SQL Analytics Endpoint. Both Fabric Data Warehouses and SQL Analytics Endpoints support
Args: workspace: Workspace name or GUID. item: Warehouse or SQL Analytics Endpoint name or GUID. name: The schema name. Must be a valid SQL identifier. |
| delete_schema | Drop a SQL schema from a warehouse. CAUTION: This is a destructive, irreversible operation. The schema will
be permanently deleted. If the schema still contains tables or views,
the operation will fail unless cascade is CAUTION: When cascade is Both Fabric Data Warehouses and SQL Analytics Endpoints support
Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL Analytics Endpoint name or GUID.
name: The schema name to drop.
cascade: When |
| list_tables | List SQL tables on a warehouse or SQL Analytics Endpoint. Args: workspace: Workspace name or GUID. item: Warehouse or SQL endpoint name or GUID. schema: When provided, only tables in this schema are returned. |
| read_table | Return up to count rows from a table as JSON-serialisable columns + rows. Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
qualified_name: Dot-separated qualified table name, e.g. |
| count_table_rows | Return the total row count of a table via Works on both Fabric Data Warehouses and SQL Analytics Endpoints. Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
qualified_name: Dot-separated qualified table name, e.g. |
| get_cluster_columns | Return the data-clustering columns of a table, ordered by clustering ordinal. Only supported on Fabric Data Warehouses. SQL Analytics Endpoints raise a
Args:
workspace: Workspace name or GUID.
item: Warehouse name or GUID.
qualified_name: Dot-separated qualified table name, e.g. |
| get_table_columns | Return column metadata for a SQL table via Works on both Fabric Data Warehouses and SQL Analytics Endpoints. Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
qualified_name: Dot-separated qualified table name, e.g. |
| create_table | Create a new SQL table via CTAS (CREATE TABLE AS SELECT). Only supported on Fabric Data Warehouses (not SQL Analytics Endpoints).
The service rejects SQL Analytics Endpoints with a CAUTION:
When Args:
workspace: Workspace name or GUID.
item: Warehouse name or GUID. SQL Analytics Endpoints are rejected.
qualified_name: Dot-separated qualified table name, e.g. |
| delete_table | Drop a SQL table. Only supported on Fabric Data Warehouses (not SQL Analytics Endpoints).
The service rejects SQL Analytics Endpoints with a CAUTION: This is a destructive, irreversible operation. The table and all its data will be permanently deleted. Confirm with the user before calling. Args:
workspace: Workspace name or GUID.
item: Warehouse name or GUID. SQL Analytics Endpoints are rejected.
qualified_name: Dot-separated qualified table name, e.g. |
| clear_tableA | Truncate a SQL table (remove all rows, keep structure). Only supported on Fabric Data Warehouses (not SQL Analytics Endpoints).
The service rejects SQL Analytics Endpoints with a CAUTION: This is a destructive, irreversible operation. All rows will be permanently deleted. The table structure and schema are preserved. Confirm with the user before calling. Args:
workspace: Workspace name or GUID.
item: Warehouse name or GUID. SQL Analytics Endpoints are rejected.
qualified_name: Dot-separated qualified table name, e.g. |
| create_empty_table | Create an empty table from an explicit column spec (DDL only, no data). Builds Server-side file access is unreliable in MCP deployments, so CSV/Parquet
inference is not available via this tool — use the Only supported on Fabric Data Warehouses (not SQL Analytics Endpoints). When Args:
workspace: Workspace name or GUID.
item: Warehouse name or GUID.
qualified_name: Dot-separated qualified table name, e.g. |
| clone_table | Create a zero-copy clone of a table using Only supported on Fabric Data Warehouses (not SQL Analytics Endpoints). Args:
workspace: Workspace name or GUID.
item: Warehouse name or GUID.
source: Qualified source table name, e.g. |
| get_table_health_metricsA | Return health metrics for a table via Only supported on SQL Analytics Endpoints (not Data Warehouses). The proc surfaces Delta/Parquet layout issues such as small files, fragmentation, excessive deletes/updates, and delayed checkpoints. The stored procedure is Generally Available (announced at Build 2026) but its output column schema is not yet documented by Microsoft. Columns and rows are passed through verbatim. Args:
workspace: Workspace name or GUID.
item: SQL Analytics Endpoint name or GUID. Data Warehouses are
rejected with a |
| rename_table | Rename a SQL table via Renames the table in-place within the same schema using T-SQL
Args:
workspace: Workspace name or GUID.
item: Warehouse name or GUID. SQL Analytics Endpoints are rejected.
qualified_name: Current dot-separated qualified table name, e.g.
|
| transfer_table | Move a SQL table to another schema via Data-Warehouse-only: transferring a table between schemas via T-SQL is
not supported on the Fabric SQL Analytics Endpoint and can break the
OneLake sync, so SQL Analytics Endpoints are rejected with a CAUTION: Permissions granted directly on the table are dropped by the engine when the schema changes. Dependent views and stored procedures that reference the table by its old schema-qualified name are NOT automatically updated and may need refreshing after the transfer. Args:
workspace: Workspace name or GUID.
item: Warehouse name or GUID. SQL Analytics Endpoints are rejected.
qualified_name: Current dot-separated qualified table name, e.g.
|
| set_cluster_columns | Change (or remove) the data-clustering columns of an existing table. Rebuilds the table via a transactional CTAS-swap:
All three steps run inside ONE transaction. Any failure rolls back automatically — no orphan temp table is left behind. CAUTION: This operation copies the full table (runtime is proportional
to table size). Dependent views and stored procedures that reference
this table by name are NOT automatically updated by Only supported on Fabric Data Warehouses (not SQL Analytics Endpoints). Args:
workspace: Workspace name or GUID.
item: Warehouse name or GUID. SQL Analytics Endpoints are rejected.
qualified_name: Dot-separated qualified table name, e.g. |
| load_table_from_url | Load data into a Data Warehouse table via Supported file types: For OneLake or same-tenant URLs, no credential is needed. For secured
external URLs (Azure Blob Storage SAS, etc.), supply CAUTION: This operation loads data into the target table. Confirm the source URL and target table before calling. Note: Args:
workspace: Workspace name or GUID.
item: Warehouse name or GUID. SQL Analytics Endpoints are rejected.
qualified_name: Dot-separated qualified table name, e.g. |
| import_table_from_url | Load data into an existing Data Warehouse table via The target table must already exist and have a compatible schema.
For auto-create with schema inference from local files, use the CLI
Supported file types: For OneLake or same-tenant URLs, no credential is needed. For secured
external URLs supply CAUTION: Note: Args:
workspace: Workspace name or GUID.
item: Warehouse name or GUID. SQL Analytics Endpoints are rejected.
qualified_name: Dot-separated qualified table name, e.g. |
| list_statistics | List statistics on a warehouse or SQL Analytics Endpoint. Both Data Warehouses and SQL Analytics Endpoints are supported. Args: workspace: Workspace name or GUID. item: Warehouse or SQL endpoint name or GUID. schema: When provided, only statistics on tables in this schema are returned. table: When provided, only statistics on this table (unqualified name) are returned. user_only: When True, only user-created statistics are returned. auto_only: When True, only auto-created statistics are returned. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sdebruyn/fabric-dw-mcp-cli'
If you have feedback or need assistance with the MCP directory API, please join our Discord server