File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,10 @@ func NoopPropertyOption() mcp.PropertyOption {
17
17
// what is set in the env variables.
18
18
func WithScope (config * config.Config , required bool ) mcp.ToolOption {
19
19
opt := NoopPropertyOption ()
20
+ verbiage := "Optional" // this helps with having the client not pass in bogus parameters
20
21
if required {
21
22
opt = mcp .Required ()
23
+ verbiage = "Required"
22
24
}
23
25
return func (tool * mcp.Tool ) {
24
26
defaultProjectOpt := NoopPropertyOption ()
@@ -30,12 +32,12 @@ func WithScope(config *config.Config, required bool) mcp.ToolOption {
30
32
defaultProjectOpt = mcp .DefaultString (config .DefaultProjectID )
31
33
}
32
34
mcp .WithString ("org_id" ,
33
- mcp .Description ("The ID of the organization." ),
35
+ mcp .Description (fmt . Sprintf ( "%s ID of the organization.", verbiage ) ),
34
36
defaultOrgOpt ,
35
37
opt ,
36
38
)(tool )
37
39
mcp .WithString ("project_id" ,
38
- mcp .Description ("The ID of the project." ),
40
+ mcp .Description (fmt . Sprintf ( "%s ID of the project.", verbiage ) ),
39
41
defaultProjectOpt ,
40
42
opt ,
41
43
)(tool )
You can’t perform that action at this time.
0 commit comments