Skip to main content
Glama

search_workflows

Find workflow executions using advanced query syntax with multiple criteria. Supports pagination and sorting for efficient troubleshooting and management.

Instructions

Advanced search for workflow executions using query syntax. Supports complex queries with multiple criteria.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesQuery string (e.g., 'workflowType=MyWorkflow AND status=FAILED')
startNoStart index for pagination (default: 0)
sizeNoNumber of results to return (default: 100)
sortNoSort field and order (e.g., 'startTime:DESC')

Implementation Reference

  • Handler implementation for the 'search_workflows' tool. It destructures the input arguments, builds query parameters including query, start, size, and optional sort, makes an API call to Conductor's /workflow/search-v2 endpoint, and returns the response as formatted JSON text content.
    case "search_workflows": { const { query, start = 0, size = 100, sort } = args as any; const params: any = { start, size, query, }; if (sort) params.sort = sort; const response = await conductorClient.get("/workflow/search-v2", { params }); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
  • Input schema definition for the 'search_workflows' tool, specifying the expected parameters: required 'query' string and optional pagination/sort parameters.
    inputSchema: { type: "object", properties: { query: { type: "string", description: "Query string (e.g., 'workflowType=MyWorkflow AND status=FAILED')", }, start: { type: "number", description: "Start index for pagination (default: 0)", }, size: { type: "number", description: "Number of results to return (default: 100)", }, sort: { type: "string", description: "Sort field and order (e.g., 'startTime:DESC')", }, }, required: ["query"], },
  • src/index.ts:203-229 (registration)
    Registration of the 'search_workflows' tool in the global tools array used for listing available tools via MCP protocol.
    { name: "search_workflows", description: "Advanced search for workflow executions using query syntax. Supports complex queries with multiple criteria.", inputSchema: { type: "object", properties: { query: { type: "string", description: "Query string (e.g., 'workflowType=MyWorkflow AND status=FAILED')", }, start: { type: "number", description: "Start index for pagination (default: 0)", }, size: { type: "number", description: "Number of results to return (default: 100)", }, sort: { type: "string", description: "Sort field and order (e.g., 'startTime:DESC')", }, }, required: ["query"], }, },

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/opensensor/conductor-mcp'

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