ms-fabric-mcp-server

v0.8.7
ms-fabric-mcp-server Checked 2 hours ago Published 3 months ago

Model Context Protocol (MCP) server for Microsoft Fabric - exposes Fabric operations as MCP tools for AI agents

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

list_workspaces List Workspaces

List all accessible Fabric workspaces. Returns a list of all workspaces the authenticated user has access to, including workspace ID, name, description, type, state, and capacity ID. Parameters: None Returns: Dictionary with status, workspace_count, and list of workspaces. Each workspace contains: id, display_name, description, type, state, capacity_id. Example: ```python result = list_workspaces() ```

list_items List Items in Workspace

List all items in a Fabric workspace, optionally filtered by type. Returns all items in the specified workspace. If item_type is provided, only items of that type are returned. Supported types include: Notebook, Lakehouse, Warehouse, Pipeline, DataPipeline, Report, SemanticModel, Dashboard, Dataflow, Dataset, and 40+ other Fabric item types.

ParameterTypeDescription
workspace_name *stringThe display name of the workspace.
item_typeOptional item type filter (e.g., "Notebook", "Lakehouse"). If not provided, all items are returned.
recursivebooleanWhether to include items in subfolders (default True).
root_folder_idOptional folder ID to scope the listing.
root_folder_pathOptional folder path to scope the listing (e.g., "team/etl"). Defaults to the workspace root when omitted.

get_item Get Item

Get a Fabric item by ID or display name/type.

ParameterTypeDescription
workspace_name *stringThe display name of the workspace.
item_idID of the item to fetch.
item_nameDisplay name of the item to fetch.
item_typeType of the item when using display name.

list_folders List Folders

List folders in a Fabric workspace.

ParameterTypeDescription
workspace_name *stringThe display name of the workspace.
recursivebooleanWhether to include folders in subfolders (default True).
root_folder_idOptional folder ID to scope the listing.
root_folder_pathOptional folder path to scope the listing (e.g., "team/etl"). Defaults to the workspace root when omitted.

create_folder Create Folder

Create a folder in a Fabric workspace.

ParameterTypeDescription
folder_name *stringDisplay name for the new folder.
workspace_name *stringThe display name of the workspace.
parent_folder_idOptional parent folder ID.
parent_folder_pathOptional parent folder path (creates missing parents).

move_folder Move Folder

Move a folder to a new parent.

ParameterTypeDescription
folder_id *stringFolder ID to move.
workspace_name *stringThe display name of the workspace.
target_folder_idTarget parent folder ID. Use "root" or omit to move to workspace root.
target_folder_pathTarget parent folder path (must exist).

delete_folder Delete Folder

Delete a folder from a workspace.

ParameterTypeDescription
workspace_name *stringThe display name of the workspace.
folder_idFolder ID to delete.
folder_pathFolder path to delete (e.g., "team/etl").

create_lakehouse Create Lakehouse

Create a lakehouse in a Fabric workspace.

ParameterTypeDescription
lakehouse_name *stringDisplay name for the new lakehouse.
workspace_name *stringThe display name of the workspace.
descriptionOptional description for the lakehouse.
enable_schemasbooleanWhether to enable schemas (default: True).

delete_item Delete Item from Workspace

Delete an item from a Fabric workspace. Deletes the specified item from the workspace. The item is identified by its display name and type. Common item types include: Notebook, Lakehouse, Warehouse, Pipeline, Report, SemanticModel, Dashboard, etc.

ParameterTypeDescription
item_name *stringName of the item to delete.
item_type *stringType of the item to delete (e.g., "Notebook", "Lakehouse"). Supported types: Notebook, Lakehouse, Warehouse, Pipeline, DataPipeline, Report, SemanticModel, Dashboard, DataAgent, Data…
workspace_name *stringThe display name of the workspace.

rename_item Rename Item

Rename an item in a Fabric workspace.

ParameterTypeDescription
item_id *stringID of the item to rename.
new_display_name *stringNew display name for the item.
workspace_name *stringThe display name of the workspace.
descriptionOptional description to update.

move_item_to_folder Move Item to Folder

Move an item to a folder in a Fabric workspace.

ParameterTypeDescription
item_id *stringID of the item to move.
workspace_name *stringThe display name of the workspace.
target_folder_idFolder ID to move the item into. Use "root" or omit to move to workspace root.
target_folder_pathFolder path to move the item into. Omit to move to root.

create_notebook Create Notebook

Create a notebook in a Fabric workspace.

ParameterTypeDescription
notebook_name *stringDesired name inside Fabric (no folder separators).
workspace_name *stringThe display name of the target workspace.
default_lakehouse_nameOptional default lakehouse to attach.
descriptionOptional description for the notebook.
folder_pathOptional folder path (e.g., "demos/etl") to place the notebook. Defaults to the workspace root when omitted.
lakehouse_workspace_nameOptional workspace name for the lakehouse.
notebook_contentNotebook definition in ipynb JSON format. Mutually exclusive with *notebook_file_path*.
notebook_file_pathLocal file path to a .ipynb file on disk. Mutually exclusive with *notebook_content*.

get_notebook_definition Get Notebook Definition

Get the notebook definition (ipynb content). When *save_to_path* is provided the notebook content is written to that local file and a lightweight ``{"file_path": ..., "size_bytes": ...}`` dict is returned instead of the full notebook JSON. This keeps large notebooks out of the LLM context.

ParameterTypeDescription
notebook_name *string
workspace_name *string
save_to_path

update_notebook_definition Update Notebook Definition

Update notebook definition in Fabric. If notebook_content is omitted, the existing notebook definition is loaded and only metadata changes (e.g., default lakehouse) are applied. Content can be supplied inline via *notebook_content* or read from a local file via *notebook_file_path* (mutually exclusive).

ParameterTypeDescription
notebook_name *string
workspace_name *string
default_lakehouse_name
lakehouse_workspace_name
notebook_content
notebook_file_path

get_notebook_run_details Get Notebook Run Details

Get detailed run information for a notebook job instance. Retrieves execution metadata from the Fabric Notebook Livy Sessions API, which provides detailed timing, resource usage, and execution state information. **Use this tool when:** - You want to check the status and timing of a completed notebook run - You need to verify resource allocation for a notebook execution - You want to analyze execution performance (queue time, run time) **Note:** This method returns execution metadata (timing, state, resource usage). Cell-level outputs are only available for active sessions. Once a notebook j…

ParameterTypeDescription
job_instance_id *stringThe job instance ID from execute_notebook or run_on_demand_job result.
notebook_name *stringName of the notebook.
workspace_name *stringThe display name of the workspace containing the notebook.

list_notebook_runs List Notebook Runs

List all Livy sessions (run history) for a notebook. Retrieves a list of all Livy sessions associated with a notebook, providing an execution history with job instance IDs, states, and timing information. **Use this tool when:** - You want to see the execution history of a notebook - You need to find a job instance ID for a past execution - You want to analyze execution patterns over time

ParameterTypeDescription
notebook_name *stringName of the notebook.
workspace_name *stringThe display name of the workspace containing the notebook.
limitOptional maximum number of sessions to return.

get_notebook_driver_logs Get Notebook Driver Logs

Get Spark driver logs for a notebook execution. Retrieves the driver logs (stdout or stderr) from a completed notebook run. This is particularly useful for getting detailed error messages and Python tracebacks when a notebook fails. **Important Notes**: - Python exceptions and tracebacks appear in `stdout`, not `stderr` - `stderr` contains Spark/system logs (typically larger) - For failed notebooks, check `stdout` first for the Python error - Logs can be briefly unavailable after completion; transient 404s are retried before returning an error - Look for "Error", "Exception", "Traceback" i…

ParameterTypeDescription
job_instance_id *stringThe job instance ID from execute_notebook or run_on_demand_job result.
notebook_name *stringName of the notebook.
workspace_name *stringThe display name of the workspace containing the notebook.
log_typestringType of log to retrieve - "stdout" (default) or "stderr". Use "stdout" for Python errors and print statements. Use "stderr" for Spark/system logs.
max_linesMaximum number of lines to return (default: 500, None for all). Returns the last N lines (most recent, where errors typically are).

run_on_demand_job Run On-Demand Job

Run an on-demand job for a Fabric item. Executes a job for the specified item. Common job types include: - RunNotebook: Execute a notebook - Pipeline: Run a data pipeline - DefaultJob: Default job type for the item The job runs asynchronously. Use get_job_status or get_job_status_by_url to check the job's progress and result.

ParameterTypeDescription
item_name *stringName of the item to run job for.
item_type *stringType of the item (Notebook, Pipeline, Lakehouse, Warehouse, etc.).
job_type *stringType of job to run (RunNotebook, DefaultJob, Pipeline, etc.).
workspace_name *stringThe display name of the workspace.
execution_dataOptional execution data payload for the job (e.g., notebook parameters).

get_job_status Get Job Status

Get status of a specific job instance. Retrieves the current status and details of a running or completed job. The job state includes: NotStarted, InProgress, Completed, Failed, Cancelled.

ParameterTypeDescription
item_name *stringName of the item.
item_type *stringType of the item (Notebook, Pipeline, etc.).
job_instance_id *stringID of the job instance to check.
workspace_name *stringThe display name of the workspace.

get_job_status_by_url Get Job Status by URL

Get job status using the location URL from run_on_demand_job. Retrieves job status using the location URL returned when the job was created. This is convenient when you have the location URL but not the individual workspace/item/job identifiers.

ParameterTypeDescription
location_url *stringThe location URL returned from job creation.

get_operation_result Get Operation Result

Get the result of a long-running operation. Retrieves the result of an asynchronous operation using its operation ID. Operation IDs are typically returned in the x-ms-operation-id header from API calls that return 202 Accepted responses.

ParameterTypeDescription
operation_id *stringThe operation ID (from x-ms-operation-id header).

livy_create_session Create Livy Session

Create a new Livy session for Spark code execution. Creates a Spark session for executing PySpark, Scala, or SparkR code. Session creation can take 6+ minutes on first startup as Spark initializes. Returns immediately after submitting the session creation request. Use livy_get_session_status to poll until the session state becomes 'idle'.

ParameterTypeDescription
lakehouse_id *stringFabric lakehouse ID (use list_items tool with item_type="Lakehouse").
workspace_id *stringFabric workspace ID (use list_workspaces tool to find by name).
confOptional Spark configuration as key-value pairs (e.g., {"spark.executor.memory": "4g"}).
environment_idOptional Fabric environment ID for pre-installed libraries.
kindstringSession kind - 'pyspark' (default), 'scala', or 'sparkr'.

livy_list_sessions List Livy Sessions

List all Livy sessions in a workspace/lakehouse. Retrieves all active Livy sessions for the specified workspace and lakehouse, including session IDs, states, and configuration details.

ParameterTypeDescription
lakehouse_id *stringFabric lakehouse ID.
workspace_id *stringFabric workspace ID.

livy_get_session_status Get Livy Session Status

Get the current status and details of a Livy session. Retrieves detailed information about a session including its state, Spark application details, and configuration. Use this to check session health and readiness. Session States: - 'not_started': Session created but not yet started - 'starting': Session is initializing - 'idle': Session is ready to accept statements - 'busy': Session is currently executing a statement - 'shutting_down': Session is terminating - 'error': Session encountered an error - 'dead': Session has terminated - 'killed': Session was forcefully terminated - 'success':…

ParameterTypeDescription
lakehouse_id *stringFabric lakehouse ID.
session_id *stringLivy session ID to check.
workspace_id *stringFabric workspace ID.

livy_close_session Close Livy Session

Close (terminate) a Livy session. Terminates the specified Livy session and releases its resources. Any running statements will be cancelled.

ParameterTypeDescription
lakehouse_id *stringFabric lakehouse ID.
session_id *stringLivy session ID to close.
workspace_id *stringFabric workspace ID.

livy_run_statement Run Livy Statement

Execute code in a Livy session. Executes PySpark, Scala, or SparkR code in an existing Livy session. The session must be in 'idle' state to accept new statements. **Important Notes**: - Returns immediately with the statement ID; poll `livy_get_statement_status` for completion and output - Use df.show() or df.printSchema() to inspect DataFrames before accessing columns - SHOW TABLES returns 'namespace' column, not 'database' in Fabric - Avoid direct Row attribute access without schema verification - Provide real newline…

ParameterTypeDescription
code *string
lakehouse_id *string
session_id *string
workspace_id *string
kindstring

livy_get_statement_status Get Livy Statement Status

Get the current status and output of a Livy statement. Retrieves the status, output, and execution details of a statement. Use this for manual status checking without auto-polling. Statement States: - 'waiting': Statement is queued for execution - 'running': Statement is currently executing - 'available': Statement completed successfully - 'error': Statement encountered an error - 'cancelling': Statement is being cancelled - 'cancelled': Statement was cancelled

ParameterTypeDescription
lakehouse_id *stringFabric lakehouse ID.
session_id *stringLivy session ID.
statement_id *stringStatement ID to check.
workspace_id *stringFabric workspace ID.

livy_cancel_statement Cancel Livy Statement

Cancel a running Livy statement without killing the session. Cancels a statement that is currently 'waiting' or 'running'. The statement will transition to 'cancelling' then 'cancelled' state. The session remains available for new statements. **Note**: Only works on statements in 'waiting' or 'running' state.

ParameterTypeDescription
lakehouse_id *stringFabric lakehouse ID.
session_id *stringLivy session ID.
statement_id *stringStatement ID to cancel.
workspace_id *stringFabric workspace ID.

livy_get_session_log Get Livy Session Log

Fetch incremental Livy driver logs for a session. Retrieves Spark driver logs for debugging session startup issues or statement problems. Supports incremental reads with start/size parameters for paging through logs. **Use Cases**: - Debugging session startup issues - Troubleshooting failed statements - Investigating Spark driver problems - Monitoring session health **Note**: Returns driver-side logs only, not executor logs.

ParameterTypeDescription
lakehouse_id *stringFabric lakehouse ID.
session_id *stringLivy session ID.
workspace_id *stringFabric workspace ID.
sizeintegerNumber of bytes to retrieve (default: 500).
startintegerStarting byte offset (default: 0).

create_pipeline Create Pipeline

Create a Fabric pipeline. Creates either a blank pipeline (when no definition is provided) or a pipeline based on a supplied definition.

ParameterTypeDescription
pipeline_name *stringName for the new pipeline (must be unique in workspace).
workspace_name *stringThe display name of the workspace where the pipeline will be created.
descriptionOptional description for the pipeline.
folder_pathOptional folder path (e.g., "pipelines/daily") to place the pipeline. Defaults to the workspace root when omitted.
pipeline_content_jsonOptional pipeline definition JSON.
pipeline_file_pathOptional local file path to a pipeline JSON file. Mutually exclusive with *pipeline_content_json*.
platformOptional .platform JSON definition.

add_copy_activity_to_pipeline Add Copy Activity to Pipeline

Add a Copy Activity to an existing Fabric pipeline. Retrieves an existing pipeline, adds a Copy Activity to it, and updates the pipeline definition. The Copy Activity will be appended to any existing activities in the pipeline. **Use this tool when:** - You have an existing pipeline and want to add a new Copy Activity - You're building complex pipelines with multiple data copy operations - You want to incrementally build a pipeline

ParameterTypeDescription
destination_connection_id *stringFabric workspace connection ID for destination Lakehouse.
destination_lakehouse_id *stringWorkspace artifact ID of the destination Lakehouse.
destination_table_name *stringName for the destination table in Lakehouse.
pipeline_name *stringName of the existing pipeline to update.
source_connection_id *stringFabric workspace connection ID for source database. For `source_access_mode="sql"` with `LakehouseTableSource`, use a Lakehouse connection ID (not a SQL analytics endpoint connection).
source_table_name *stringName of the source table (e.g., "movie").
source_table_schema *stringSchema name of the source table (e.g., "public", "dbo").
source_type *stringType of source (e.g., "AzurePostgreSqlSource", "AzureSqlSource", "SqlServerSource").
workspace_name *stringThe display name of the workspace containing the pipeline.
activity_nameOptional custom name for the activity (default: auto-generated).
apply_v_orderbooleanApply V-Order optimization (default: True).
destination_table_schemastringSchema for the destination Lakehouse table (default: "dbo"). For schema-enabled Lakehouses targeting a medallion layer (e.g. bronze/silver/gold), pass the layer name explicitly. The schema must alread…
retryintegerNumber of retry attempts (default: 0).
retry_interval_secondsintegerRetry interval in seconds (default: 30).
source_access_modestringSource access mode ("direct" or "sql"). Default is "direct".
source_sql_queryOptional SQL query for sql access mode.
table_action_optionstringTable action option (default: "Append", options: "Append", "Overwrite").
timeoutstringActivity timeout (default: "0.12:00:00").

add_notebook_activity_to_pipeline Add Notebook Activity to Pipeline

Add a Notebook Activity to an existing Fabric pipeline. Retrieves an existing pipeline, adds a Notebook Activity to it, and updates the pipeline definition. The Notebook Activity will be appended to any existing activities in the pipeline. **Use this tool when:** - You have an existing pipeline and want to add a new Notebook Activity - You're building complex pipelines with multiple activities - You want to incrementally build a pipeline

ParameterTypeDescription
notebook_name *stringName of the notebook to run.
pipeline_name *stringName of the existing pipeline to update.
workspace_name *stringThe display name of the workspace containing the pipeline.
activity_nameOptional custom name for the activity (default: auto-generated).
depends_on_activity_nameOptional name of an existing activity this one depends on.
notebook_workspace_nameOptional name of the workspace containing the notebook.
parametersOptional parameters to pass to the notebook.
retryintegerNumber of retry attempts (default: 0).
retry_interval_secondsintegerRetry interval in seconds (default: 30).
session_tagOptional session tag for the notebook execution.
timeoutstringActivity timeout (default: "0.12:00:00").

add_dataflow_activity_to_pipeline Add Dataflow Activity to Pipeline

Add a Dataflow Activity to an existing Fabric pipeline. Retrieves an existing pipeline, adds a Dataflow Activity to it, and updates the pipeline definition. The Dataflow Activity will be appended to any existing activities in the pipeline. **Use this tool when:** - You have an existing pipeline and want to add a new Dataflow Activity - You're building complex pipelines with multiple activities - You want to incrementally build a pipeline

ParameterTypeDescription
dataflow_name *stringName of the Dataflow to run.
pipeline_name *stringName of the existing pipeline to update.
workspace_name *stringThe display name of the workspace containing the pipeline.
activity_nameOptional custom name for the activity (default: auto-generated).
dataflow_workspace_nameOptional name of the workspace containing the Dataflow.
depends_on_activity_nameOptional name of an existing activity this one depends on.
retryintegerNumber of retry attempts (default: 0).
retry_interval_secondsintegerRetry interval in seconds (default: 30).
timeoutstringActivity timeout (default: "0.12:00:00").

add_activity_to_pipeline Add Activity to Pipeline from JSON

Add a generic activity to an existing Fabric pipeline from a JSON template. Retrieves an existing pipeline, adds an activity from the provided JSON template, and updates the pipeline definition. This is a more general-purpose tool compared to add_copy_activity_to_pipeline, allowing you to add any type of Fabric pipeline activity by providing its complete JSON definition. **Use this tool when:** - You have a custom activity JSON template to add - You want to add activity types beyond Copy (e.g., Notebook, Script, Web, etc.) - You need full control over the activity definition - You're working…

ParameterTypeDescription
activity_json *objectComplete JSON dictionary representing the activity definition. Must include "name", "type", and all required properties.
pipeline_name *stringName of the existing pipeline to update.
workspace_name *stringThe display name of the workspace containing the pipeline.

get_pipeline_definition Get Pipeline Definition

Get a Fabric pipeline definition (decoded JSON).

ParameterTypeDescription
pipeline_name *stringName of the pipeline.
workspace_name *stringThe display name of the workspace containing the pipeline.
formatOptional format hint for the definition (pass-through).
save_to_pathOptional local file path. When provided, the definition is written to this file and a lightweight metadata dict is returned.

update_pipeline_definition Update Pipeline Definition

Update a Fabric pipeline definition (decoded JSON input).

ParameterTypeDescription
pipeline_name *stringName of the pipeline.
workspace_name *stringThe display name of the workspace containing the pipeline.
pipeline_content_jsonPipeline definition JSON to upload. Mutually exclusive with *pipeline_file_path*.
pipeline_file_pathLocal file path to a pipeline JSON file. Mutually exclusive with *pipeline_content_json*.
platformOptional .platform JSON definition.
update_metadatabooleanWhether to apply metadata updates (requires platform).

add_activity_dependency Add Activity Dependency

Add dependsOn dependencies to a pipeline activity.

ParameterTypeDescription
activity_name *stringName of the activity to update.
depends_on *arrayList of activity names this activity depends on.
pipeline_name *stringName of the pipeline.
workspace_name *stringThe display name of the workspace containing the pipeline.

delete_activity_from_pipeline Delete Activity from Pipeline

Delete an activity from an existing Fabric pipeline. Removes the specified activity from the pipeline definition. This will fail if any other activity depends on it. Use remove_activity_dependency to remove dependencies first.

ParameterTypeDescription
activity_name *stringName of the activity to delete.
pipeline_name *stringName of the existing pipeline to update.
workspace_name *stringThe display name of the workspace containing the pipeline.

remove_activity_dependency Remove Activity Dependency

Remove dependsOn references to a target activity. Removes dependsOn edges pointing to the target activity. If from_activity_name is provided, only removes edges from that activity.

ParameterTypeDescription
activity_name *stringName of the activity being depended on.
pipeline_name *stringName of the existing pipeline to update.
workspace_name *stringThe display name of the workspace containing the pipeline.
from_activity_nameOptional activity to remove dependencies from.

get_pipeline_activity_runs Get Pipeline Activity Runs

Get activity runs for a pipeline job execution. Retrieves per-activity execution details for a given pipeline run, including timing, status, and output metrics (row counts for Copy activities). **Use this tool when:** - A pipeline run completed and you need to see which activities succeeded/failed - You want to diagnose why a pipeline failed by examining activity errors - You need row counts or timing details for Copy activities

ParameterTypeDescription
job_instance_id *stringThe job instance ID from run_on_demand_job or get_job_status.
workspace_name *stringThe display name of the workspace containing the pipeline.
activity_nameOptional filter to a specific activity by name.
status_filterOptional filter by status: "Succeeded", "Failed", "InProgress", "Cancelled".

create_dataflow Create Dataflow

Create a Dataflow Gen2 item with Power Query M code. Creates a new Dataflow Gen2 in the specified workspace with the provided Power Query M code. The dataflow can transform data from various sources. **Use this tool when:** - You need to create a new dataflow for data transformation - You want to define Power Query M transformations programmatically - You're building ETL pipelines that require Power Query logic Parameters: workspace_name: The display name of the target workspace. dataflow_name: Display name for…

ParameterTypeDescription
dataflow_name *string
workspace_name *string
dataflow_file_path
description
folder_path
mashup_content
query_metadata

get_dataflow_definition Get Dataflow Definition

Retrieve the full definition of an existing dataflow. Gets the Power Query M code and query metadata for an existing Dataflow Gen2 item. **Use this tool when:** - You need to inspect the current definition of a dataflow - You want to understand what transformations a dataflow performs - You're troubleshooting or modifying an existing dataflow

ParameterTypeDescription
dataflow_name *stringName of the dataflow to retrieve.
workspace_name *stringThe display name of the workspace containing the dataflow.
save_to_pathOptional local file path. When provided, the definition is written to this file and a lightweight metadata dict is returned.

run_dataflow Run Dataflow

Trigger an on-demand dataflow refresh. Starts a dataflow refresh job using the dedicated Dataflow Execute API. The job runs asynchronously; use get_job_status_by_url to poll for completion. **Use this tool when:** - You need to manually trigger a dataflow refresh - You want to run a dataflow as part of an orchestration workflow - You need to test dataflow execution

ParameterTypeDescription
dataflow_name *stringName of the dataflow to run.
workspace_name *stringThe display name of the workspace containing the dataflow.
execution_dataOptional parameters for parameterized dataflows.

create_semantic_model Create Semantic Model

Create an empty Fabric semantic model.

ParameterTypeDescription
semantic_model_name *stringName for the semantic model (no folder separators).
workspace_name *stringThe display name of the workspace.
folder_pathOptional folder path (e.g., "models/finance") to place the model. Defaults to the workspace root when omitted.

add_table_to_semantic_model Add Table to Semantic Model

Add a table from a lakehouse to an existing semantic model.

ParameterTypeDescription
columns *arrayColumn definitions for the table.
lakehouse_name *stringName of the source lakehouse.
semantic_model_name *stringName of the semantic model to update.
table_name *stringSource table name (unqualified when table_schema is provided).
workspace_name *stringThe display name of the workspace.
model_table_nameOptional table name to use in the semantic model.
table_schemaOptional schema name for the source table.

add_measures_to_semantic_model Add Measures to Semantic Model

Add measures to a table in an existing semantic model.

ParameterTypeDescription
measures *array
table_name *string
workspace_name *string
semantic_model_id
semantic_model_name

delete_table_from_semantic_model Delete Table from Semantic Model

Delete a table from a semantic model.

ParameterTypeDescription
table_name *stringName of the table to delete.
workspace_name *stringThe display name of the workspace.
remove_relationshipsbooleanRemove relationships that reference the table.
semantic_model_idSemantic model ID (optional).
semantic_model_nameName of the semantic model to update.

delete_relationship_from_semantic_model Delete Relationship from Semantic Model

Delete relationship(s) from a semantic model.

ParameterTypeDescription
workspace_name *string
from_column
from_table
relationship_name
semantic_model_id
semantic_model_name
to_column
to_table

delete_measures_from_semantic_model Delete Measures from Semantic Model

Delete measures from a table in an existing semantic model.

ParameterTypeDescription
measure_names *array
table_name *string
workspace_name *string
semantic_model_id
semantic_model_name

get_semantic_model_details Get Semantic Model Details

Get semantic model metadata by name or ID.

ParameterTypeDescription
workspace_name *string
semantic_model_id
semantic_model_name

get_semantic_model_definition Get Semantic Model Definition

Get semantic model definition parts in the requested format.

ParameterTypeDescription
workspace_name *string
decode_model_bimboolean
formatstring
save_to_path
semantic_model_id
semantic_model_name

update_semantic_model_definition Update Semantic Model Definition

Update a semantic model definition.

ParameterTypeDescription
workspace_name *stringThe display name of the workspace.
definitionDefinition dict to upload. Mutually exclusive with *definition_file_path*.
definition_file_pathLocal file path to a definition JSON file. Mutually exclusive with *definition*.
semantic_model_idID of the semantic model (optional if name provided).
semantic_model_nameName of the semantic model (optional if ID provided).

add_relationship_to_semantic_model Add Relationship to Semantic Model

Add a relationship between two tables in an existing semantic model.

ParameterTypeDescription
from_column *string
from_table *string
semantic_model_name *string
to_column *string
to_table *string
workspace_name *string
cardinalitystring
cross_filter_directionstring
is_activeboolean

refresh_semantic_model Refresh Semantic Model

Refresh a semantic model and wait for completion.

ParameterTypeDescription
workspace_name *string
objects
refresh_type
semantic_model_id
semantic_model_name

execute_dax_query Execute DAX Query

Execute a DAX query and return the raw Power BI response.

ParameterTypeDescription
query *string
workspace_name *string
semantic_model_id
semantic_model_name

list_lakehouse_files List Lakehouse Files

List files from a lakehouse Files area.

ParameterTypeDescription
workspace_name *stringDisplay name of the workspace.
lakehouse_idID of the lakehouse (optional).
lakehouse_nameDisplay name of the lakehouse (required if lakehouse_id not provided).
pathOptional path under Files to list (e.g., "raw/2025"). This tool does not support the Tables area.
recursivebooleanWhether to list files recursively (default True).

upload_lakehouse_file Upload Lakehouse File

Upload a local file into a lakehouse Files area.

ParameterTypeDescription
workspace_name *stringDisplay name of the workspace.
create_missing_directoriesbooleanCreate missing directories (default True).
destination_pathDestination path under Files. Defaults to local file name.
lakehouse_idID of the lakehouse (optional).
lakehouse_nameDisplay name of the lakehouse (required if lakehouse_id not provided).
local_file_pathstringPath to the local file to upload.

delete_lakehouse_file Delete Lakehouse File

Delete a file or directory from a lakehouse Files area.

ParameterTypeDescription
workspace_name *stringDisplay name of the workspace.
lakehouse_idID of the lakehouse (optional).
lakehouse_nameDisplay name of the lakehouse (required if lakehouse_id not provided).
pathstringFile or directory path under Files to delete.
recursivebooleanDelete recursively when path is a directory (default False).