Skip to content

Commit 7fdf633

Browse files
committed
fix: tml
1 parent 1578ea6 commit 7fdf633

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mcp_go/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ type ToolParams struct {
146146
Param2 int `json:"param2" desc:"parameter description" required:"false"`
147147
}
148148

149+
type ToolResult struct {
150+
Field1 string `json:"field1"`
151+
}
152+
149153
func (t *ToolName) Name() string {
150154
return "tool_name"
151155
}
@@ -159,7 +163,7 @@ func (t *ToolName) Validate(params ToolParams) error {
159163
return nil
160164
}
161165

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) {
163167
// Tool execution logic
164168
return result, nil
165169
}

0 commit comments

Comments
 (0)