Skip to content

Reject Invalid Parameters #364

Open
Open
@lieut-data

Description

@lieut-data

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions