Skip to content

Commit c7371d6

Browse files
update components description + fix lint issues
1 parent 444c4bb commit c7371d6

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/cmd/root.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ import (
2424
var defaultSystemPrompt string
2525

2626
type serializedComponent struct {
27-
Id string
28-
Name string
29-
Owner string
30-
Language string
27+
Id string
3128
Framework string
32-
Url string
29+
Language string
30+
Name string
31+
Owner string
32+
Url string
3333
}
3434

3535
type serializedInfrastructureResource struct {
@@ -167,7 +167,7 @@ var rootCmd = &cobra.Command{
167167
s.AddTool(
168168
mcp.NewTool(
169169
"components",
170-
mcp.WithDescription("Get all the components in the OpsLevel account. Components are objects in OpsLevel that represent things like apis, libraries, services, frontends, backends, etc."),
170+
mcp.WithDescription("Get all the components in the OpsLevel account. Components are objects in OpsLevel that represent things like apis, libraries, services, frontends, backends, etc. Use this tool to list what components are in the catalog, what team is the owner, what primary coding language is used, and what primary framework is used."),
171171
mcp.WithToolAnnotation(mcp.ToolAnnotation{
172172
Title: "Components in OpsLevel",
173173
ReadOnlyHint: true,
@@ -184,12 +184,12 @@ var rootCmd = &cobra.Command{
184184
var components []serializedComponent
185185
for _, node := range resp.Nodes {
186186
components = append(components, serializedComponent{
187-
Id: string(node.Id),
188-
Name: node.Name,
189-
Owner: node.Owner.Alias,
190-
Language: node.Language,
187+
Id: string(node.Id),
188+
Name: node.Name,
189+
Owner: node.Owner.Alias,
190+
Language: node.Language,
191191
Framework: node.Framework,
192-
Url: node.HtmlURL,
192+
Url: node.HtmlURL,
193193
})
194194
}
195195
return newToolResult(components, nil)

0 commit comments

Comments
 (0)