Skip to content

Reject Invalid Parameters #364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lieut-data opened this issue Apr 30, 2025 · 0 comments
Open

Reject Invalid Parameters #364

lieut-data opened this issue Apr 30, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@lieut-data
Copy link

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.

@lieut-data lieut-data added the enhancement New feature or request label Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant