{"record":{"id":"9b63fac1abd720d7","repo":"googleapis/mcp-toolbox","slug":"description-is-required-for-tool-q-9b63fa","errorCode":null,"errorMessage":"description is required for tool %q","messagePattern":"description is required for tool %q","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/tools/looker/lookergetagent/lookergetagent.go","lineNumber":71,"sourceCode":"}\n\ntype Config struct {\n\ttools.ConfigBase `yaml:\",inline\"`\n\tType             string                 `yaml:\"type\" validate:\"required\"`\n\tSource           string                 `yaml:\"source\" validate:\"required\"`\n\tAnnotations      *tools.ToolAnnotations `yaml:\"annotations,omitempty\"`\n}\n\n// validate interface\nvar _ tools.ToolConfig = Config{}\n\nfunc (cfg Config) ToolConfigType() string {\n\treturn resourceType\n}\n\nfunc (cfg Config) Initialize(context.Context) (tools.Tool, error) {\n\tif cfg.Description == \"\" {\n\t\treturn nil, fmt.Errorf(\"description is required for tool %q\", cfg.Name)\n\t}\n\n\tagentIdParameter := parameters.NewStringParameter(\"agent_id\", \"The ID of the agent.\", parameters.WithStringDefault(\"\"))\n\tparams := parameters.Parameters{agentIdParameter}\n\n\tannotations := &tools.ToolAnnotations{}\n\tif cfg.Annotations != nil {\n\t\t*annotations = *cfg.Annotations\n\t}\n\treadOnlyHint := true\n\tannotations.ReadOnlyHint = &readOnlyHint\n\n\treturn Tool{\n\t\tBaseTool: tools.NewBaseTool(\n\t\t\tcfg,\n\t\t\tannotations,\n\t\t\ttools.Manifest{Description: cfg.Description, Parameters: params.Manifest(), AuthRequired: cfg.AuthRequired},\n\t\t\tparams,","sourceCodeStart":53,"sourceCodeEnd":89,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/tools/looker/lookergetagent/lookergetagent.go#L53-L89","documentation":"Configuration-time validation in Initialize: the looker-get-agent tool entry in tools.yaml omits its description, which Toolbox requires for the tool manifest.","triggerScenarios":"Thrown at internal/tools/looker/lookergetagent/lookergetagent.go:71 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add a non-empty description to the tool entry in tools.yaml","Check YAML indentation so description parses as a string rather than null"],"exampleFix":null,"handlingStrategy":"validation","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"}