Skip to main content
Glama

list_workflows

View available workflow templates for multi-AI collaboration on complex tasks, enabling intelligent task distribution and role-based expert assignment.

Instructions

列出所有可用的工作流模板

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP request handler for 'list_workflows' tool: retrieves workflows via workflowManager.listWorkflows(), formats them into a markdown list with details like triggers, steps, and flow, and returns as text content.
    case 'list_workflows': { const workflows = workflowManager.listWorkflows(); const list = workflows.map(w => { const stepsCount = w.steps.filter(s => s.type === 'expert').length; return `### ${w.name} (\`${w.id}\`) ${w.description} - **触发词**: ${w.triggers.join(', ')} - **步骤数**: ${stepsCount} 个专家步骤 - **流程**: ${w.steps.filter(s => s.type === 'expert').map(s => s.name).join(' → ')}`; }).join('\n\n'); return { content: [{ type: 'text', text: `# 📋 可用工作流模板\n\n${list}\n\n---\n> 使用 \`run_workflow\` 执行指定工作流,或使用 \`suggest_workflow\` 自动推荐` }], }; }
  • src/server.ts:357-364 (registration)
    Registration of the 'list_workflows' tool in the MCP server's tools array, including name, description, and empty input schema (no parameters required).
    { name: 'list_workflows', description: '列出所有可用的工作流模板', inputSchema: { type: 'object', properties: {}, }, },
  • Core implementation of listWorkflows() method in the WorkflowManager class, which combines and returns all available template and custom workflows.
    listWorkflows(): WorkflowDefinition[] { return [ ...this.templates.values(), ...this.customWorkflows.values(), ]; }

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/7836246/claude-team-mcp'

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