Skip to content

Commit bc2e18c

Browse files
correct def spelling mistakes
1 parent 45d0e3c commit bc2e18c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/cmd/root.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,23 +168,24 @@ var rootCmd = &cobra.Command{
168168
// Register all documents, filtered by search term
169169
s.AddTool(
170170
mcp.NewTool("documents",
171-
mcp.WithDescription("Get all the documents for the opslevel account. Documents are filterable by search term. Documents could be things like runbooks, integration documentation, api documentatin, readmes, or other forms of documentation."),
171+
mcp.WithDescription("Get all the documents for the opslevel account. Documents are filterable by search term. Documents could be things like runbooks, integration documentation, api documentation, readme's, or other forms of documentation."),
172172
mcp.WithString("searchTerm", mcp.Description("To filter documents with.")),
173173
),
174174
func(ctx context.Context, req mcp.CallToolRequest) (*mcp.CallToolResult, error) {
175175
searchTerm := ""
176+
testVal := req.Params.Arguments["searchTerm"]
176177
if req.Params.Arguments["searchTerm"] != nil {
177178
searchTerm = req.Params.Arguments["searchTerm"].(string)
178179
}
179-
variables := getListDocumentPayloadVariables(searchTerm)
180+
variables := getListDocumentPayloadVariables(testVal)
180181
resp, err := client.ListDocuments(&variables)
181182
return newToolResult(resp.Nodes, err)
182183
})
183184

184185
// Register document by id
185186
s.AddTool(
186187
mcp.NewTool("document",
187-
mcp.WithDescription("Get document contents for the opslevel account, specified by id. Documents could be things like runbooks, integration documentation, api documentatin, readmes, or other forms of documentation."),
188+
mcp.WithDescription("Get document contents for the opslevel account, specified by id. Documents could be things like runbooks, integration documentation, api documentation, readme's, or other forms of documentation."),
188189
mcp.WithString("id", mcp.Required(), mcp.Description("The id of the document to fetch.")),
189190
),
190191
func(ctx context.Context, req mcp.CallToolRequest) (*mcp.CallToolResult, error) {
@@ -196,7 +197,7 @@ var rootCmd = &cobra.Command{
196197
// Register all documents, filtered by service id and search term
197198
s.AddTool(
198199
mcp.NewTool("documentsOnService",
199-
mcp.WithDescription("Get all documents on a specified service for the opslevel account, specified by service id and filtered by search term. Documents could be things like runbooks, integration documentation, api documentatin, readmes, or other forms of documentation."),
200+
mcp.WithDescription("Get all documents on a specified service for the opslevel account, specified by service id and filtered by search term. Documents could be things like runbooks, integration documentation, api documentation, readme's, or other forms of documentation."),
200201
mcp.WithString("serviceId", mcp.Required(), mcp.Description("The id of the service which the documents are on.")),
201202
mcp.WithString("searchTerm", mcp.Description("To filter documents with.")),
202203
),

0 commit comments

Comments
 (0)