fix: resolve LLM parameter mismatches and type coercion bugs#408
Closed
DarkByteZero wants to merge 3 commits intozereight:mainfrom
Closed
fix: resolve LLM parameter mismatches and type coercion bugs#408DarkByteZero wants to merge 3 commits intozereight:mainfrom
DarkByteZero wants to merge 3 commits intozereight:mainfrom
Conversation
Analyzed 2,882 MCP tool calls across 242 conversations to identify systematic failure patterns. Fixes 39 actionable errors (7.5% error rate): - Default child/linked item project_id to parent's when omitted (31x mismatch) - Accept `query` as alias for `search` in search_repositories (3x errors) - Normalize `work_item_iid` -> `iid` for work item tools (11x errors) - Coerce JSON-stringified arrays for labels/assignees fields (2x errors) - Case-insensitive issue_type enum in update_issue (5x errors) - Skip weight widget for incident work items in create (4x errors) Includes scan-mcp-errors.py diagnostic script for ongoing analysis.
LLMs frequently send "true"/"false" strings instead of boolean values. Applied z.coerce.boolean() to all boolean fields across all schemas.
zereight
added a commit
that referenced
this pull request
Apr 12, 2026
- Default project_id in nested objects to parent's projectId when omitted - Normalize work_item_iid -> iid alias before parsing - Case-insensitive issue_type enum in update_issue - Skip weightWidget for incident type in create_work_item - Accept query as alias for search in search_repositories - Coerce JSON-stringified arrays for labels/assignee_usernames - Coerce all remaining boolean schema fields to accept string values Co-authored-by: DarkByteZero <DarkByteZero@users.noreply.github.com>
Owner
|
Squash merged into main manually. Conflict resolved. Thank you |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
project_idin nested objects (children_to_remove/add,linked_items_*) to parent's project_id when omitted -z.coerce.string()silently coercedundefinedto"undefined", causing 404swork_item_iid->iidbefore parsing for work item toolsissue_typeenum inupdate_issueweightWidgetfor incident type increate_work_itemqueryas alias forsearchinsearch_repositorieslabels/assignee_usernamesfieldsTest plan
npm run buildpasses