Repository navigation
Conversation
_validate refuses arguments no tool declares (-32602 unexpected arguments), but the generated inputSchema stayed silent on additionalProperties. A JSON Schema object admits every property it does not name until told otherwise, so a client that validates a call locally against the document the server itself hands out reaches valid, sends it, and is refused — the exact disagreement between tools/list and tools/call reported in flop-labs#105. Adds the flag in schema_of and a regression test asserting local validation reaches the same verdict as tools/call for the issue's example call.
Contributor
|
Duplicate of #104 — same Generated by Claude Code |
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.
What
schema_ofnow emitsadditionalProperties: false, so every tool schema intools/listsays what_validatealready enforces: arguments no parameter declares are refused (-32602 unexpected arguments). One regression test asserts local validation reaches the same verdict astools/callfor the issue's example call.Why
Fixes #105. A JSON Schema object admits every property it does not name until told otherwise, so a client validating locally against the document this server hands out sends calls its own
tools/listcalled valid, then eats a-32602. The two statements now agree; no handler or refusal changes.Closes #105.
Checks
uv run coverage run -m pytest tests -q && uv run coverage report— 382 passed, 97.50% (floor 96)uv run ruff check . && uv run ruff format --check .anduv run ty check