{"record":{"id":"075e53ca3bc83ede","repo":"googleapis/mcp-toolbox","slug":"invalid-params","errorCode":"INVALID_PARAMS","errorMessage":"invalid tool name: tool with name %q does not exist","messagePattern":"invalid tool name: tool with name %q does not exist","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/server/mcp/v20241105/method.go","lineNumber":171,"sourceCode":"\t\terr = fmt.Errorf(\"invalid mcp tools call request: %w\", err)\n\t\treturn jsonrpc.NewError(id, jsonrpc.INVALID_REQUEST, err.Error(), nil), err\n\t}\n\n\ttoolName := req.Params.Name\n\ttoolArgument := req.Params.Arguments\n\tlogger.DebugContext(ctx, fmt.Sprintf(\"tool name: %s\", toolName))\n\n\t// Update span name and set gen_ai attributes\n\tspan := trace.SpanFromContext(ctx)\n\tspan.SetName(fmt.Sprintf(\"%s %s\", TOOLS_CALL, toolName))\n\tspan.SetAttributes(\n\t\tattribute.String(\"gen_ai.tool.name\", toolName),\n\t\tattribute.String(\"gen_ai.operation.name\", \"execute_tool\"),\n\t)\n\n\t// Verify tool belongs to the current group before resolving globally.\n\tif !g.ContainsTool(toolName) {\n\t\terr = fmt.Errorf(\"invalid tool name: tool with name %q does not exist\", toolName)\n\t\treturn jsonrpc.NewError(id, jsonrpc.INVALID_PARAMS, err.Error(), nil), err\n\t}\n\n\ttool, ok := primitiveMgr.GetTool(toolName)\n\tif !ok {\n\t\terr = fmt.Errorf(\"invalid tool name: tool with name %q does not exist\", toolName)\n\t\treturn jsonrpc.NewError(id, jsonrpc.INVALID_PARAMS, err.Error(), nil), err\n\t}\n\n\tif tool.HasSecureParams() {\n\t\terr = fmt.Errorf(\"invalid tool name: tool with name %q does not exist\", toolName)\n\t\treturn jsonrpc.NewError(id, jsonrpc.INVALID_PARAMS, err.Error(), nil), err\n\t}\n\n\tsrcName := tool.GetSourceName()\n\tvar src sources.Source\n\tif srcName != \"\" {\n\t\tsrc, ok = primitiveMgr.GetSource(srcName)","sourceCodeStart":153,"sourceCodeEnd":189,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/server/mcp/v20241105/method.go#L153-L189","documentation":"Error \"invalid tool name: tool with name %q does not exist\" thrown in googleapis/mcp-toolbox.","triggerScenarios":"Thrown at internal/server/mcp/v20241105/method.go:171 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"}