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 1578ea6 commit 7fdf633Copy full SHA for 7fdf633
mcp_go/README.md
@@ -146,6 +146,10 @@ type ToolParams struct {
146
Param2 int `json:"param2" desc:"parameter description" required:"false"`
147
}
148
149
+type ToolResult struct {
150
+ Field1 string `json:"field1"`
151
+}
152
+
153
func (t *ToolName) Name() string {
154
return "tool_name"
155
@@ -159,7 +163,7 @@ func (t *ToolName) Validate(params ToolParams) error {
159
163
return nil
160
164
161
165
162
-func (t *ToolName) Execute(ctx context.Context, params ToolParams) (interface{}, error) {
166
+func (t *ToolName) Execute(ctx context.Context, params ToolParams) (result ToolResult, err error) {
167
// Tool execution logic
168
return result, nil
169
0 commit comments