ms-fabric-mcp-server
v0.8.7Model 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.
| Parameter | Type | Description |
|---|---|---|
workspace_name * | string | The display name of the workspace. |
item_type | Optional item type filter (e.g., "Notebook", "Lakehouse"). If not provided, all items are returned. | |
recursive | boolean | Whether to include items in subfolders (default True). |
root_folder_id | Optional folder ID to scope the listing. | |
root_folder_path | Optional 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.
| Parameter | Type | Description |
|---|---|---|
workspace_name * | string | The display name of the workspace. |
item_id | ID of the item to fetch. | |
item_name | Display name of the item to fetch. | |
item_type | Type of the item when using display name. |
list_folders List Folders
List folders in a Fabric workspace.
| Parameter | Type | Description |
|---|---|---|
workspace_name * | string | The display name of the workspace. |
recursive | boolean | Whether to include folders in subfolders (default True). |
root_folder_id | Optional folder ID to scope the listing. | |
root_folder_path | Optional 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.
| Parameter | Type | Description |
|---|---|---|
folder_name * | string | Display name for the new folder. |
workspace_name * | string | The display name of the workspace. |
parent_folder_id | Optional parent folder ID. | |
parent_folder_path | Optional parent folder path (creates missing parents). |
move_folder Move Folder
Move a folder to a new parent.
| Parameter | Type | Description |
|---|---|---|
folder_id * | string | Folder ID to move. |
workspace_name * | string | The display name of the workspace. |
target_folder_id | Target parent folder ID. Use "root" or omit to move to workspace root. | |
target_folder_path | Target parent folder path (must exist). |
delete_folder Delete Folder
Delete a folder from a workspace.
| Parameter | Type | Description |
|---|---|---|
workspace_name * | string | The display name of the workspace. |
folder_id | Folder ID to delete. | |
folder_path | Folder path to delete (e.g., "team/etl"). |
create_lakehouse Create Lakehouse
Create a lakehouse in a Fabric workspace.
| Parameter | Type | Description |
|---|---|---|
lakehouse_name * | string | Display name for the new lakehouse. |
workspace_name * | string | The display name of the workspace. |
description | Optional description for the lakehouse. | |
enable_schemas | boolean | Whether 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.
| Parameter | Type | Description |
|---|---|---|
item_name * | string | Name of the item to delete. |
item_type * | string | Type of the item to delete (e.g., "Notebook", "Lakehouse"). Supported types: Notebook, Lakehouse, Warehouse, Pipeline, DataPipeline, Report, SemanticModel, Dashboard, DataAgent, Data… |
workspace_name * | string | The display name of the workspace. |
rename_item Rename Item
Rename an item in a Fabric workspace.
| Parameter | Type | Description |
|---|---|---|
item_id * | string | ID of the item to rename. |
new_display_name * | string | New display name for the item. |
workspace_name * | string | The display name of the workspace. |
description | Optional description to update. |
move_item_to_folder Move Item to Folder
Move an item to a folder in a Fabric workspace.
| Parameter | Type | Description |
|---|---|---|
item_id * | string | ID of the item to move. |
workspace_name * | string | The display name of the workspace. |
target_folder_id | Folder ID to move the item into. Use "root" or omit to move to workspace root. | |
target_folder_path | Folder path to move the item into. Omit to move to root. |
create_notebook Create Notebook
Create a notebook in a Fabric workspace.
| Parameter | Type | Description |
|---|---|---|
notebook_name * | string | Desired name inside Fabric (no folder separators). |
workspace_name * | string | The display name of the target workspace. |
default_lakehouse_name | Optional default lakehouse to attach. | |
description | Optional description for the notebook. | |
folder_path | Optional folder path (e.g., "demos/etl") to place the notebook. Defaults to the workspace root when omitted. | |
lakehouse_workspace_name | Optional workspace name for the lakehouse. | |
notebook_content | Notebook definition in ipynb JSON format. Mutually exclusive with *notebook_file_path*. | |
notebook_file_path | Local 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.
| Parameter | Type | Description |
|---|---|---|
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).
| Parameter | Type | Description |
|---|---|---|
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…
| Parameter | Type | Description |
|---|---|---|
job_instance_id * | string | The job instance ID from execute_notebook or run_on_demand_job result. |
notebook_name * | string | Name of the notebook. |
workspace_name * | string | The 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
| Parameter | Type | Description |
|---|---|---|
notebook_name * | string | Name of the notebook. |
workspace_name * | string | The display name of the workspace containing the notebook. |
limit | Optional 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…
| Parameter | Type | Description |
|---|---|---|
job_instance_id * | string | The job instance ID from execute_notebook or run_on_demand_job result. |
notebook_name * | string | Name of the notebook. |
workspace_name * | string | The display name of the workspace containing the notebook. |
log_type | string | Type of log to retrieve - "stdout" (default) or "stderr". Use "stdout" for Python errors and print statements. Use "stderr" for Spark/system logs. |
max_lines | Maximum 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.
| Parameter | Type | Description |
|---|---|---|
item_name * | string | Name of the item to run job for. |
item_type * | string | Type of the item (Notebook, Pipeline, Lakehouse, Warehouse, etc.). |
job_type * | string | Type of job to run (RunNotebook, DefaultJob, Pipeline, etc.). |
workspace_name * | string | The display name of the workspace. |
execution_data | Optional 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.
| Parameter | Type | Description |
|---|---|---|
item_name * | string | Name of the item. |
item_type * | string | Type of the item (Notebook, Pipeline, etc.). |
job_instance_id * | string | ID of the job instance to check. |
workspace_name * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
location_url * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
operation_id * | string | The 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'.
| Parameter | Type | Description |
|---|---|---|
lakehouse_id * | string | Fabric lakehouse ID (use list_items tool with item_type="Lakehouse"). |
workspace_id * | string | Fabric workspace ID (use list_workspaces tool to find by name). |
conf | Optional Spark configuration as key-value pairs (e.g., {"spark.executor.memory": "4g"}). | |
environment_id | Optional Fabric environment ID for pre-installed libraries. | |
kind | string | Session 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.
| Parameter | Type | Description |
|---|---|---|
lakehouse_id * | string | Fabric lakehouse ID. |
workspace_id * | string | Fabric 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':…
| Parameter | Type | Description |
|---|---|---|
lakehouse_id * | string | Fabric lakehouse ID. |
session_id * | string | Livy session ID to check. |
workspace_id * | string | Fabric 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.
| Parameter | Type | Description |
|---|---|---|
lakehouse_id * | string | Fabric lakehouse ID. |
session_id * | string | Livy session ID to close. |
workspace_id * | string | Fabric 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…
| Parameter | Type | Description |
|---|---|---|
code * | string | |
lakehouse_id * | string | |
session_id * | string | |
workspace_id * | string | |
kind | string |
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
| Parameter | Type | Description |
|---|---|---|
lakehouse_id * | string | Fabric lakehouse ID. |
session_id * | string | Livy session ID. |
statement_id * | string | Statement ID to check. |
workspace_id * | string | Fabric 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.
| Parameter | Type | Description |
|---|---|---|
lakehouse_id * | string | Fabric lakehouse ID. |
session_id * | string | Livy session ID. |
statement_id * | string | Statement ID to cancel. |
workspace_id * | string | Fabric 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.
| Parameter | Type | Description |
|---|---|---|
lakehouse_id * | string | Fabric lakehouse ID. |
session_id * | string | Livy session ID. |
workspace_id * | string | Fabric workspace ID. |
size | integer | Number of bytes to retrieve (default: 500). |
start | integer | Starting 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.
| Parameter | Type | Description |
|---|---|---|
pipeline_name * | string | Name for the new pipeline (must be unique in workspace). |
workspace_name * | string | The display name of the workspace where the pipeline will be created. |
description | Optional description for the pipeline. | |
folder_path | Optional folder path (e.g., "pipelines/daily") to place the pipeline. Defaults to the workspace root when omitted. | |
pipeline_content_json | Optional pipeline definition JSON. | |
pipeline_file_path | Optional local file path to a pipeline JSON file. Mutually exclusive with *pipeline_content_json*. | |
platform | Optional .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
| Parameter | Type | Description |
|---|---|---|
destination_connection_id * | string | Fabric workspace connection ID for destination Lakehouse. |
destination_lakehouse_id * | string | Workspace artifact ID of the destination Lakehouse. |
destination_table_name * | string | Name for the destination table in Lakehouse. |
pipeline_name * | string | Name of the existing pipeline to update. |
source_connection_id * | string | Fabric 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 * | string | Name of the source table (e.g., "movie"). |
source_table_schema * | string | Schema name of the source table (e.g., "public", "dbo"). |
source_type * | string | Type of source (e.g., "AzurePostgreSqlSource", "AzureSqlSource", "SqlServerSource"). |
workspace_name * | string | The display name of the workspace containing the pipeline. |
activity_name | Optional custom name for the activity (default: auto-generated). | |
apply_v_order | boolean | Apply V-Order optimization (default: True). |
destination_table_schema | string | Schema 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… |
retry | integer | Number of retry attempts (default: 0). |
retry_interval_seconds | integer | Retry interval in seconds (default: 30). |
source_access_mode | string | Source access mode ("direct" or "sql"). Default is "direct". |
source_sql_query | Optional SQL query for sql access mode. | |
table_action_option | string | Table action option (default: "Append", options: "Append", "Overwrite"). |
timeout | string | Activity 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
| Parameter | Type | Description |
|---|---|---|
notebook_name * | string | Name of the notebook to run. |
pipeline_name * | string | Name of the existing pipeline to update. |
workspace_name * | string | The display name of the workspace containing the pipeline. |
activity_name | Optional custom name for the activity (default: auto-generated). | |
depends_on_activity_name | Optional name of an existing activity this one depends on. | |
notebook_workspace_name | Optional name of the workspace containing the notebook. | |
parameters | Optional parameters to pass to the notebook. | |
retry | integer | Number of retry attempts (default: 0). |
retry_interval_seconds | integer | Retry interval in seconds (default: 30). |
session_tag | Optional session tag for the notebook execution. | |
timeout | string | Activity 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
| Parameter | Type | Description |
|---|---|---|
dataflow_name * | string | Name of the Dataflow to run. |
pipeline_name * | string | Name of the existing pipeline to update. |
workspace_name * | string | The display name of the workspace containing the pipeline. |
activity_name | Optional custom name for the activity (default: auto-generated). | |
dataflow_workspace_name | Optional name of the workspace containing the Dataflow. | |
depends_on_activity_name | Optional name of an existing activity this one depends on. | |
retry | integer | Number of retry attempts (default: 0). |
retry_interval_seconds | integer | Retry interval in seconds (default: 30). |
timeout | string | Activity 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…
| Parameter | Type | Description |
|---|---|---|
activity_json * | object | Complete JSON dictionary representing the activity definition. Must include "name", "type", and all required properties. |
pipeline_name * | string | Name of the existing pipeline to update. |
workspace_name * | string | The display name of the workspace containing the pipeline. |
get_pipeline_definition Get Pipeline Definition
Get a Fabric pipeline definition (decoded JSON).
| Parameter | Type | Description |
|---|---|---|
pipeline_name * | string | Name of the pipeline. |
workspace_name * | string | The display name of the workspace containing the pipeline. |
format | Optional format hint for the definition (pass-through). | |
save_to_path | Optional 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).
| Parameter | Type | Description |
|---|---|---|
pipeline_name * | string | Name of the pipeline. |
workspace_name * | string | The display name of the workspace containing the pipeline. |
pipeline_content_json | Pipeline definition JSON to upload. Mutually exclusive with *pipeline_file_path*. | |
pipeline_file_path | Local file path to a pipeline JSON file. Mutually exclusive with *pipeline_content_json*. | |
platform | Optional .platform JSON definition. | |
update_metadata | boolean | Whether to apply metadata updates (requires platform). |
add_activity_dependency Add Activity Dependency
Add dependsOn dependencies to a pipeline activity.
| Parameter | Type | Description |
|---|---|---|
activity_name * | string | Name of the activity to update. |
depends_on * | array | List of activity names this activity depends on. |
pipeline_name * | string | Name of the pipeline. |
workspace_name * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
activity_name * | string | Name of the activity to delete. |
pipeline_name * | string | Name of the existing pipeline to update. |
workspace_name * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
activity_name * | string | Name of the activity being depended on. |
pipeline_name * | string | Name of the existing pipeline to update. |
workspace_name * | string | The display name of the workspace containing the pipeline. |
from_activity_name | Optional 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
| Parameter | Type | Description |
|---|---|---|
job_instance_id * | string | The job instance ID from run_on_demand_job or get_job_status. |
workspace_name * | string | The display name of the workspace containing the pipeline. |
activity_name | Optional filter to a specific activity by name. | |
status_filter | Optional 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…
| Parameter | Type | Description |
|---|---|---|
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
| Parameter | Type | Description |
|---|---|---|
dataflow_name * | string | Name of the dataflow to retrieve. |
workspace_name * | string | The display name of the workspace containing the dataflow. |
save_to_path | Optional 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
| Parameter | Type | Description |
|---|---|---|
dataflow_name * | string | Name of the dataflow to run. |
workspace_name * | string | The display name of the workspace containing the dataflow. |
execution_data | Optional parameters for parameterized dataflows. |
create_semantic_model Create Semantic Model
Create an empty Fabric semantic model.
| Parameter | Type | Description |
|---|---|---|
semantic_model_name * | string | Name for the semantic model (no folder separators). |
workspace_name * | string | The display name of the workspace. |
folder_path | Optional 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.
| Parameter | Type | Description |
|---|---|---|
columns * | array | Column definitions for the table. |
lakehouse_name * | string | Name of the source lakehouse. |
semantic_model_name * | string | Name of the semantic model to update. |
table_name * | string | Source table name (unqualified when table_schema is provided). |
workspace_name * | string | The display name of the workspace. |
model_table_name | Optional table name to use in the semantic model. | |
table_schema | Optional 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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
table_name * | string | Name of the table to delete. |
workspace_name * | string | The display name of the workspace. |
remove_relationships | boolean | Remove relationships that reference the table. |
semantic_model_id | Semantic model ID (optional). | |
semantic_model_name | Name of the semantic model to update. |
delete_relationship_from_semantic_model Delete Relationship from Semantic Model
Delete relationship(s) from a semantic model.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
workspace_name * | string | |
decode_model_bim | boolean | |
format | string | |
save_to_path | ||
semantic_model_id | ||
semantic_model_name |
update_semantic_model_definition Update Semantic Model Definition
Update a semantic model definition.
| Parameter | Type | Description |
|---|---|---|
workspace_name * | string | The display name of the workspace. |
definition | Definition dict to upload. Mutually exclusive with *definition_file_path*. | |
definition_file_path | Local file path to a definition JSON file. Mutually exclusive with *definition*. | |
semantic_model_id | ID of the semantic model (optional if name provided). | |
semantic_model_name | Name 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.
| Parameter | Type | Description |
|---|---|---|
from_column * | string | |
from_table * | string | |
semantic_model_name * | string | |
to_column * | string | |
to_table * | string | |
workspace_name * | string | |
cardinality | string | |
cross_filter_direction | string | |
is_active | boolean |
refresh_semantic_model Refresh Semantic Model
Refresh a semantic model and wait for completion.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
workspace_name * | string | |
semantic_model_id | ||
semantic_model_name |
list_lakehouse_files List Lakehouse Files
List files from a lakehouse Files area.
| Parameter | Type | Description |
|---|---|---|
workspace_name * | string | Display name of the workspace. |
lakehouse_id | ID of the lakehouse (optional). | |
lakehouse_name | Display name of the lakehouse (required if lakehouse_id not provided). | |
path | Optional path under Files to list (e.g., "raw/2025"). This tool does not support the Tables area. | |
recursive | boolean | Whether to list files recursively (default True). |
upload_lakehouse_file Upload Lakehouse File
Upload a local file into a lakehouse Files area.
| Parameter | Type | Description |
|---|---|---|
workspace_name * | string | Display name of the workspace. |
create_missing_directories | boolean | Create missing directories (default True). |
destination_path | Destination path under Files. Defaults to local file name. | |
lakehouse_id | ID of the lakehouse (optional). | |
lakehouse_name | Display name of the lakehouse (required if lakehouse_id not provided). | |
local_file_path | string | Path to the local file to upload. |
delete_lakehouse_file Delete Lakehouse File
Delete a file or directory from a lakehouse Files area.
| Parameter | Type | Description |
|---|---|---|
workspace_name * | string | Display name of the workspace. |
lakehouse_id | ID of the lakehouse (optional). | |
lakehouse_name | Display name of the lakehouse (required if lakehouse_id not provided). | |
path | string | File or directory path under Files to delete. |
recursive | boolean | Delete recursively when path is a directory (default False). |