{"record":{"id":"d0f511e513c4aab3","repo":"googleapis/mcp-toolbox","slug":"tools-is-missing-or-not-a-list-of-strings-v","errorCode":null,"errorMessage":"tools is missing or not a list of strings: %v","messagePattern":"tools is missing or not a list of strings: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/server/config.go","lineNumber":549,"sourceCode":"\ttoolCfg, err := tools.DecodeConfig(ctx, resourceType, name, dec)\n\tif err != nil {\n\t\tif errors.Is(err, tools.ErrUnknownToolType) && util.IgnoreUnknownToolsFromContext(ctx) {\n\t\t\tl, logErr := util.LoggerFromContext(ctx)\n\t\t\tif logErr == nil {\n\t\t\t\tl.WarnContext(ctx, fmt.Sprintf(\"Skipping unknown tool type %q for tool %q\", resourceType, name))\n\t\t\t}\n\t\t\treturn nil, nil\n\t\t}\n\t\treturn nil, err\n\t}\n\treturn toolCfg, nil\n}\n\nfunc UnmarshalYAMLToolsetConfig(ctx context.Context, name string, r map[string]any) (tools.ToolsetConfig, error) {\n\tvar toolsetConfig tools.ToolsetConfig\n\ttoolList, ok := r[\"tools\"].([]any)\n\tif !ok {\n\t\treturn toolsetConfig, fmt.Errorf(\"tools is missing or not a list of strings: %v\", r)\n\t}\n\tjustTools := map[string]any{\"tools\": toolList}\n\tdec, err := util.NewStrictDecoder(justTools)\n\tif err != nil {\n\t\treturn toolsetConfig, fmt.Errorf(\"error creating decoder: %s\", err)\n\t}\n\tvar raw map[string][]string\n\tif err := dec.DecodeContext(ctx, &raw); err != nil {\n\t\treturn toolsetConfig, fmt.Errorf(\"unable to unmarshal tools: %s\", err)\n\t}\n\treturn tools.ToolsetConfig{Name: name, ToolNames: raw[\"tools\"]}, nil\n}\n\nfunc UnmarshalYAMLGroupConfig(ctx context.Context, name string, r map[string]any) (group.GroupConfig, error) {\n\tdec, err := util.NewStrictDecoder(r)\n\tif err != nil {\n\t\treturn group.GroupConfig{}, fmt.Errorf(\"error creating decoder: %s\", err)\n\t}","sourceCodeStart":531,"sourceCodeEnd":567,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/server/config.go#L531-L567","documentation":"Error \"tools is missing or not a list of strings: %v\" thrown in googleapis/mcp-toolbox.","triggerScenarios":"Thrown at internal/server/config.go:549 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8cc6e09de2ad7b8bffc77751799585a1401a48eb","analyzedAt":"2026-09-05T01:10:36.887Z","contentChangedAt":"2026-09-05T01:10:36.887Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}