Skip to content

Commit b984795

Browse files
Merge pull request #72 from alexandrumosgoreanu/main
Add WithStringEnumItems for accountMetadata tool
2 parents d6a63fc + b64397f commit b984795

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/cmd/root.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,11 @@ For complete reference:
416416
mcp.NewTool(
417417
"accountMetadata",
418418
mcp.WithDescription("Get metadata about the OpsLevel account including component types, tiers, & lifecycles, and maturity levels. Use this tool to retrieve relevant context (including indexes and ids for filters) before making other tool calls. Provide `types` whenever possible."),
419-
mcp.WithArray("types", mcp.Description(fmt.Sprintf("Optional array of specific metadata types to fetch. Valid values: %s. If omitted, all metadata types will be fetched.", strings.Join(AllAccountMetadataStrings(), ", ")))),
419+
mcp.WithArray(
420+
"types",
421+
mcp.Description(fmt.Sprintf("Optional array of specific metadata types to fetch. Valid values: %s. If omitted, all metadata types will be fetched.", strings.Join(AllAccountMetadataStrings(), ", "))),
422+
mcp.WithStringEnumItems(AllAccountMetadataStrings()),
423+
),
420424
mcp.WithToolAnnotation(mcp.ToolAnnotation{
421425
Title: "Account Metadata in OpsLevel",
422426
ReadOnlyHint: &trueValue,

0 commit comments

Comments
 (0)