Fix MCP error reporting and add dropdown metadata
Error Handling: - Check ec.message.hasError() before and after transaction flush - Return "status": "error" with error messages instead of false success - Prevents silent failures when constraint violations occur (e.g., invalid Party IDs) Dropdown Metadata: - Capture static dropdown options from sri.getFieldOptions() - Capture dynamic-options config (transition, serverSearch, minLength, parameterMap) - Enables model to understand searchable dropdowns vs static lists This improves the model's ability to: 1. See clear error messages when operations fail 2. Understand dropdown behavior (server search vs static) 3. Take corrective action based on error feedback
Showing
2 changed files
with
113 additions
and
1 deletions
-
Please register or sign in to post a comment