Skip to main content
Glama
npow

metaflow-mcp-server

by npow

trigger_run

Trigger a new run for a deployed Metaflow flow using its deployment identifier. Optionally override flow parameters with key-value pairs.

Instructions

Trigger a new run for a deployed Metaflow flow.

Connects to an existing deployment and triggers a new run. The flow must already be deployed via Deployer. Use list_deployments to discover available deployments and their identifiers.

The run is triggered asynchronously -- this returns immediately with tracking identifiers. Use get_triggered_run_status to poll, or get_run with the Metaflow pathspec once the start step completes.

Args: identifier: Deployment identifier from list_deployments (e.g. Maestro workflow_id like "myproject.test.staging.TrainFlow"). parameters: Optional flow parameter overrides as key-value pairs (e.g. {"learning_rate": "0.01", "epochs": "10"}). Unspecified parameters use deployed defaults. impl: Orchestrator backend. Auto-detected if omitted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
identifierYes
parametersNo
implNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description fully discloses asynchronous execution (returns immediately with tracking identifiers), required identifier, optional parameters, and auto-detection of impl. It sets proper expectations for subsequent polling.

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

Conciseness5/5

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

Well-structured with a one-sentence summary followed by logical paragraphs. Each sentence adds value; no fluff. Args section clearly maps to parameters.

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

Completeness5/5

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

Covers prerequisites (list_deployments), async nature, how to retrieve results, parameter defaults, and auto-detection. Output schema exists so return format need not be explained. Complete for a tool with moderate complexity.

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

Parameters5/5

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

Schema coverage is 0%, but description adds example values for identifier (e.g., 'myproject.test.staging.TrainFlow'), explains parameters as optional key-value overrides, and notes impl auto-detection. This goes well beyond the bare type information in the schema.

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

Purpose5/5

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

Description clearly states action (trigger a new run), specific resource (deployed Metaflow flow), and differentiates from sibling tools like list_deployments and get_run. It also helps with prerequisites by mentioning list_deployments to discover identifiers.

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?

Description explains when to use (for deployed flows) and provides explicit references to companion tools (list_deployments, get_triggered_run_status, get_run). Lacks explicit 'when not to use' but context is sufficient.

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/npow/metaflow-mcp-server'

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