Skip to content

Commit 3f57683

Browse files
committed
update MCP tool description
1 parent 8347519 commit 3f57683

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

mcp/mcp.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ type readBookOutput struct {
152152
type execOutput struct {
153153
Code string `json:"code" jsonschema:"description=The code that was executed"`
154154
Warnings []string `json:"warnings" jsonschema:"description=Compiler warnings"`
155-
Results string `json:"results" jsonschema:"description=Formatted return values"`
155+
Results string `json:"results" jsonschema:"description=0, 1, or multiple return values as Suneido-format strings"`
156156
}
157157

158158
var toolSpecs = []toolSpec{
@@ -260,12 +260,9 @@ var toolSpecs = []toolSpec{
260260
},
261261
{
262262
name: "suneido_execute",
263-
description: "Executes Suneido code for its return value or side effects (e.g., database updates). Returns a text report containing:\n" +
264-
"- code: The code that was executed.\n" +
265-
"- results: Array of 0, 1, or multiple return values as Suneido-format strings (Value.String())\n" +
266-
"- warnings: Array of compiler warnings\n" +
267-
"Note: A single returned object will appear as the first result (e.g., [[1,2]]), while multiple return values appear as separate elements (e.g., [1,2])." +
268-
"Use this for calculations, data manipulation, or system commands.",
263+
description: "Executes Suneido code for its result or side effects.\n" +
264+
"Use this for calculations, data manipulation, or system commands.\n" +
265+
"Note: A single returned object will appear as the first result (e.g., [[1,2]]), while multiple return values appear as separate elements (e.g., [1,2]).",
269266
params: []stringParam{{name: "code", description: "Suneido code to execute (as the body of a function)", required: true}},
270267
outputSchema: mcp.WithOutputSchema[execOutput](),
271268
handler: func(ctx context.Context, args map[string]any) (any, error) {

0 commit comments

Comments
 (0)