Skip to main content
Glama

run_on_demand_job

Execute on-demand jobs for Microsoft Fabric items like notebooks, pipelines, and data warehouses to process data or run analytics tasks asynchronously.

Instructions

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.

Parameters: workspace_name: The display name of the workspace. item_name: Name of the item to run job for. item_type: Type of the item (Notebook, Pipeline, Lakehouse, Warehouse, etc.). job_type: Type of job to run (RunNotebook, DefaultJob, Pipeline, etc.). execution_data: Optional execution data payload for the job (e.g., notebook parameters).

Returns: Dictionary with status, message, job_instance_id, location_url, and retry_after.

Example: ```python # Run a notebook result = run_on_demand_job( workspace_name="My Workspace", item_name="analysis_notebook", item_type="Notebook", job_type="RunNotebook", execution_data={"parameters": {"start_date": "2025-01-01"}} )

# Use the location URL to check status job_status = get_job_status_by_url(result["location_url"]) ```

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspace_nameYes
item_nameYes
item_typeYes
job_typeYes
execution_dataNo

Latest Blog Posts

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/bablulawrence/ms-fabric-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server