We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aabc33 commit 1373ddfCopy full SHA for 1373ddf
mcp/tool.go
@@ -44,6 +44,8 @@ type ServerTool struct {
44
// The input schema for the tool is extracted from the request type for the
45
// handler, and used to unmmarshal and validate requests to the handler. This
46
// schema may be customized using the [Input] option.
47
+//
48
+// TODO(jba): check that structured content is set in response.
49
func NewServerTool[In, Out any](name, description string, handler ToolHandlerFor[In, Out], opts ...ToolOption) *ServerTool {
50
st, err := newServerToolErr[In, Out](name, description, handler, opts...)
51
if err != nil {
0 commit comments