
# MCP Parameter Validation and Result Reporting Issues

## Issues Identified:

1. **Parameter Format Errors**: 
   - Agents sometimes pass strings instead of JSON arrays to MCP tools
   - Validation error: "Input should be a valid list [type=list_type]"
   - Root cause: Agent prompt interpretation or parameter serialization issue

2. **Result Reporting Problems**:
   - MCP tools execute successfully but results may not be captured in agent messages
   - Security findings not consistently appearing in final workflow results
   - Tool usage tracking shows "Tools Used: 0" despite successful MCP execution

3. **Success vs Failure Inconsistency**:
   - Some MCP calls succeed and find vulnerabilities
   - Some fail with parameter validation errors
   - Success rate varies between workflow executions

## Technical Details:

- MCP infrastructure is working (direct calls succeed)
- Sync wrapper handles async/sync conversion correctly
- Issue appears to be in parameter passing from agent to tool
- Results are generated but may not be properly aggregated
