Skip to main content
Glama
fortunto2
by fortunto2

search_flows

Find and retrieve workflow flows by name or tags using the Prefect MCP Server. Filter results with specific criteria and set a limit for the number of flows returned.

Instructions

Search for flows by name and/or tags.

Args: name: Optional name to search for (case-insensitive contains match). tags: Optional list of tags to filter by. limit: Maximum number of flows to return (default 20).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
nameNo
tagsNo

Implementation Reference

  • The main handler function for the 'search_flows' tool. It constructs a FlowFilter based on provided name and tags, queries the Prefect API, and returns matching flows.
    @mcp.tool() async def search_flows( ctx: Context, name: Optional[str] = None, tags: Optional[List[str]] = None, limit: int = 20, ) -> Dict[str, Any]: """Search for flows by name and/or tags. Args: name: Optional name to search for (case-insensitive contains match). tags: Optional list of tags to filter by. limit: Maximum number of flows to return (default 20). """ filter_dict = {} if name: filter_dict["name"] = {"contains": name} if tags: filter_dict["tags"] = {"all_": tags} async with get_client() as client: flow_filter = FlowFilter(**filter_dict) flows = await client.read_flows(flow_filter=flow_filter, limit=limit) 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