Skip to main content
Glama
fortunto2
by fortunto2

list_flows

Retrieve and manage workflow automation flows from Prefect API to monitor and organize data pipelines.

Instructions

Get a list of flows from the Prefect API.

Args: limit: Maximum number of flows to return (default 20). offset: Number of flows to skip (default 0).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo

Implementation Reference

  • The handler function for the "list_flows" tool. It is decorated with @mcp.tool() for registration and implements the logic to fetch a paginated list of flows from the Prefect API using the get_client() and returns their model_dump() representations along with the count.
    @mcp.tool() async def list_flows(ctx: Context, limit: int = 20, offset: int = 0) -> Dict[str, Any]: """Get a list of flows from the Prefect API. Args: limit: Maximum number of flows to return (default 20). offset: Number of flows to skip (default 0). """ async with get_client() as client: flows = await client.read_flows(limit=limit, offset=offset) return {"flows": [flow.model_dump() for flow in flows], "count": len(flows)}

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/fortunto2/prefect-mcp-server'

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