Skip to main content
Glama

Run On-Demand Job

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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden. It discloses key behavioral traits: the job runs asynchronously, returns a dictionary with specific fields, and provides example usage. However, it doesn't mention authentication requirements, rate limits, error conditions, or what happens if the job fails. The description doesn't contradict any annotations since none exist.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with purpose statement, common job types, behavioral note, parameter explanations, return value description, and example. Every section adds value. It could be slightly more concise by integrating the example more tightly, but overall it's appropriately sized and front-loaded with essential information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 5 parameters with 0% schema coverage, no annotations, but with output schema (implied by 'Returns' section), the description does well. It covers purpose, usage, parameters, returns, and provides an example. The main gap is lack of error handling or permission information. The output schema existence reduces the need to fully document return values, but the description still provides useful context about what fields mean.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage for 5 parameters, the description must compensate. It provides meaningful explanations for all parameters: workspace_name as 'display name', item_name as 'Name of the item', item_type with examples, job_type with common types, and execution_data as 'Optional execution data payload'. This adds substantial value beyond the bare schema, though it doesn't specify format constraints or validation rules.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Run an on-demand job for a Fabric item' with the verb 'executes' and resource 'job for the specified item'. It distinguishes from siblings by focusing on job execution rather than creation, deletion, or status checking. However, it doesn't explicitly differentiate from all 30+ siblings, just the two status-checking tools mentioned later.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context about when to use this tool: for running jobs asynchronously. It explicitly mentions alternatives for checking progress: 'Use get_job_status or get_job_status_by_url to check the job's progress and result.' It doesn't specify when NOT to use it or compare with other job-related siblings like livy_run_statement.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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