{"record":{"id":"a42a930c4a2d9943","repo":"ruvnet/ruflo","slug":"tool-input-validation-failed","errorCode":null,"errorMessage":"Tool input validation failed","messagePattern":"Tool input validation failed","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/mcp/src/tool-registry.ts","lineNumber":304,"sourceCode":"    input: Record<string, unknown>,\n    context?: ToolContext\n  ): Promise<ToolCallResult> {\n    const startTime = performance.now();\n    const metadata = this.tools.get(name);\n\n    if (!metadata) {\n      return {\n        content: [{ type: 'text', text: `Tool not found: ${name}` }],\n        isError: true,\n      };\n    }\n\n    // Validate input against schema (security feature)\n    if (metadata.tool.inputSchema) {\n      const validation = validateSchema(input, metadata.tool.inputSchema);\n      if (!validation.valid) {\n        const errorMsg = formatValidationErrors(validation.errors);\n        this.logger.warn('Tool input validation failed', {\n          name,\n          errors: validation.errors,\n        });\n        return {\n          content: [{ type: 'text', text: `Invalid input: ${errorMsg}` }],\n          isError: true,\n        };\n      }\n    }\n\n    const execContext: ToolContext = {\n      sessionId: context?.sessionId || this.defaultContext?.sessionId || 'default-session',\n      ...this.defaultContext,\n      ...context,\n    };\n\n    if (this.authorizer) {\n      try {","sourceCodeStart":286,"sourceCodeEnd":322,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/mcp/src/tool-registry.ts#L286-L322","documentation":"Log/error path in the tool registry's execute: the input failed validateSchema against the tool's declared inputSchema (a security feature); the formatted validation errors are returned so the caller knows which arguments were malformed.","triggerScenarios":"Thrown at v3/@claude-flow/mcp/src/tool-registry.ts:304 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the tool call arguments to satisfy the tool's input schema; the validation errors list the offending fields."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}