{"record":{"id":"5fdcfedcd3d15056","repo":"googleapis/mcp-toolbox","slug":"description-is-required-for-tool-q-5fdcfe","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/firestore/firestoreupdatedocument/firestoreupdatedocument.go","lineNumber":73,"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\t// Create parameters\n\tdocumentPathParameter := parameters.NewStringParameter(\n\t\tdocumentPathKey,\n\t\t\"The relative path of the document which needs to be updated (e.g., 'users/userId' or 'users/userId/posts/postId'). Note: This is a relative path, NOT an absolute path like 'projects/{project_id}/databases/{database_id}/documents/...'\",\n\t)\n\n\tdocumentDataParameter := parameters.NewMapParameter(\n\t\tdocumentDataKey,\n\t\t`The document data in Firestore's native JSON format. Each field must be wrapped with a type indicator:\n- Strings: {\"stringValue\": \"text\"}\n- Integers: {\"integerValue\": \"123\"} or {\"integerValue\": 123}\n- Doubles: {\"doubleValue\": 123.45}\n- Booleans: {\"booleanValue\": true}\n- Timestamps: {\"timestampValue\": \"2025-01-07T10:00:00Z\"}\n- GeoPoints: {\"geoPointValue\": {\"latitude\": 34.05, \"longitude\": -118.24}}\n- Arrays: {\"arrayValue\": {\"values\": [{\"stringValue\": \"item1\"}, {\"integerValue\": \"2\"}]}}","sourceCodeStart":55,"sourceCodeEnd":91,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/tools/firestore/firestoreupdatedocument/firestoreupdatedocument.go#L55-L91","documentation":"Configuration-time validation in Initialize: the firestore-update-document tool entry in tools.yaml omits its description, which Toolbox requires for the tool manifest.","triggerScenarios":"Thrown at internal/tools/firestore/firestoreupdatedocument/firestoreupdatedocument.go:73 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"}