Reject Invalid Parameters
Describe the feature or problem you’d like to solve
For better or worse, Claude Code will periodically try to find the pull request for my current branch using this:
github:list_pull_requests(owner: "<owner>", repo: "<repo>", head: "<branch_name>", state: "open")
The problem is that list_pull_requests doesn't take a head parameter, nor does it reject the request as invalid. Instead, it happily returns all the open pull requests, immediately exhausting Claude's context window.
Proposed solution
Reject requests if unsupported parameters are provided. This would hint to the LLM that this approach is likely wrong.
I was about to report this same issue, but now my question is: Why are these parameters invalid?
This issue is stale because it has been open for 30 days with no activity. Leave a comment to avoid closing this issue in 60 days.