Polish gh-764

Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
This commit is contained in:
Daniel Garnier-Moiroux 2026-02-10 11:29:08 +01:00
commit be5ec12e1b

View file

@ -1466,6 +1466,7 @@ public final class McpSchema {
}
public Tool build() {
Assert.hasText(name, "name must not be empty");
return new Tool(name, title, description, inputSchema, outputSchema, annotations, meta);
}