Skip to main content
Glama
fortunto2
by fortunto2

list_flows

Retrieve a list of flows from the Prefect API for workflow management. Specify limit and offset parameters to control the number of flows returned and pagination.

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 main handler function for the 'list_flows' MCP tool. It is decorated with @mcp.tool() for registration and implements the logic to retrieve a paginated list of flows from the Prefect API using the client.
    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