Skip to main content
Glama
hiveflowai

HiveFlow MCP Server

Official
by hiveflowai

get_flow_executions

Retrieve execution history for a specific automation flow to monitor performance and track past runs.

Instructions

Obtiene el historial de ejecuciones de un flujo

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flowIdYesID del flujo
limitNoLímite de resultados

Implementation Reference

  • The handler function that retrieves the execution history (processes) for a given flowId from the HiveFlow API, formats it as a formatted text list, and returns it in the MCP response format. Handles errors gracefully.
    async getFlowExecutions(args) { try { const response = await this.hiveflowClient.get(`/api/flows/${args.flowId}/processes`, { params: { limit: args.limit || 10 } }); if (response.data && response.data.success) { const processes = response.data.processes || []; const executionsList = processes.map(process => `• ${process.processId || process._id} - Estado: ${process.status} - ${process.startTime} ${process.endTime ? `(${process.duration}ms)` : '(en progreso)'}` ).join('\n'); return { content: [ { type: 'text', text: `📈 Ejecuciones del flujo (${processes.length}):\n\n${executionsList || 'No hay ejecuciones'}` } ] }; } else { return { content: [ { type: 'text', text: `❌ Error: ${response.data?.message || 'No se pudieron obtener las ejecuciones'}` } ] }; } } catch (error) { return { content: [ { type: 'text', text: `❌ Error de conexión: ${error.message}` } ] }; } }
  • src/index.js:185-203 (registration)
    The tool registration entry in the ListToolsRequestSchema handler, defining the name, description, and input schema (with flowId required and limit optional).
    { name: 'get_flow_executions', description: 'Obtiene el historial de ejecuciones de un flujo', inputSchema: { type: 'object', properties: { flowId: { type: 'string', description: 'ID del flujo' }, limit: { type: 'number', description: 'Límite de resultados', default: 10 } }, required: ['flowId'] } }
  • The input schema definition for the get_flow_executions tool, specifying parameters and validation.
    inputSchema: { type: 'object', properties: { flowId: { type: 'string', description: 'ID del flujo' }, limit: { type: 'number', description: 'Límite de resultados', default: 10 } }, required: ['flowId'] }
  • The switch case in the CallToolRequestSchema handler that routes calls to the getFlowExecutions method.
    case 'get_flow_executions': return await this.getFlowExecutions(args);

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/hiveflowai/hiveflow-mcp-server'

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