get_flow_executions
Retrieve execution history for a specific workflow to monitor performance and track automation results. Use this tool to analyze past runs and identify patterns in your automated processes.
Instructions
Obtiene el historial de ejecuciones de un flujo
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flowId | Yes | ID del flujo | |
| limit | No | Límite de resultados |
Implementation Reference
- src/index.ts:467-485 (handler)The handler function that implements the get_flow_executions tool logic. It makes an HTTP GET request to the HiveFlow API endpoint `/api/flows/{flowId}/executions` with optional limit parameter, processes the executions list, formats it as a bullet-point text string, and returns it in the MCP response format.private async getFlowExecutions(args: any) { const response = await this.hiveflowClient.get(`/api/flows/${args.flowId}/executions`, { params: { limit: args.limit || 10 } }); const executions = response.data.executions || []; const executionsList = executions.map((exec: any) => `• ${exec.id} - Estado: ${exec.status} - ${exec.createdAt}` ).join('\n'); return { content: [ { type: 'text', text: `📈 Ejecuciones del flujo (${executions.length}):\n\n${executionsList || 'No hay ejecuciones'}` } ] }; }
- src/index.ts:194-212 (schema)The schema definition for the get_flow_executions tool, including input schema specifying required flowId (string) and optional limit (number, default 10). This is returned in the ListTools response.{ 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'] } }
- src/index.ts:239-240 (registration)The switch case registration/dispatch in the CallToolRequestSchema handler that calls the getFlowExecutions method when the tool 'get_flow_executions' is invoked.case 'get_flow_executions': return await this.getFlowExecutions(args);