8000 [Bug] is-even is misleading · Issue #2 · jamieday/is-even-mcp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Bug] is-even is misleading #2

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
strawgate opened this issue May 24, 2025 · 1 comment
Open

[Bug] is-even is misleading #2

strawgate opened this issue May 24, 2025 · 1 comment

Comments

@strawgate
Copy link

After I root caused #1 I realized that there's some unintuitive behavior in the way the tool is presented.

When I first started using the tool I was very surprised to find that a call to is-even is not checking whether {value} === "even" but instead operates entirely in the space is mathematical parity.

Perhaps the server should be renamed to is-even-number or perhaps you could rename the current tool to is-even-number and the is-even tool could be changed to better reflect its behavior?

@jamieday
Copy link
Owner

I'll be completely open and honest with you here – this never once crossed my mind

Now that you mention it though it's so obvious that of course someone may want to check the evenness of a string, not just a number.

Idea: We expand the scope of the tool to handle both cases.

Hey is the word even even?
{ "type": "string", "word": "even" } -> { "isEven": true, "confidence": 0.85 }
Yes, the word even is even.

Hey is 44 even?
{ "type": "number", "number": 44 } -> { "isEven": false, "confidence": 0.68 }
No, the number 44 is not even.

We'd need to establish consensus for this major design change, though. May discuss at the next board meeting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0